run • AI Agent SDK

run: Execute the wrapped function with injected state.

run

Method

</div>

This is a method of the FunctionTool class in the decorator module.

Execute the wrapped function with injected state.

Signature

python
def run() -> Any

Returns

ResponseField Any

The result of the operation.

Uses

  • inject_state_into_kwargs

Used By

Source

View on GitHub

praisonaiagents/tools/decorator.py at line 212