Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) CreateSession(_ context.Context) (string, error)
- func (a *Adapter) Events() <-chan runtime.Event
- func (a *Adapter) IsHealthy(ctx context.Context) bool
- func (a *Adapter) ResumeSession(_ context.Context, _ string) (string, error)
- func (a *Adapter) Runtime() runtime.Runtime
- func (a *Adapter) SendMessage(ctx context.Context, text string) error
- func (a *Adapter) Start(_ 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 delivers messages to OpenClaw agents via Gateway HTTP hooks. Send-only: POST /hooks/agent. OpenClaw owns human-facing messaging.
func New ¶
func New(cfg runtime.AdapterConfig) *Adapter
New creates an OpenClaw adapter for the given agent.
func (*Adapter) ResumeSession ¶
Click to show internal directories.
Click to hide internal directories.