Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
New Features:
Teamin one of 3 modes: “Collaborate”, “Coordinate” or “Route”.debug_mode=Trueandteam.print_response(...)to see it in action.Agent(team=[])is still there, but deprecated (see below).OpenAILikeinterface.Improvements:
use_json_mode: bool = Falseas a parameter ofAgentandTeam, which in conjunction withresponse_model=YourModel, is used to indicate whether the agent/team model should be forced to respond in json instead of (now default) structured output. Previous behaviour defaulted to “json-mode”, but since most models now support native structured output, we are now defaulting to native structured output. It is now also much simpler to work with response models, since now onlyresponse_modelneeds to be set. It is not necessary anymore to setstructured_output=Trueto specifically get structured output from the model.Bug Fixes:
get_message_pairs()fetching incorrect messages.Deprecations:
Agent.structured_outputhas been replaced byAgent.use_json_mode. This will be removed in a future major version release.Agent.teamis deprecated with the release of our new Teams implementation. This will be removed in a future major version release.