extract_agent_state

Function extract_agent_state 

Source
fn extract_agent_state(payload: &Value) -> Option<AgentState>
Expand description

Extract agent state from AGENT_STATUS_CHANGED payload.

Expected payload shape: { "status": "idle"|"executing"|"waiting"|"failed", ... }