Documentation
¶
Index ¶
- func Run(ctx context.Context, agentFilename string, stdin io.Reader, stdout io.Writer, ...) (retErr error)
- type Agent
- func (a *Agent) Authenticate(ctx context.Context, params acp.AuthenticateRequest) (acp.AuthenticateResponse, error)
- func (a *Agent) Cancel(_ context.Context, params acp.CancelNotification) error
- func (a *Agent) CloseSession(ctx context.Context, params acp.CloseSessionRequest) (acp.CloseSessionResponse, error)
- func (a *Agent) Initialize(ctx context.Context, params acp.InitializeRequest) (acp.InitializeResponse, error)
- func (a *Agent) ListSessions(ctx context.Context, params acp.ListSessionsRequest) (acp.ListSessionsResponse, error)
- func (a *Agent) LoadSession(ctx context.Context, params acp.LoadSessionRequest) (acp.LoadSessionResponse, error)
- func (a *Agent) Logout(ctx context.Context, _ acp.LogoutRequest) (acp.LogoutResponse, error)
- func (a *Agent) NewConnection(input io.Writer, output io.Reader) *acp.AgentSideConnection
- func (a *Agent) NewSession(ctx context.Context, params acp.NewSessionRequest) (_ acp.NewSessionResponse, retErr error)
- func (a *Agent) Prompt(ctx context.Context, params acp.PromptRequest) (acp.PromptResponse, error)
- func (a *Agent) ResumeSession(ctx context.Context, params acp.ResumeSessionRequest) (acp.ResumeSessionResponse, error)
- func (a *Agent) SetAgentConnection(conn *acp.AgentSideConnection)
- func (a *Agent) SetSessionConfigOption(ctx context.Context, params acp.SetSessionConfigOptionRequest) (acp.SetSessionConfigOptionResponse, error)
- func (a *Agent) SetSessionMode(ctx context.Context, params acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error)
- func (a *Agent) Stop(ctx context.Context) error
- func (a *Agent) UnstableDeleteSession(ctx context.Context, params acp.UnstableDeleteSessionRequest) (acp.UnstableDeleteSessionResponse, error)
- type FilesystemToolset
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent implements the ACP Agent interface for docker agent.
func NewAgent ¶
func NewAgent(agentSource config.Source, runConfig *config.RuntimeConfig, sessionStore session.Store) *Agent
NewAgent creates a new ACP agent.
func (*Agent) Authenticate ¶
func (a *Agent) Authenticate(ctx context.Context, params acp.AuthenticateRequest) (acp.AuthenticateResponse, error)
Authenticate adopts configured credentials; it never collects or writes them.
func (*Agent) CloseSession ¶ added in v1.55.0
func (a *Agent) CloseSession(ctx context.Context, params acp.CloseSessionRequest) (acp.CloseSessionResponse, error)
CloseSession implements acp.Agent.
func (*Agent) Initialize ¶
func (a *Agent) Initialize(ctx context.Context, params acp.InitializeRequest) (acp.InitializeResponse, error)
Initialize implements acp.Agent.
func (*Agent) ListSessions ¶ added in v1.55.0
func (a *Agent) ListSessions(ctx context.Context, params acp.ListSessionsRequest) (acp.ListSessionsResponse, error)
ListSessions implements acp.Agent using metadata only, never conversation histories.
func (*Agent) LoadSession ¶
func (a *Agent) LoadSession(ctx context.Context, params acp.LoadSessionRequest) (acp.LoadSessionResponse, error)
LoadSession implements acp.AgentLoader.
func (*Agent) Logout ¶ added in v1.74.0
func (a *Agent) Logout(ctx context.Context, _ acp.LogoutRequest) (acp.LogoutResponse, error)
Logout revokes this connection's access and drains owned work, not host logins.
func (*Agent) NewConnection ¶ added in v1.144.0
NewConnection binds the pinned SDK with elicitation scope and tool-name adapters.
func (*Agent) NewSession ¶
func (a *Agent) NewSession(ctx context.Context, params acp.NewSessionRequest) (_ acp.NewSessionResponse, retErr error)
NewSession implements acp.Agent.
func (*Agent) Prompt ¶
func (a *Agent) Prompt(ctx context.Context, params acp.PromptRequest) (acp.PromptResponse, error)
Prompt implements acp.Agent.
func (*Agent) ResumeSession ¶ added in v1.55.0
func (a *Agent) ResumeSession(ctx context.Context, params acp.ResumeSessionRequest) (acp.ResumeSessionResponse, error)
ResumeSession implements acp.Agent.
func (*Agent) SetAgentConnection ¶
func (a *Agent) SetAgentConnection(conn *acp.AgentSideConnection)
SetAgentConnection sets the ACP connection.
func (*Agent) SetSessionConfigOption ¶ added in v1.55.0
func (a *Agent) SetSessionConfigOption(ctx context.Context, params acp.SetSessionConfigOptionRequest) (acp.SetSessionConfigOptionResponse, error)
SetSessionConfigOption accepts stable select values only.
func (*Agent) SetSessionMode ¶
func (a *Agent) SetSessionMode(ctx context.Context, params acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error)
func (*Agent) UnstableDeleteSession ¶ added in v1.144.0
func (a *Agent) UnstableDeleteSession(ctx context.Context, params acp.UnstableDeleteSessionRequest) (acp.UnstableDeleteSessionResponse, error)
UnstableDeleteSession implements the SDK's session/delete handler.
type FilesystemToolset ¶
type FilesystemToolset struct {
*filesystem.ToolSet
// contains filtered or unexported fields
}
FilesystemToolset routes supported text operations through the ACP client.
func NewFilesystemToolset ¶
func NewFilesystemToolset(agent *Agent, workingDir string, opts ...filesystem.Opt) *FilesystemToolset
NewFilesystemToolset creates a new ACP-specific filesystem toolset
Source Files
¶
- agent.go
- authentication.go
- commands.go
- configuration.go
- content.go
- delete.go
- elicitation.go
- elicitation_transport.go
- filesystem.go
- lifecycle.go
- list.go
- mcp.go
- message_ids.go
- outcome.go
- pathcase_unix.go
- registry.go
- replay.go
- resume.go
- run.go
- terminal.go
- terminal_tool.go
- terminal_unix.go
- tool_lifecycle.go
- tool_name.go
- toolcall.go
- usage.go