pkg/

directory
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0

Directories

Path Synopsis
Package agent provides the core orchestration loop for GopherAgent.
Package agent provides the core orchestration loop for GopherAgent.
Package agentmetrics exposes a Prometheus / OpenMetrics HTTP handler for a gopheragent BudgetTracker.
Package agentmetrics exposes a Prometheus / OpenMetrics HTTP handler for a gopheragent BudgetTracker.
Package audio defines provider-neutral types for speech-to-text.
Package audio defines provider-neutral types for speech-to-text.
Package auditlog records who did what — tool executions, human approvals, policy decisions, data and configuration changes — as structured audit events shipped over OTLP logs, so the collector infrastructure already running for traces and metrics carries the audit trail too.
Package auditlog records who did what — tool executions, human approvals, policy decisions, data and configuration changes — as structured audit events shipped over OTLP logs, so the collector infrastructure already running for traces and metrics carries the audit trail too.
Package builder provides YAML-driven agent configuration and a global tool catalog.
Package builder provides YAML-driven agent configuration and a global tool catalog.
Package cache provides a trigram-based similarity LRU cache for deduplicating tool results.
Package cache provides a trigram-based similarity LRU cache for deduplicating tool results.
Package eval is an evaluation harness for GopherAgent agents.
Package eval is an evaluation harness for GopherAgent agents.
Package history defines conversation storage types and session backends.
Package history defines conversation storage types and session backends.
historyfake
Package historyfake provides a test-friendly SessionManager fake for consumers writing agent-integration tests without standing up a real session backend.
Package historyfake provides a test-friendly SessionManager fake for consumers writing agent-integration tests without standing up a real session backend.
llm
Package llm hosts provider-neutral LLM utilities — currently the rule-based RouterProvider for multi-model selection — and the per-provider subpackages.
Package llm hosts provider-neutral LLM utilities — currently the rule-based RouterProvider for multi-model selection — and the per-provider subpackages.
anthropic
Package anthropic implements agent.LLMProvider for Anthropic's Claude models via the Messages API, including prompt caching, extended thinking, and structured output (synthesized-tool JSON mode).
Package anthropic implements agent.LLMProvider for Anthropic's Claude models via the Messages API, including prompt caching, extended thinking, and structured output (synthesized-tool JSON mode).
gemini
Package gemini implements agent.LLMProvider for Google Gemini — both the public Gemini API and Vertex AI — plus the Gemini-backed embedder and multimodal media analyzer.
Package gemini implements agent.LLMProvider for Google Gemini — both the public Gemini API and Vertex AI — plus the Gemini-backed embedder and multimodal media analyzer.
llmfake
Package llmfake provides in-tree fakes for the agent.LLMProvider interface, mirroring pkg/history/historyfake for the session layer.
Package llmfake provides in-tree fakes for the agent.LLMProvider interface, mirroring pkg/history/historyfake for the session layer.
openai
Package openai implements agent.LLMProvider for the OpenAI Chat Completions API and any OpenAI-compatible endpoint (Ollama, Groq, Together AI, vLLM, ...), plus the OpenAI-backed embedder, vision analyzer, and history summary provider.
Package openai implements agent.LLMProvider for the OpenAI Chat Completions API and any OpenAI-compatible endpoint (Ollama, Groq, Together AI, vLLM, ...), plus the OpenAI-backed embedder, vision analyzer, and history summary provider.
Package memory provides cross-session note persistence so agents can learn between sessions without retraining.
Package memory provides cross-session note persistence so agents can learn between sessions without retraining.
Package skills implements progressive disclosure of agent instructions, following the Agent Skills format (https://agentskills.io).
Package skills implements progressive disclosure of agent instructions, following the Agent Skills format (https://agentskills.io).
Package telemetry provides OpenTelemetry integration for GopherAgent via the EventHandler system.
Package telemetry provides OpenTelemetry integration for GopherAgent via the EventHandler system.
otelllm
Package otelllm provides an OpenTelemetry instrumenting decorator for any agent.LLMProvider.
Package otelllm provides an OpenTelemetry instrumenting decorator for any agent.LLMProvider.
otelsetup
Package otelsetup wires an OpenTelemetry OTLP pipeline for gopheragent with a single call.
Package otelsetup wires an OpenTelemetry OTLP pipeline for gopheragent with a single call.
oteltools
Package oteltools provides an OpenTelemetry tools.Middleware that traces each tool execution and records latency and error metrics.
Package oteltools provides an OpenTelemetry tools.Middleware that traces each tool execution and records latency and error metrics.
semconv
Package semconv holds the OpenTelemetry attribute keys and metric names shared by the gopheragent instrumentation packages (otelllm, oteltools, and the agent loop).
Package semconv holds the OpenTelemetry attribute keys and metric names shared by the gopheragent instrumentation packages (otelllm, oteltools, and the agent loop).
spanattr
Package spanattr carries request-scoped span attributes — tenant, user, feature flag, request ID — on a context.Context, so every span started under that ctx (agent run, iteration, chat, execute_tool, sub-agent runs) can be stamped with them without threading values through each instrumentation layer.
Package spanattr carries request-scoped span attributes — tenant, user, feature flag, request ID — on a context.Context, so every span started under that ctx (agent run, iteration, chat, execute_tool, sub-agent runs) can be stamped with them without threading values through each instrumentation layer.
Package tools defines the Tool interface and extension utilities.
Package tools defines the Tool interface and extension utilities.
toolsfake
Package toolsfake provides a configurable tools.Tool fake for agent tests.
Package toolsfake provides a configurable tools.Tool fake for agent tests.

Jump to

Keyboard shortcuts

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