Agno v2.0.4 adds TypedDict input schemas, SiliconFlow model support, and session_state in workflow function steps.
$ git clone --branch v2.0.4 https://github.com/agno-agi/agno.git # already have the repo? check out this version: $ git checkout v2.0.4
def custom_function_step(step_input: StepInput, session_state):
session_state["last_processed"] = step_input.message
return step_input from typing import TypedDict
from agno.agent import Agent
class ScanInput(TypedDict):
target: str
depth: int
agent = Agent(input_schema=ScanInput) - ›Adds
session_stateas a parameter in custom Python function steps for workflows, enabling direct mutation of workflow session state from within a step function. - ›Adds
extra_bodyparameter toOpenAIChatandOpenAILikemodel classes for passing additional request body fields to the OpenAI-compatible API. - ›Supports
TypedDictininput_schemafor agents, teams, and workflows alongside existing Pydantic support for structured input definition. - ›Adds
SiliconFlowas a new model provider class. - ›Extends MCP (Model Context Protocol) async tool support to all AgentOS evals.