// THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
// Generated by objectiveai-cli-builder from objectiveai-json-schema/.
pub mod claude_agent_sdk;
pub mod codex_sdk;
pub mod completions;
pub mod mock;
pub mod openrouter;
use clap::Subcommand;
#[derive(Subcommand)]
#[command(rename_all = "verbatim")]
pub enum GetCommand {
#[command(name = "get")]
Get,
}
#[derive(Subcommand)]
#[command(rename_all = "verbatim")]
pub enum Commands {
#[command(name = "list")]
List,
#[command(name = "claude_agent_sdk")]
ClaudeAgentSdk {
#[command(subcommand)]
command: claude_agent_sdk::Commands,
},
#[command(name = "codex_sdk")]
CodexSdk {
#[command(subcommand)]
command: codex_sdk::Commands,
},
#[command(name = "completions")]
Completions {
#[command(subcommand)]
command: completions::Commands,
},
#[command(name = "mock")]
Mock {
#[command(subcommand)]
command: mock::Commands,
},
#[command(name = "openrouter")]
Openrouter {
#[command(subcommand)]
command: openrouter::Commands,
},
Agent {
#[command(subcommand)]
command: GetCommand,
},
AgentBase {
#[command(subcommand)]
command: GetCommand,
},
AgentWithFallbacks {
#[command(subcommand)]
command: GetCommand,
},
AgentWithFallbacksWithCount {
#[command(subcommand)]
command: GetCommand,
},
Continuation {
#[command(subcommand)]
command: GetCommand,
},
GetAgentResponse {
#[command(subcommand)]
command: GetCommand,
},
InlineAgent {
#[command(subcommand)]
command: GetCommand,
},
InlineAgentBase {
#[command(subcommand)]
command: GetCommand,
},
InlineAgentBaseWithFallbacks {
#[command(subcommand)]
command: GetCommand,
},
InlineAgentBaseWithFallbacksOrRemote {
#[command(subcommand)]
command: GetCommand,
},
InlineAgentBaseWithFallbacksOrRemoteCommitOptional {
#[command(subcommand)]
command: GetCommand,
},
InlineAgentBaseWithFallbacksOrRemoteWithCount {
#[command(subcommand)]
command: GetCommand,
},
InlineAgentWithFallbacks {
#[command(subcommand)]
command: GetCommand,
},
ListAgentResponse {
#[command(subcommand)]
command: GetCommand,
},
ListAgentsRequest {
#[command(subcommand)]
command: GetCommand,
},
ListAgentsSource {
#[command(subcommand)]
command: GetCommand,
},
McpServer {
#[command(subcommand)]
command: GetCommand,
},
OutputMode {
#[command(subcommand)]
command: GetCommand,
},
RemoteAgent {
#[command(subcommand)]
command: GetCommand,
},
RemoteAgentBase {
#[command(subcommand)]
command: GetCommand,
},
RemoteAgentBaseWithFallbacks {
#[command(subcommand)]
command: GetCommand,
},
RemoteAgentWithFallbacks {
#[command(subcommand)]
command: GetCommand,
},
Upstream {
#[command(subcommand)]
command: GetCommand,
},
UsageAgentResponse {
#[command(subcommand)]
command: GetCommand,
},
}
impl Commands {
pub async fn handle(self, handle: &objectiveai_cli_sdk::output::Handle) -> Result<(), crate::error::Error> {
match self {
Commands::List => {
const NAMES: &[&str] = &["claude_agent_sdk", "codex_sdk", "completions", "mock", "openrouter", "Agent", "AgentBase", "AgentWithFallbacks", "AgentWithFallbacksWithCount", "Continuation", "GetAgentResponse", "InlineAgent", "InlineAgentBase", "InlineAgentBaseWithFallbacks", "InlineAgentBaseWithFallbacksOrRemote", "InlineAgentBaseWithFallbacksOrRemoteCommitOptional", "InlineAgentBaseWithFallbacksOrRemoteWithCount", "InlineAgentWithFallbacks", "ListAgentResponse", "ListAgentsRequest", "ListAgentsSource", "McpServer", "OutputMode", "RemoteAgent", "RemoteAgentBase", "RemoteAgentBaseWithFallbacks", "RemoteAgentWithFallbacks", "Upstream", "UsageAgentResponse"];
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schemas>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schemas {
schemas: NAMES.iter().map(|s| s.to_string()).collect(),
},
},
).emit(handle).await;
Ok(())
}
Commands::ClaudeAgentSdk { command } => command.handle(handle).await,
Commands::CodexSdk { command } => command.handle(handle).await,
Commands::Completions { command } => command.handle(handle).await,
Commands::Mock { command } => command.handle(handle).await,
Commands::Openrouter { command } => command.handle(handle).await,
Commands::Agent { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.Agent.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::AgentBase { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.AgentBase.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::AgentWithFallbacks { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.AgentWithFallbacks.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::AgentWithFallbacksWithCount { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.AgentWithFallbacksWithCount.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::Continuation { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.Continuation.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::GetAgentResponse { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.GetAgentResponse.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgent { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgent.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgentBase { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgentBase.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgentBaseWithFallbacks { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgentBaseWithFallbacks.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgentBaseWithFallbacksOrRemote { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgentBaseWithFallbacksOrRemote.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgentBaseWithFallbacksOrRemoteCommitOptional { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgentBaseWithFallbacksOrRemoteCommitOptional.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgentBaseWithFallbacksOrRemoteWithCount { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgentBaseWithFallbacksOrRemoteWithCount.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::InlineAgentWithFallbacks { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.InlineAgentWithFallbacks.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::ListAgentResponse { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.ListAgentResponse.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::ListAgentsRequest { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.ListAgentsRequest.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::ListAgentsSource { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.ListAgentsSource.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::McpServer { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.McpServer.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::OutputMode { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.OutputMode.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::RemoteAgent { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.RemoteAgent.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::RemoteAgentBase { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.RemoteAgentBase.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::RemoteAgentBaseWithFallbacks { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.RemoteAgentBaseWithFallbacks.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::RemoteAgentWithFallbacks { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.RemoteAgentWithFallbacks.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::Upstream { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.Upstream.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
Commands::UsageAgentResponse { .. } => {
let schema: serde_json::Value = serde_json::from_str(
include_str!("../../../../objectiveai-json-schema/agent.UsageAgentResponse.json"),
).expect("embedded JSON Schema must parse");
objectiveai_cli_sdk::output::Output::<objectiveai_cli_sdk::output::Schema>::Notification(
objectiveai_cli_sdk::output::Notification {
value: objectiveai_cli_sdk::output::Schema { schema },
},
).emit(handle).await;
Ok(())
}
}
}
}