Agent End • AI Agent SDK
agent_end: Emit agent end event.
agent_end
Method
</div>
This is a method of the TraceEmitter class in the protocol module.
Emit agent end event.
Signature
def agent_end(agent_name: str, agent_id: Optional[str], duration_ms: Optional[float], status: str, metadata: Optional[Dict[str, Any]]) -> NoneParameters
ParamField
strNo description available.
ParamField
Optional[str]No description available.
ParamField
Optional[float]No description available.
ParamField
strNo description available.
ParamField
OptionalNo description available.
Uses
time.timeActionEvent
Source
View on GitHubpraisonaiagents/trace/protocol.py at line 270