ai-dispatch 10.32.0

Multi-AI CLI team orchestrator
1
2
3
4
5
6
7
8
9
10
11
12
13
// Agent-specific response extraction for persisted and buffered output.
// Exports: extract_response for watcher and renderer consumers.
// Deps: AgentKind and the Grok/Gemini envelope parsers.

use crate::types::AgentKind;

pub(crate) fn extract_response(kind: AgentKind, output: &str) -> Option<String> {
    match kind {
        AgentKind::Grok => super::grok::extract_response(output),
        AgentKind::Gemini | AgentKind::Antigravity => super::gemini::extract_response(output),
        _ => None,
    }
}