Documentation
¶
Overview ¶
Package executor holds the contract shared by the agent executors (claudeexecutor, googleexecutor, chatcompletionexecutor): the conditions every executor reports the same way, so a caller can handle them without knowing which provider ran the agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMaxTurns = errors.New("agent exceeded maximum conversation turns")
ErrMaxTurns reports that an agent run stopped because it reached its conversation-turn budget before the agent submitted a result. Every executor wraps it, so a caller can recognize the condition with errors.Is regardless of which provider ran the agent and decide what to do with the run's partial work.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package claudeexecutor provides a generic executor for Claude-based agents that reduces boilerplate while maintaining flexibility for agent-specific logic.
|
Package claudeexecutor provides a generic executor for Claude-based agents that reduces boilerplate while maintaining flexibility for agent-specific logic. |
|
Package googleexecutor provides a generic Google AI (Gemini) executor for AI agents.
|
Package googleexecutor provides a generic Google AI (Gemini) executor for AI agents. |
|
internal
|
|
|
execshared
Package execshared holds behavior shared by the executor implementations (claudeexecutor, googleexecutor, chatcompletionexecutor) so each backend applies identical semantics: prompt-suffix handling, resource-label defaults, the submit routing predicate, the bounded tool-call dispatch pool, and the submit-gate validation tail.
|
Package execshared holds behavior shared by the executor implementations (claudeexecutor, googleexecutor, chatcompletionexecutor) so each backend applies identical semantics: prompt-suffix handling, resource-label defaults, the submit routing predicate, the bounded tool-call dispatch pool, and the submit-gate validation tail. |
|
telemetry
Package telemetry provides the shared GenAI metrics recorder used by the executor implementations (claudeexecutor, googleexecutor, chatcompletionexecutor) so each backend emits identically-shaped metrics, differing only in the gen_ai.provider.name attribute.
|
Package telemetry provides the shared GenAI metrics recorder used by the executor implementations (claudeexecutor, googleexecutor, chatcompletionexecutor) so each backend emits identically-shaped metrics, differing only in the gen_ai.provider.name attribute. |
|
openai
|
|
|
chatcompletionexecutor
Package chatcompletionexecutor provides a multi-turn conversation executor for OpenAI-compatible chat completion APIs, including Vertex AI's partner model endpoint.
|
Package chatcompletionexecutor provides a multi-turn conversation executor for OpenAI-compatible chat completion APIs, including Vertex AI's partner model endpoint. |
|
responsesexecutor
Package responsesexecutor runs stateless, streaming Responses conversations with client-side tools and validated terminal submissions.
|
Package responsesexecutor runs stateless, streaming Responses conversations with client-side tools and validated terminal submissions. |
|
Package retry provides exponential backoff retry logic for handling transient errors.
|
Package retry provides exponential backoff retry logic for handling transient errors. |
|
Package systemone calls TypeSafe AI's System One API or a self-hosted Hopper server.
|
Package systemone calls TypeSafe AI's System One API or a self-hosted Hopper server. |
Click to show internal directories.
Click to hide internal directories.