Skip to main content

handle_agent_workers

Function handle_agent_workers 

Source
pub(crate) async fn handle_agent_workers(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<AgentWorkersRequest>,
) -> Response
Expand description

POST /api/v1/agent/workers: the caller’s own open workers. A caller that isn’t a leader gets an empty list.