Documentation
¶
Index ¶
- type ACPAdapter
- func (a *ACPAdapter) CreateSession(ctx context.Context) (string, error)
- func (a *ACPAdapter) Events() <-chan runtime.Event
- func (a *ACPAdapter) IsHealthy(ctx context.Context) bool
- func (a *ACPAdapter) ResumeSession(ctx context.Context, sessionID string) (string, error)
- func (a *ACPAdapter) Runtime() runtime.Runtime
- func (a *ACPAdapter) SendMessage(ctx context.Context, text string) error
- func (a *ACPAdapter) Start(ctx context.Context) error
- func (a *ACPAdapter) Stop(ctx context.Context) error
- type Adapter
- func (a *Adapter) CreateSession(ctx context.Context) (string, error)
- func (a *Adapter) Events() <-chan runtime.Event
- func (a *Adapter) IsHealthy(ctx context.Context) bool
- func (a *Adapter) ReplyToQuestion(ctx context.Context, requestID string, answers []string) error
- func (a *Adapter) ResumeSession(_ context.Context, sessionID string) (string, error)
- func (a *Adapter) Runtime() runtime.Runtime
- func (a *Adapter) SendMessage(ctx context.Context, text string) error
- func (a *Adapter) Start(ctx context.Context) error
- func (a *Adapter) Stop(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACPAdapter ¶ added in v1.0.0
type ACPAdapter struct {
// contains filtered or unexported fields
}
func NewACPAdapter ¶ added in v1.0.0
func NewACPAdapter(cfg runtime.AdapterConfig) *ACPAdapter
func (*ACPAdapter) CreateSession ¶ added in v1.0.0
func (a *ACPAdapter) CreateSession(ctx context.Context) (string, error)
func (*ACPAdapter) Events ¶ added in v1.0.0
func (a *ACPAdapter) Events() <-chan runtime.Event
func (*ACPAdapter) IsHealthy ¶ added in v1.0.0
func (a *ACPAdapter) IsHealthy(ctx context.Context) bool
func (*ACPAdapter) ResumeSession ¶ added in v1.0.0
func (*ACPAdapter) Runtime ¶ added in v1.0.0
func (a *ACPAdapter) Runtime() runtime.Runtime
func (*ACPAdapter) SendMessage ¶ added in v1.0.0
func (a *ACPAdapter) SendMessage(ctx context.Context, text string) error
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter communicates with OpenCode via its HTTP API server.
func (*Adapter) CreateSession ¶
func (*Adapter) ReplyToQuestion ¶
ReplyToQuestion sends a reply to a pending question via OC REST API.
func (*Adapter) ResumeSession ¶
Click to show internal directories.
Click to hide internal directories.