-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: Release 2.2.0 #5146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
chore: Release 2.2.0 #5146
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guyrosin
pushed a commit
to guyrosin/agno
that referenced
this pull request
Oct 23, 2025
# Changelog ## New Features: - **Filter tool calls from History**: Add ability to load fixed number of tool calls from history using `max_tool_calls_from_history`. Helps manage context size and reduce tokens. ## Improvements: - **Update** **workflows arun to return AsyncIterator:** The ****`.arun` method of Workflow now returns an async iterator, similar to Agent and Team. [Example](https://docs.agno.com/examples/concepts/workflows/01-basic-workflows/async_events_streaming)in our docs. - **New Events on Agent/Team**: - `PostHookStarted`, `PostHookCompleted` for both `Agent` and `Team` events - `SessionSummaryCreationStarted`, `SessionSummaryCreationCompleted` for both `Agent` and `Team` events - `RunContentCompleted` for both `Agent` and `Team` → This signals that the content stream has ended, which is useful for building UIs using the events - **Concurrent Memory Creation**: Automatic memory creation is now started on a thread/task at the start of an Agent/Team run, which significantly improves runtime performance where memory generation is enabled. - **Get Run Output on Members**: Improved `get_run_output` and `get_last_run_output` on `Agent`/`Team` to allow retrieval of runs from members. Therefore after a team has executed you can get the last run straight from the member agent. - **Team History Updates:** - Adds `add_team_history_to_members` to share team-level request/response history with team members. - Improved how `share_member_interactions` work to make sharing interactions during a run more accurate. - Here are the related [docs](https://docs.agno.com/concepts/teams/chat_history) - **`stream_events` flag**: Add a `stream_events` flag to Agent, Team, Workflow and all run methods to emit all events whens streaming a response. - **Session State Updating**: Added `update_session_state` and `aupdate_session_state` functions on `Agent` and `Team` to allow direct updating of the session state that is persisted in the DB. - **AgentOS Session Endpoints:** Added new endpoints: - `POST /sessions` → Create a new empty session ([reference](https://docs.agno.com/reference-api/schema/sessions/create-new-session)) - `GET /sessions/{id}/runs/{id}` → Get a run by its ID ([reference](https://docs.agno.com/reference-api/schema/sessions/get-run-by-id)) - `PATCH /sessions/{id}` → Update existing session ([reference](https://docs.agno.com/reference-api/schema/sessions/update-session)) ## Bug Fixes: - **`None` values in Ollama metrics**: Fix a problem calculating metrics with Ollama when certain values were `None` instead of `0`. - **Only-media inputs**: The Memory and Summary features now work with inputs containing only media - **Input media with Teams:** Fix a problem with input media being ignored when streaming a Team’s response. ## Breaking Changes and Deprecations - `Workflow.arun(..., stream=True)` now return an `AsyncIterator`, i.e. which means `await` is not required, but instead `async for event in workflow.arun(...)` is the correct syntax. - All events besides `RunContent` events (the actual model content chunks) are now behind the `stream_events` flag and will only be yielded where `stream_events=True` . Previously tool-call events were yielded regardless. - Removed `expected_output` as a default parameter on the `delegate_task_to_member` tool call for `Team`. This is done to increase flexibility with teams and to avoid incorrect behaviour on the team leader. - `stream_intermediate_steps` has been deprecated in favour of `stream_events`
Mustafa-Esoofally
pushed a commit
that referenced
this pull request
Oct 23, 2025
# Changelog ## New Features: - **Filter tool calls from History**: Add ability to load fixed number of tool calls from history using `max_tool_calls_from_history`. Helps manage context size and reduce tokens. ## Improvements: - **Update** **workflows arun to return AsyncIterator:** The ****`.arun` method of Workflow now returns an async iterator, similar to Agent and Team. [Example](https://docs.agno.com/examples/concepts/workflows/01-basic-workflows/async_events_streaming)in our docs. - **New Events on Agent/Team**: - `PostHookStarted`, `PostHookCompleted` for both `Agent` and `Team` events - `SessionSummaryCreationStarted`, `SessionSummaryCreationCompleted` for both `Agent` and `Team` events - `RunContentCompleted` for both `Agent` and `Team` → This signals that the content stream has ended, which is useful for building UIs using the events - **Concurrent Memory Creation**: Automatic memory creation is now started on a thread/task at the start of an Agent/Team run, which significantly improves runtime performance where memory generation is enabled. - **Get Run Output on Members**: Improved `get_run_output` and `get_last_run_output` on `Agent`/`Team` to allow retrieval of runs from members. Therefore after a team has executed you can get the last run straight from the member agent. - **Team History Updates:** - Adds `add_team_history_to_members` to share team-level request/response history with team members. - Improved how `share_member_interactions` work to make sharing interactions during a run more accurate. - Here are the related [docs](https://docs.agno.com/concepts/teams/chat_history) - **`stream_events` flag**: Add a `stream_events` flag to Agent, Team, Workflow and all run methods to emit all events whens streaming a response. - **Session State Updating**: Added `update_session_state` and `aupdate_session_state` functions on `Agent` and `Team` to allow direct updating of the session state that is persisted in the DB. - **AgentOS Session Endpoints:** Added new endpoints: - `POST /sessions` → Create a new empty session ([reference](https://docs.agno.com/reference-api/schema/sessions/create-new-session)) - `GET /sessions/{id}/runs/{id}` → Get a run by its ID ([reference](https://docs.agno.com/reference-api/schema/sessions/get-run-by-id)) - `PATCH /sessions/{id}` → Update existing session ([reference](https://docs.agno.com/reference-api/schema/sessions/update-session)) ## Bug Fixes: - **`None` values in Ollama metrics**: Fix a problem calculating metrics with Ollama when certain values were `None` instead of `0`. - **Only-media inputs**: The Memory and Summary features now work with inputs containing only media - **Input media with Teams:** Fix a problem with input media being ignored when streaming a Team’s response. ## Breaking Changes and Deprecations - `Workflow.arun(..., stream=True)` now return an `AsyncIterator`, i.e. which means `await` is not required, but instead `async for event in workflow.arun(...)` is the correct syntax. - All events besides `RunContent` events (the actual model content chunks) are now behind the `stream_events` flag and will only be yielded where `stream_events=True` . Previously tool-call events were yielded regardless. - Removed `expected_output` as a default parameter on the `delegate_task_to_member` tool call for `Team`. This is done to increase flexibility with teams and to avoid incorrect behaviour on the team leader. - `stream_intermediate_steps` has been deprecated in favour of `stream_events`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
max_tool_calls_from_history. Helps manage context size and reduce tokens.Improvements:
.arunmethod of Workflow now returns an async iterator, similar to Agent and Team. Examplein our docs.PostHookStarted,PostHookCompletedfor bothAgentandTeameventsSessionSummaryCreationStarted,SessionSummaryCreationCompletedfor bothAgentandTeameventsRunContentCompletedfor bothAgentandTeam→ This signals that the content stream has ended, which is useful for building UIs using the eventsget_run_outputandget_last_run_outputonAgent/Teamto allow retrieval of runs from members. Therefore after a team has executed you can get the last run straight from the member agent.add_team_history_to_membersto share team-level request/response history with team members.share_member_interactionswork to make sharing interactions during a run more accurate.stream_eventsflag: Add astream_eventsflag to Agent, Team, Workflow and all run methods to emit all events whens streaming a response.update_session_stateandaupdate_session_statefunctions onAgentandTeamto allow direct updating of the session state that is persisted in the DB.POST /sessions→ Create a new empty session (reference)GET /sessions/{id}/runs/{id}→ Get a run by its ID (reference)PATCH /sessions/{id}→ Update existing session (reference)Bug Fixes:
Nonevalues in Ollama metrics: Fix a problem calculating metrics with Ollama when certain values wereNoneinstead of0.Breaking Changes and Deprecations
Workflow.arun(..., stream=True)now return anAsyncIterator, i.e. which meansawaitis not required, but insteadasync for event in workflow.arun(...)is the correct syntax.RunContentevents (the actual model content chunks) are now behind thestream_eventsflag and will only be yielded wherestream_events=True. Previously tool-call events were yielded regardless.expected_outputas a default parameter on thedelegate_task_to_membertool call forTeam. This is done to increase flexibility with teams and to avoid incorrect behaviour on the team leader.stream_intermediate_stepshas been deprecated in favour ofstream_events