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. |
Click to show internal directories.
Click to hide internal directories.