async fn spawn_worker(
state: &AppState,
caller: Option<&Caller>,
req: SpawnAgentRequest,
) -> Result<SpawnAgentResult, SpawnError>async fn spawn_worker(
state: &AppState,
caller: Option<&Caller>,
req: SpawnAgentRequest,
) -> Result<SpawnAgentResult, SpawnError>