Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent defines the Agent: a set of instructions, a model and tools, plus the decision loop that drives them.
|
Package agent defines the Agent: a set of instructions, a model and tools, plus the decision loop that drives them. |
|
Package chat defines the lowest-level LLM chat abstraction.
|
Package chat defines the lowest-level LLM chat abstraction. |
|
chattest
Package chattest provides a scripted Client for testing users of chat.Client, plus a stream contract checker.
|
Package chattest provides a scripted Client for testing users of chat.Client, plus a stream contract checker. |
|
imageproc
Package imageproc normalizes an image once before it enters the conversation history: it detects the format, converts it to a format models accept, and limits its dimensions and size.
|
Package imageproc normalizes an image once before it enters the conversation history: it detects the format, converts it to a format models accept, and limits its dimensions and size. |
|
provider/anthropic
Package anthropic implements chat.Client with the Anthropic Messages API.
|
Package anthropic implements chat.Client with the Anthropic Messages API. |
|
provider/deepseek
Package deepseek provides constructors for DeepSeek chat.Clients.
|
Package deepseek provides constructors for DeepSeek chat.Clients. |
|
provider/gemini
Package gemini implements chat.Client for Gemini on top of the official google.golang.org/genai SDK.
|
Package gemini implements chat.Client for Gemini on top of the official google.golang.org/genai SDK. |
|
provider/openai
Package openai implements chat.Client with the OpenAI Responses API; it also works with endpoints compatible with the Responses API (such as DeepSeek).
|
Package openai implements chat.Client with the OpenAI Responses API; it also works with endpoints compatible with the Responses API (such as DeepSeek). |
|
api/anthropic
module
|
|
|
api/gemini
module
|
|
|
api/openai
module
|
|
|
examples
|
|
|
approval
command
Approval: a WrapTool middleware asks a human before every shell command runs.
|
Approval: a WrapTool middleware asks a human before every shell command runs. |
|
mcp
command
MCP: an Agent uses the tools of an MCP server over stdio.
|
MCP: an Agent uses the tools of an MCP server over stdio. |
|
quickstart
command
Quickstart: an Agent with one typed tool, run directly without sessions.
|
Quickstart: an Agent with one typed tool, run directly without sessions. |
|
runner
command
Runner: sessions that remember earlier turns, with the reply streamed as it is generated.
|
Runner: sessions that remember earlier turns, with the reply streamed as it is generated. |
|
subagent
command
Sub-agents: the main Agent delegates work to sub-agents running in the background and combines their results.
|
Sub-agents: the main Agent delegates work to sub-agents running in the background and combines their results. |
|
Package runner is the Agent runtime: it loads history by session ID, builds the context of each run, drives the Agent, persists messages, manages queued messages and history compaction, and hands the events of a run to its caller.
|
Package runner is the Agent runtime: it loads history by session ID, builds the context of each run, drives the Agent, persists messages, manages queued messages and history compaction, and hands the events of a run to its caller. |
|
Package session defines the persistence model of sessions: sessions, session messages and the store interface.
|
Package session defines the persistence model of sessions: sessions, session messages and the store interface. |
|
Package tool defines the tools an Agent can call: the tool interface, the execution context, results, and toolsets that provide tools in bulk.
|
Package tool defines the tools an Agent can call: the tool interface, the execution context, results, and toolsets that provide tools in bulk. |
|
mcp
Package mcp exposes the tools of an MCP (Model Context Protocol) server as a toolset; add a Client to Agent.Toolsets to use it.
|
Package mcp exposes the tools of an MCP (Model Context Protocol) server as a toolset; add a Client to Agent.Toolsets to use it. |
|
shell
Package shell provides the built-in command tool shell: the model can run a command in the foreground and get its output, or run it in the background and receive the result as a notice in the session when it ends.
|
Package shell provides the built-in command tool shell: the model can run a command in the foreground and get its output, or run it in the background and receive the result as a notice in the session when it ends. |
|
skill
Package skill provides skills: focused instructions for the model, optionally with resource files.
|
Package skill provides skills: focused instructions for the model, optionally with resource files. |
|
task
Package task provides the built-in background task tool task: it lists and stops the background tasks spawned by the current session, for every kind of task, including sub-agents and background commands.
|
Package task provides the built-in background task tool task: it lists and stops the background tasks spawned by the current session, for every kind of task, including sub-agents and background commands. |
|
todo
Package todo provides the built-in checklist tool todo_write: the model breaks a multi-step task into a checklist and updates its progress as it goes.
|
Package todo provides the built-in checklist tool todo_write: the model breaks a multi-step task into a checklist and updates its progress as it goes. |
|
x
|
|
|
notify
Package notify provides a common interface for sending Agent notifications.
|
Package notify provides a common interface for sending Agent notifications. |
|
notify/telegram
Package telegram implements notify.Notifier with the Telegram Bot API.
|
Package telegram implements notify.Notifier with the Telegram Bot API. |
|
notify/webhook
Package webhook implements notify.Notifier with an HTTP POST of a JSON body.
|
Package webhook implements notify.Notifier with an HTTP POST of a JSON body. |
Click to show internal directories.
Click to hide internal directories.