For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Datasets
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • MessagesOutputConfig
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

MessagesOutputConfig - Go SDK

MessagesOutputConfig type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

The Go SDK and docs are currently in beta. Report issues on GitHub.

Configuration for controlling output behavior. Supports the effort parameter and structured output format.

Fields

FieldTypeRequiredDescriptionExample
Effortoptionalnullable.OptionalNullable[components.MessagesOutputConfigEffort]➖How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are low, medium, high, xhigh, or max.medium
Formatoptionalnullable.OptionalNullable[components.MessagesOutputConfigFormat]➖A schema to specify Claude’s output format in responses. See structured outputs.
TaskBudgetoptionalnullable.OptionalNullable[components.TaskBudget]➖Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.{"total": 400000,"type": "tokens"}