Documentation
¶
Index ¶
- Constants
- func SetEventLog(f func(format string, args ...any))
- type Bridge
- func (b *Bridge) Authenticate(context.Context, acp.AuthenticateRequest) (acp.AuthenticateResponse, error)
- func (b *Bridge) Cancel(_ context.Context, params acp.CancelNotification) error
- func (b *Bridge) CloseAll()
- func (b *Bridge) CloseSession(_ context.Context, params acp.CloseSessionRequest) (acp.CloseSessionResponse, error)
- func (b *Bridge) Initialize(_ context.Context, params acp.InitializeRequest) (acp.InitializeResponse, error)
- func (b *Bridge) ListSessions(_ context.Context, params acp.ListSessionsRequest) (acp.ListSessionsResponse, error)
- func (b *Bridge) LoadSession(ctx context.Context, params acp.LoadSessionRequest) (acp.LoadSessionResponse, error)
- func (b *Bridge) Logout(context.Context, acp.LogoutRequest) (acp.LogoutResponse, error)
- func (b *Bridge) NewSession(ctx context.Context, params acp.NewSessionRequest) (acp.NewSessionResponse, error)
- func (b *Bridge) Prompt(ctx context.Context, params acp.PromptRequest) (acp.PromptResponse, error)
- func (b *Bridge) ResumeSession(context.Context, acp.ResumeSessionRequest) (acp.ResumeSessionResponse, error)
- func (b *Bridge) SetAgentConnection(conn *acp.AgentSideConnection)
- func (b *Bridge) SetSessionConfigOption(context.Context, acp.SetSessionConfigOptionRequest) (acp.SetSessionConfigOptionResponse, error)
- func (b *Bridge) SetSessionMode(_ context.Context, params acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error)
- type Factory
Constants ¶
View Source
const ( ModeAuto = "auto" ModeAsk = "ask" )
Variables ¶
This section is empty.
Functions ¶
func SetEventLog ¶
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func (*Bridge) Authenticate ¶
func (b *Bridge) Authenticate(context.Context, acp.AuthenticateRequest) (acp.AuthenticateResponse, error)
func (*Bridge) CloseSession ¶
func (b *Bridge) CloseSession(_ context.Context, params acp.CloseSessionRequest) (acp.CloseSessionResponse, error)
func (*Bridge) Initialize ¶
func (b *Bridge) Initialize(_ context.Context, params acp.InitializeRequest) (acp.InitializeResponse, error)
func (*Bridge) ListSessions ¶
func (b *Bridge) ListSessions(_ 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 (b *Bridge) Logout(context.Context, acp.LogoutRequest) (acp.LogoutResponse, error)
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(context.Context, acp.ResumeSessionRequest) (acp.ResumeSessionResponse, error)
func (*Bridge) SetAgentConnection ¶
func (b *Bridge) SetAgentConnection(conn *acp.AgentSideConnection)
func (*Bridge) SetSessionConfigOption ¶
func (b *Bridge) SetSessionConfigOption(context.Context, acp.SetSessionConfigOptionRequest) (acp.SetSessionConfigOptionResponse, error)
func (*Bridge) SetSessionMode ¶
func (b *Bridge) SetSessionMode(_ context.Context, params acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error)
Click to show internal directories.
Click to hide internal directories.