acp

package
v1.143.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, agentFilename string, stdin io.Reader, stdout io.Writer, runConfig *config.RuntimeConfig, sessionDB string) (retErr error)

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

Authenticate implements acp.Agent.

func (*Agent) Cancel

func (a *Agent) Cancel(_ context.Context, params acp.CancelNotification) error

Cancel implements acp.Agent.

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

Logout implements acp.Agent (optional, not supported).

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

SetSessionConfigOption implements acp.Agent (optional, not advertised in capabilities).

func (*Agent) SetSessionMode

SetSessionMode implements acp.Agent (optional).

func (*Agent) Stop

func (a *Agent) Stop(ctx context.Context) error

Stop rejects new work and joins the final drain, even if ctx is canceled.

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

func (*FilesystemToolset) Tools

func (t *FilesystemToolset) Tools(ctx context.Context) ([]tools.Tool, error)

Tools returns the tool definitions with ACP-specific overrides

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session represents an ACP session.

Jump to

Keyboard shortcuts

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