Help us shape the future of Go! Take the 2026 Go Developer Survey

acp

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func New

func New(ctx context.Context, ws *code.Workspace, def code.AgentDef) (*Agent, error)

func NewInProcess

func NewInProcess(
	ctx context.Context,
	ws *code.Workspace,
	name string,
	serverAgent acpsdk.Agent,
	setupServer func(*acpsdk.AgentSideConnection),
	cleanup func() error,
) (*Agent, error)

func (*Agent) Cancel

func (a *Agent) Cancel(id string)

func (*Agent) Close

func (a *Agent) Close() error

func (*Agent) Commands added in v0.12.0

func (a *Agent) Commands(id string) []code.Command

func (*Agent) DeleteSession

func (a *Agent) DeleteSession(ctx context.Context, id string) error

func (*Agent) Effort

func (a *Agent) Effort(sessionID string) (string, []string)

func (*Agent) HistorySnapshot added in v0.12.9

func (a *Agent) HistorySnapshot(id string) code.HistorySnapshot

func (*Agent) HistoryVersion added in v0.12.9

func (a *Agent) HistoryVersion(id string) code.HistoryVersion

func (*Agent) KillTerminal

Terminal is not advertised; a zero-valued success would read as real data.

func (*Agent) ListSessions

func (a *Agent) ListSessions(ctx context.Context) ([]code.SessionInfo, error)

func (*Agent) LoadSession

func (a *Agent) LoadSession(ctx context.Context, id string) error

func (*Agent) LoadSessionStream added in v0.8.8

func (a *Agent) LoadSessionStream(ctx context.Context, id string) iter.Seq2[[]agent.Message, error]

func (*Agent) Messages

func (a *Agent) Messages(id string) []agent.Message

func (*Agent) Models

func (a *Agent) Models(sessionID string) ([]model.Model, string)

func (*Agent) Modes added in v0.8.0

func (a *Agent) Modes(sessionID string) ([]code.Mode, string)

func (*Agent) Name

func (a *Agent) Name() string

func (*Agent) NewSession

func (a *Agent) NewSession(ctx context.Context) (string, error)

func (*Agent) Send

func (a *Agent) Send(ctx context.Context, id string, input []agent.Content) (iter.Seq2[agent.Message, error], error)

func (*Agent) SessionUpdate

func (a *Agent) SessionUpdate(_ context.Context, n acpsdk.SessionNotification) error

func (*Agent) SetEffort

func (a *Agent) SetEffort(ctx context.Context, sessionID, value string) error

func (*Agent) SetMode added in v0.8.0

func (a *Agent) SetMode(ctx context.Context, sessionID, modeID string) error

func (*Agent) SetModel

func (a *Agent) SetModel(ctx context.Context, sessionID, id string) error

func (*Agent) SetUI added in v0.8.0

func (a *Agent) SetUI(ui code.UI)

func (*Agent) Steer added in v0.10.9

func (a *Agent) Steer(ctx context.Context, id string, input code.TurnInput) error

func (*Agent) SupportsDelete added in v0.8.5

func (a *Agent) SupportsDelete() bool

func (*Agent) TurnFeatures added in v0.10.9

func (a *Agent) TurnFeatures(string) code.TurnFeatures

func (*Agent) UnstableCreateElicitation added in v0.11.8

func (*Agent) Usage

func (a *Agent) Usage(id string) agent.Usage

func (*Agent) Workspace

func (a *Agent) Workspace() *code.Workspace

Jump to

Keyboard shortcuts

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