Middleware Context • AI Agent SDK
MiddlewareContext: Context passed to middleware during tool result normalization.
MiddlewareContext
Defined in the middleware module.
AI Agent
Context passed to middleware during tool result normalization.
Contains metadata about the tool execution and runtime environment to help middleware make informed normalization decisions.
Properties
ResponseField
strNo description available.
ResponseField
strNo description available.
ResponseField
Optional[str]No description available.
ResponseField
Optional[str]No description available.
ResponseField
floatNo description available.
ResponseField
floatNo description available.
ResponseField
Dict[str, Any]No description available.
Source
View on GitHubpraisonaiagents/runtime/middleware.py at line 21