Skip to content

Commit

Permalink
Adjusted docs
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Mar 4, 2024
1 parent cb885ab commit 931f302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/advanced-usage/agencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced-usage/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 931f302

Please sign in to comment.