Changelog
New Features:
- Agent/Team Add Tool: Added convenience function to
AgentandTeam→add_tool(tool)to append new tools after inititialisation. - Streaming Structured Output: Implemented structured output during streaming. This means streaming won’t be turned off when
response_modelis passed. The structured output itself is not streamed, but it is part of the iterator response when running an agent/team with streaming. The response model is set on a singleRunResponseContentEventand on the finalRunResponseCompletedEvent.
Improvements:
- Linear Teams Tool: Added tool to get the list of teams from Linear.
Bug Fixes:
- Uppercase Structured Output: Resolved cases where pydantic model fields contain field names with upper case characters.
Breaking Change:
- If you use
run(..., stream=True)orarun(..., stream=True)onAgentorTeamwith aresponse_modelset, the current behaviour would switch off streaming and respond with a singleRunResponseobject. After the changes mentioned above, you will get theIterator[RunResponseEvent]/AsyncIterator[RunResponseEvent]response instead.
What's Changed
- fix: monitoring fields for accuracy evals with given output by @manuhortet in #3640
- fix: preserve field name case in structured output parsing by @NitsanCohen770 in #3647
- [fix] Fix GitHub tool create file #3636 by @Siete-F in #3637
- [fix]: markdown chunking failing by @zztaouil in #3634
- feat: add linear get_team_details tool by @danpilch in #3632
- feat: make linear tool project_id and assignee_id optional for create_issue by @danpilch in #3631
- fix: Add a check to create a directory if it doesn't exist while saving an audio file by @shreyaspranav in #3619
- feat: Add tools functions by @dirkbrnd in #3664
- Make langdb base url configurable by @karolisg in #3671
- feat: Enable streaming with structured response by @dirkbrnd in #3644
- feat: Add debug logs for request params by @dirkbrnd in #3667
- chore: Release 1.7.0 by @dirkbrnd in #3674
New Contributors
- @zztaouil made their first contribution in #3634
- @danpilch made their first contribution in #3632
- @shreyaspranav made their first contribution in #3619
- @karolisg made their first contribution in #3671
Full Changelog: v1.6.4...v1.7.0