Skip to main content

AcpSubagentSpawnFn

Type Alias AcpSubagentSpawnFn 

Source
pub type AcpSubagentSpawnFn = Arc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'static>> + Send + Sync>;
Expand description

Async callback type for spawning an external ACP sub-agent by shell command.

Returns the sub-agent’s text output on success or an error string on failure. Installed via AgentBuilder::with_acp_subagent_spawn_fn when the acp feature is enabled.

Aliased Type§

pub struct AcpSubagentSpawnFn { /* private fields */ }