acp

package
v0.107.39 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeAuto = "auto"
	ModeAsk  = "ask"
	ModePlan = "plan"
)

Variables

This section is empty.

Functions

func SetEventLog

func SetEventLog(f func(format string, args ...any))

Types

type Bridge

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

func NewBridge

func NewBridge(version string, newAgent Factory, store *session.Store, vision bool, mcpBase map[string]mcp.ServerConfig) *Bridge

func (*Bridge) Cancel

func (b *Bridge) Cancel(_ context.Context, params acp.CancelNotification) error

func (*Bridge) CloseAll

func (b *Bridge) CloseAll()

func (*Bridge) CloseSession

func (*Bridge) Initialize

func (b *Bridge) Initialize(_ context.Context, params acp.InitializeRequest) (acp.InitializeResponse, error)

func (*Bridge) ListSessions

func (b *Bridge) ListSessions(ctx context.Context, params acp.ListSessionsRequest) (acp.ListSessionsResponse, error)

func (*Bridge) LoadSession

func (b *Bridge) LoadSession(ctx context.Context, params acp.LoadSessionRequest) (acp.LoadSessionResponse, error)

func (*Bridge) Logout

func (*Bridge) NewSession

func (b *Bridge) NewSession(ctx context.Context, params acp.NewSessionRequest) (acp.NewSessionResponse, error)

func (*Bridge) Prompt

func (b *Bridge) Prompt(ctx context.Context, params acp.PromptRequest) (acp.PromptResponse, error)

func (*Bridge) ResumeSession

func (b *Bridge) ResumeSession(ctx context.Context, params acp.ResumeSessionRequest) (acp.ResumeSessionResponse, error)

func (*Bridge) SetAgentConnection

func (b *Bridge) SetAgentConnection(conn *acp.AgentSideConnection)

func (*Bridge) SetSessionMode

func (b *Bridge) SetSessionMode(ctx context.Context, params acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error)

type Factory

type Factory func(ctx context.Context, cwd string, servers map[string]mcp.ServerConfig) (*agent.Agent, *mcp.Manager, error)

Jump to

Keyboard shortcuts

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