On Tool Call • AI Agent SDK

on_tool_call: Called when a tool is invoked.

on_tool_call

Method

</div>

This is a method of the ObservabilityAdapter class in the obs module.

Called when a tool is invoked.

Diagram

uses

returns

Agent

Tool: on_tool_call

Result

Signature

python
def on_tool_call(span_id: str, tool_name: str, args: Dict[str, Any], result: Any, latency_ms: Optional[float]) -> None

Parameters

ParamField str

No description available.

ParamField str

No description available.

ParamField Dict[str, Any]

No description available.

ParamField Any

No description available.

ParamField Optional[float]

No description available.

Source

View on GitHub

praisonaiagents/obs/__init__.py at line 111


Related Documentation