Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dirkbrnd
Copy link
Contributor

@dirkbrnd dirkbrnd commented Oct 22, 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. Examplein 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
  • 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)
    • GET /sessions/{id}/runs/{id} → Get a run by its ID (reference)
    • PATCH /sessions/{id} → Update existing session (reference)

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

@dirkbrnd dirkbrnd requested a review from a team as a code owner October 22, 2025 17:39
@dirkbrnd dirkbrnd merged commit c164576 into main Oct 22, 2025
5 checks passed
@dirkbrnd dirkbrnd deleted the release-2.2.0 branch October 22, 2025 23:11
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant