Documentation
¶
Overview ¶
Package acp serves the Agent Client Protocol (agentclientprotocol.com): newline-delimited JSON-RPC 2.0 through which a client such as Zed, Buzz's buzz-acp or Buzz Desktop drives any number of Orb sessions in one process. An ACP session id is the Orb session id, so a stored session reopens by id.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host interface {
Open(ctx context.Context, options Options) (session *agent.AgentSessionRuntime, close func(), err error)
}
Host opens the sessions a client drives; close disposes one.
type MCPServer ¶
type MCPServer struct {
Name string `json:"name"`
Type string `json:"type,omitempty"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Env []Variable `json:"env,omitempty"`
URL string `json:"url,omitempty"`
Headers []Variable `json:"headers,omitempty"`
}
MCPServer is an ACP McpServer: stdio (command) or remote (type and url).
type Options ¶
type Options struct {
ID string
CWD string
// SystemPrompt replaces Orb's base prompt, as --system-prompt does; Append
// adds to it, as --append-system-prompt does.
SystemPrompt *string
Append string
MCPServers []MCPServer
}
Options open one session: a new one in CWD, or the stored session ID.
Click to show internal directories.
Click to hide internal directories.