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

python
def normalize(result: Any, tool_name: str, ctx: MiddlewareContext) -> NormalizedToolResult

Parameters

ParamField Any

No description available.

ParamField str

No description available.

ParamField MiddlewareContext

No description available.

Returns

ResponseField NormalizedToolResult

The result of the operation.

Uses

  • NormalizedToolResult

Source

View on GitHub

praisonaiagents/runtime/middleware.py at line 133