As Dict • AI Agent SDK

as_dict: Convert to a serializable dictionary for the tool return value.

as_dict

Method

</div>

This is a method of the ReactionResult class in the protocols module.

Convert to a serializable dictionary for the tool return value.

Signature

python
def as_dict() -> Dict[str, Any]

Returns

ResponseField Dict[str, Any]

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3505