v0.4.0
VRSEN/agency-swarmv0.4.0Nov 26, 2024by VRSEN
AI Summary
This release introduces custom communication flows and refines async tool configuration by moving the `async_mode` parameter directly into the `ToolConfig` class. It also adds an `output_as_result` parameter to simplify returning tool outputs directly through the agency's completion method.
Key Highlights
- Custom Communication Flows for agent-to-agent messaging
- Moved `async_mode` parameter to `BaseTool.ToolConfig`
- New `output_as_result` parameter in `ToolConfig`
New Features
- Custom Communication Flows
- Async mode parameter in BaseTool.ToolConfig
- Output as result parameter in BaseTool.ToolConfig
- Optimized Thread Initialization
Full Release Notes
## New Features - **Custom Communication Flows**: Create custom `SendMessage` tool classes for agents to communicate with each other. [Learn more](https://vrsen.github.io/agency-swarm/advanced-usage/communication_flows/) - **`async_mode` Parameter in `BaseTool.ToolConfig`**: Set `async_mode="threading"` directly in `ToolConfig` of `BaseTool` classes, instead of at the Agency level. This allows you to execute **only certain** tools asynchronously. - **`output_as_result` Parameter in `BaseTool.ToolConfig`**: When set to `true`, `agency.get_completion` will return the tool’s output instead of the message. ## Bug Fixes & Improvements - **Thread Initialization**: Optimized by removing redundant thread fetches when loading threads from IDs. ## New Contributors - @trichards1300 made their first contribution in https://github.com/VRSEN/agency-swarm/pull/70 **Full Changelog**: https://github.com/VRSEN/agency-swarm/compare/v0.3.1...v0.4.0