From 931f302acc6bbd0037e22c80e271a8f333902717 Mon Sep 17 00:00:00 2001 From: Arsenii Shatokhin Date: Mon, 4 Mar 2024 07:36:57 +0400 Subject: [PATCH] Adjusted docs --- docs/advanced-usage/agencies.md | 2 +- docs/advanced-usage/tools.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced-usage/agencies.md b/docs/advanced-usage/agencies.md index 694632d1..71756889 100644 --- a/docs/advanced-usage/agencies.md +++ b/docs/advanced-usage/agencies.md @@ -15,7 +15,7 @@ Here are the primary benefits of using an Agency, instead of an individual agent ## Communication Flows -Unlike all other frameworks, communication flows in Agency Swarm are **not hierarchical**. Instead, they are **directional**, like in real-world organizations. This means that they are established from left to right inside the `agency_chart`. So, in the example below, the CEO can initiate communication and send tasks to the Developer and the Virtual Assistant, and they can respond in to him in the same thread, but the Developer or the VA cannot initiate a conversation and assign tasks to the CEO. +Unlike all other frameworks, communication flows in Agency Swarm are **not hierarchical** or **sequential**. Instead, they are **uniform**. You can define them however you want. But keep in mind that they are established from left to right inside the `agency_chart`. So, in the example below, the CEO can initiate communication and send tasks to the Developer and the Virtual Assistant, and they can respond in to him in the same thread, but the Developer or the VA cannot initiate a conversation and assign tasks to the CEO. You can add as many levels of communication as you want. ```python from agency_swarm import Agency diff --git a/docs/advanced-usage/tools.md b/docs/advanced-usage/tools.md index 73cf4321..8b77f8c2 100644 --- a/docs/advanced-usage/tools.md +++ b/docs/advanced-usage/tools.md @@ -95,7 +95,7 @@ class QueryDatabase(BaseTool): ```python class AnswerQuestion(BaseTool): answer: str = Field(..., description="The answer to the question, based on context.") - sources: List[str] = Field(..., description="The sources of the answer") + sources: List[Fact] = Field(..., description="The sources of the answer") def run(self): # Remove the context after question is answered