Documentation
¶
Index ¶
- func New(req agentspi.OpenRequest) (agentspi.Agent, error)
- type Agent
- func (a *Agent) Cancel(_ context.Context, t transport.Transport, sessionID string)
- func (a *Agent) InitializeParams() map[string]any
- func (a *Agent) Name() string
- func (a *Agent) Open(ctx context.Context, h transport.Handlers) (transport.Transport, error)
- func (a *Agent) PromptParams(sessionID, input string, _ string) map[string]any
- func (a *Agent) SelectSessionModel(ctx context.Context, t transport.Transport, sessionID, modelID string, ...) ([]agentspi.ConfigOption, error)
- func (a *Agent) SessionListParams(cwd, cursor string) map[string]any
- func (a *Agent) SessionLoadParams(sessionID string) map[string]any
- func (a *Agent) SessionNewParams(string) map[string]any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) InitializeParams ¶
func (*Agent) PromptParams ¶
func (*Agent) SelectSessionModel ¶
func (a *Agent) SelectSessionModel(ctx context.Context, t transport.Transport, sessionID, modelID string, _ []agentspi.ConfigOption) ([]agentspi.ConfigOption, error)
SelectSessionModel applies the model by setting opencode's "model" config option via session/set_config_option. This is the spec-blessed path (ACP has no session/set_model); verified against the real opencode binary.
func (*Agent) SessionListParams ¶
func (*Agent) SessionLoadParams ¶
func (*Agent) SessionNewParams ¶
SessionNewParams omits model selection: ACP defines no model field on session/new and no session/set_model method. Per-session model selection, if ever supported, must go through the SessionModelSelector capability.
Click to show internal directories.
Click to hide internal directories.