Documentation
¶
Index ¶
- 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) 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 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.