Skip to main content

spawn_task_agent

Function spawn_task_agent 

Source
pub fn spawn_task_agent(
    agent: Arc<TaskAgent>,
) -> JoinHandle<Result<TaskAgentResult>>
Expand description

Spawn a task agent on a Tokio background task.

Returns a JoinHandle that resolves to the agent’s TaskAgentResult when execution finishes.