codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Voice API URL resolution for voice_input tool.

/// Resolve the Voice API base URL from environment.
pub(crate) fn api_url() -> String {
    std::env::var("CODETETHER_VOICE_API_URL")
        .unwrap_or_else(|_| "https://voice.quantum-forge.io".to_string())
}

/// Build the HTTP client used for transcription requests.
pub(crate) fn build_client() -> reqwest::Client {
    reqwest::Client::builder()
        .timeout(std::time::Duration::from_secs(120))
        .user_agent("CodeTether-Agent/1.0")
        .build()
        .expect("Failed to build HTTP client")
}