From 521e0195e28284e5266b70dd5d1f413f8a57cf53 Mon Sep 17 00:00:00 2001 From: Arsenii Shatokhin Date: Fri, 12 Apr 2024 07:44:46 +0400 Subject: [PATCH] Updated readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 63cbcab9..31c8eafa 100644 --- a/README.md +++ b/README.md @@ -80,17 +80,16 @@ Define your custom tools with [Instructor](https://github.com/jxnl/instructor): from agency_swarm.tools import ToolFactory # using local file with open("schemas/your_schema.json") as f: - ToolFactory.from_openapi_schema( + tools = ToolFactory.from_openapi_schema( f.read(), ) # using requests - ToolFactory.from_openapi_schema( + tools = ToolFactory.from_openapi_schema( requests.get("https://api.example.com/openapi.json").json(), ) ``` - 3. **Define Agent Roles**: Start by defining the roles of your agents. For example, a CEO agent for managing tasks and a developer agent for executing tasks. ```python @@ -101,7 +100,7 @@ Define your custom tools with [Instructor](https://github.com/jxnl/instructor): instructions="You must converse with other agents to ensure complete task execution.", # can be a file like ./instructions.md files_folder="./files", # files to be uploaded to OpenAI schemas_folder="./schemas", # OpenAPI schemas to be converted into tools - tools=[MyCustomTool, LangchainTool]) + tools=[MyCustomTool]) ``` Import from existing agents: