Documentation
¶
Index ¶
- Constants
- func NewProvider(cfg ProviderConfig) runtime.Provider
- func ParseTranscriptEvent(line []byte) (events.Event, error)
- type Client
- func (c *Client) Authenticate(ctx context.Context, methodID string) error
- func (c *Client) Close() error
- func (c *Client) Events() <-chan events.Event
- func (c *Client) Initialize(ctx context.Context) (json.RawMessage, error)
- func (c *Client) LoadSession(ctx context.Context, sessionID string) (*Session, error)
- func (c *Client) NewSession(ctx context.Context) (*Session, error)
- func (c *Client) PID() int
- func (c *Client) ResumeSession(ctx context.Context, sessionID string) (*Session, error)
- func (c *Client) SetSessionMode(ctx context.Context, sessionID string, modeID string) error
- func (c *Client) SetSessionModel(ctx context.Context, sessionID string, modelID string) error
- type ClientConfig
- type Provider
- func (p *Provider) AnswerPermission(ctx context.Context, sessionID string, requestID string, ...) error
- func (p *Provider) Cancel(ctx context.Context, sessionID string) error
- func (p *Provider) Capabilities(ctx context.Context) (runtime.Capabilities, error)
- func (p *Provider) Close() error
- func (p *Provider) Events(ctx context.Context, sessionID string) (<-chan events.Event, error)
- func (p *Provider) Prompt(ctx context.Context, sessionID string, prompt string) error
- func (p *Provider) Resume(ctx context.Context, sessionID string) (runtime.Session, error)
- func (p *Provider) Start(ctx context.Context, opts runtime.StartOptions) (runtime.Session, error)
- type ProviderConfig
- type Session
Constants ¶
View Source
const ProbePrompt = "List the files in this directory and exit."
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(cfg ProviderConfig) runtime.Provider
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Authenticate ¶
func (*Client) Initialize ¶
func (*Client) LoadSession ¶
func (*Client) ResumeSession ¶
func (*Client) SetSessionMode ¶
type ClientConfig ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) AnswerPermission ¶
func (*Provider) Capabilities ¶
type ProviderConfig ¶
type ProviderConfig struct {
BackendID string
Bin string
Args []string
SubprocessDiscovery bool
AppendCWDArg bool
Authenticate string // optional: if non-empty, call Client.Authenticate with this methodId after Initialize
ConfigureSession func(ctx context.Context, session *Session, opts runtime.StartOptions) error
}
Click to show internal directories.
Click to hide internal directories.