ListenAsAgent

Establishes a server streaming connection that delivers tasks to taskable agents for execution. This method creates a persistent connection from Task Manager to an agent, allowing the server to push tasks to the agent as they become available. The agent receives a stream of tasks that match its selector criteria (e.g., entity IDs). The stream delivers three types of requests: - ExecuteRequest: Contains a new task for the agent to execute - CancelRequest: Indicates a task should be canceled - CompleteRequest: Indicates a task should be completed This is the primary method for taskable agents to receive and process tasks in real-time. Agents should maintain this connection and process incoming tasks according to their capabilities. When an agent receives a task, it should update the task status using the UpdateStatus RPC to provide progress information back to Task Manager.

ListenAsAgentRequest

Request
This endpoint expects an object.
agent_selectorobject

ListenAsAgentResponse

Stream Response
This endpoint returns an object.
requestobject