v1.7.0
June 26, 2025
1.7.0
New Features:
- Agent/Team Add Tool: Added convenience function to
Agent
andTeam
→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_model
is 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 singleRunResponseContentEvent
and 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)
onAgent
orTeam
with aresponse_model
set, the current behaviour would switch off streaming and respond with a singleRunResponse
object. After the changes mentioned above, you will get theIterator[RunResponseEvent]
/AsyncIterator[RunResponseEvent]
response instead.