v0.2.6
VRSEN/agency-swarmv0.2.6Jul 17, 2024by VRSEN
AI Summary
This release significantly enhances performance by introducing full asynchronous support for tool calls and API requests. It allows for concurrent execution of I/O-bound tasks and provides finer control over API configurations.
Key Highlights
- Async Tools support with threading mode
- Concurrent API calls for OpenAPI schemas
- File Search configuration parameter
- Parallel tool call controls
New Features
- Async Tools mode (`tools_threading`)
- Concurrent API Calls
- Async BaseTool.run method support
- File Search configuration
- Parallel Tool Call controls
- Fixed duplicate call IDs assignment bug
Full Release Notes
## New Features
* **Async Tools** - You can now set `async_mode` to `tools_threading` inside the `Agency` class. With this mode on, all tool calls made by your agents will be executed in separate threads (max 4, depending on your CPU). This can signifincatly speed up the workflow when executing multiple I/O bound tasks.
* **Concurrent API Calls** - Now all API tools created with `schemas_folder` or `ToolFactory.from_openapi_schema` return coroutines, which are executed concurrently in an event loop.
* **Async `BaseTool.run` Method Support** - All async run methods in your `BaseTool` classes are now executed concurrently in an event loop as well.
* **File Search Configuration** - Added `file_search` configuration to the `Agent` class - This parameter allows you to modify the configuration of the `FileSearch` tool. Currently, only `{max_num_results: int}` is available. See [OpenAI API Docs](https://platform.openai.com/docs/api-reference/assistants/createAssistant#assistants-createassistant-tools)
* **Parallel Tool Call Controls** - Added `parallel_tool_calls` parameter to the `Agent` class - When set to `False`, the agent won't call multiple tools at once and will execute all tools sequentially.
## Bug Fixes
* Fixed bug with duplicate call IDs assignment when the agent calls the same tool multiple times and the request times out. #151
**Full Changelog**: [https://github.com/VRSEN/agency-swarm/compare/v0.2.5...v0.2.6](https://github.com/VRSEN/agency-swarm/compare/v0.2.5...v0.2.6)