objectiveai-cli 2.0.11

ObjectiveAI command-line interface and embeddable library
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Args;

/// Optional `--agent-id` flag flattened into every api endpoint
/// leaf's `Args` struct. Sets the request's `X-OBJECTIVEAI-AGENT-ID`
/// header only when `Handle.agent_id` (env-derived) is `None`;
/// otherwise the env value wins.
#[derive(Args, Debug, Clone)]
pub struct AgentIdArg {
    /// Optional agent ID for the request's `X-OBJECTIVEAI-AGENT-ID`
    /// header. Ignored when `OBJECTIVEAI_AGENT_ID` is set in the
    /// environment — the env value (which also feeds
    /// `Handle.agent_id`) always wins.
    #[arg(long)]
    pub agent_id: Option<String>,
}