normalize • AI Agent SDK
normalize: Pass through result with minimal normalization.
normalize
Method
</div>
This is a method of the PassThroughMiddleware class in the middleware module.
Pass through result with minimal normalization.
Signature
def normalize(result: Any, tool_name: str, ctx: MiddlewareContext) -> NormalizedToolResultParameters
ParamField
AnyNo description available.
ParamField
strNo description available.
ParamField
MiddlewareContextNo description available.
Returns
ResponseField
NormalizedToolResultThe result of the operation.
Uses
NormalizedToolResult
Source
View on GitHubpraisonaiagents/runtime/middleware.py at line 133