v1.6.0
Changelog
Improvements:
- New Streaming Events: We have improved our streaming events system. See the details in “breaking changes” section at the bottom.
- Member Events in Teams: The above change includes streaming of events from team members with the top-level team events.
Bug Fixes:
- Apify Tools: Fixed the ApifyTools initialize to correctly register functions.
Breaking Changes:
- Updates to Run Without Streaming:
RunResponsenow does not have aneventattribute. It still represents the responses of the entire run.- An additional attribute
RunResponse.statusnow indicates whether the run response isRUNNING,PAUSED, orCANCELLED.
- Updates to Run Streaming:
- In the case of streaming you now get reformulated run events. These events are streamed if you do
agent.run(..., stream=True)oragent.arun(..., stream=True). - Agents have the following event types:
RunResponseContentRunErrorRunCancelledToolCallStartedToolCallCompleted- with
stream_intermediate_steps=True:RunStartedRunCompletedReasoningStartedReasoningStepReasoningCompletedMemoryUpdateStartedMemoryUpdateCompleted
- See detailed documentation here.
- In the case of streaming you now get reformulated run events. These events are streamed if you do
- Updates to Teams:
- Teams have the following event types:
TeamRunResponseContentTeamRunErrorTeamRunCancelledTeamToolCallStartedTeamToolCallCompleted- with
stream_intermediate_steps=True:TeamRunStartedTeamRunCompletedTeamReasoningStartedTeamReasoningStepTeamReasoningCompletedTeamMemoryUpdateStartedTeamMemoryUpdateCompleted
- Teams will also yield events from team members as they are executed.
- See detailed documentation here.
- Teams have the following event types:
- Updates to Workflows:
- You should now yield
WorkflowRunResponseStartedEventandWorkflowRunResponseCompletedEventevents.
- You should now yield
What's Changed
- chore: Refactor run response events by @dirkbrnd in #3375
- chore: add prefix to playground url by @pritipsingh in #3521
- revert error response for workflow sync router sessions by @Ayush0054 in #3524
- feat: Yield member events for teams by @dirkbrnd in #3467
- fix: Apify Bug by @dirkbrnd in #3519
- chore: Release 1.6.0 by @dirkbrnd in #3530
Full Changelog: v1.5.10...v1.6.0