Skip to content
Français

AgentModel

import type { AgentModel } from "@elie-laloum/outpost";
  • nameRequired
    string
    Nonempty model identifier passed unchanged to the CLI or model service; no local catalog is consulted.
  • reasoningOptional
    ModelReasoning | undefined
    Reasoning effort; omitted keeps the model default. Claude Code and Codex accept low to max, the Anthropic provider none and low to max, the OpenAI provider any level; other CLIs throw code configuration when the agent is composed.
  • maxOutputTokensOptional
    number | undefined
    Positive integer limit on output tokens per model response. Claude Code receives it as CLAUDE_CODE_MAX_OUTPUT_TOKENS, the OpenAI provider sends it with each request and the Anthropic provider requires it; Codex, Antigravity, Copilot and Kimi reject it.
export interface AgentModel {
  readonly name: string;
  readonly reasoning?: ModelReasoning;
  readonly maxOutputTokens?: number;
}