Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) CreateSession(_ context.Context) (string, error)
- func (a *Adapter) Events() <-chan runtime.Event
- func (a *Adapter) IsHealthy(_ context.Context) bool
- func (a *Adapter) RespondToUserInput(callID string, answers []runtime.QuestionAnswer) error
- func (a *Adapter) ResumeSession(_ context.Context, sessionID string) error
- func (a *Adapter) Runtime() runtime.Runtime
- func (a *Adapter) SendMessage(_ context.Context, text string) error
- func (a *Adapter) Start(ctx context.Context) error
- func (a *Adapter) Stop(_ context.Context) error
- type Client
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 Codex via its WebSocket JSON-RPC API server.
func (*Adapter) RespondToUserInput ¶
func (a *Adapter) RespondToUserInput(callID string, answers []runtime.QuestionAnswer) error
RespondToUserInput sends answers back to Codex via JSON-RPC.
func (*Adapter) ResumeSession ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a JSON-RPC 2.0 client over WebSocket.
func (*Client) Call ¶
func (c *Client) Call(method string, params interface{}) (json.RawMessage, error)
Call sends a JSON-RPC request and waits for the response.
func (*Client) Notifications ¶
func (c *Client) Notifications() <-chan rpcResponse
Notifications returns the channel for server-push notifications.
Click to show internal directories.
Click to hide internal directories.