Help us shape the future of Go! Take the 2026 Go Developer Survey

model/

directory
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: Apache-2.0

Directories

Path Synopsis
Package anthropic adapts Anthropic's Messages API to agent.Model.
Package anthropic adapts Anthropic's Messages API to agent.Model.
Package gemini adapts Google's Gemini generateContent API to agent.Model.
Package gemini adapts Google's Gemini generateContent API to agent.Model.
internal
errtext
Package errtext bounds provider-supplied text that an adapter quotes in an error.
Package errtext bounds provider-supplied text that an adapter quotes in an error.
toolcfg
Package toolcfg checks a request's tools and tool choice against the rules the model providers enforce, so an adapter refuses a setup the provider would answer with a 400 before sending it, with an agent.ErrConfig that says what is wrong.
Package toolcfg checks a request's tools and tool choice against the rules the model providers enforce, so an adapter refuses a setup the provider would answer with a 400 before sending it, with an agent.ErrConfig that says what is wrong.
Package modeltest checks an HTTP-backed agent.Model against the streaming contract the agent loop relies on:
Package modeltest checks an HTTP-backed agent.Model against the streaming contract the agent loop relies on:
Package openai adapts the OpenAI Chat Completions API to agent.Model.
Package openai adapts the OpenAI Chat Completions API to agent.Model.
Package provider is the kit a model adapter is built from: HTTP error classification, SSE framing, a cap on a streamed reply, Retry-After parsing, and the tool-result codec.
Package provider is the kit a model adapter is built from: HTTP error classification, SSE framing, a cap on a streamed reply, Retry-After parsing, and the tool-result codec.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL