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.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: agent_end"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
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