pi

package
v0.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartClient

func StartClient(ctx context.Context, provider string, model string, sessionDir string) (*client, error)

func StartClientWithAgent

func StartClientWithAgent(ctx context.Context, provider string, model string, sessionDir string, agent string) (*client, error)

func StartClientWithAgentAndDir

func StartClientWithAgentAndDir(ctx context.Context, provider string, model string, sessionDir string, agent string, cwd string) (*client, error)

func StartClientWithAgentProfileAndDir

func StartClientWithAgentProfileAndDir(ctx context.Context, provider string, model string, sessionDir string, agent string, agentProfile string, cwd string) (*client, error)

func StartClientWithAgentProfileThinkingAndDir

func StartClientWithAgentProfileThinkingAndDir(ctx context.Context, provider string, model string, sessionDir string, agent string, agentProfile string, thinking string, cwd string) (*client, error)

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewWithOptions

func NewWithOptions(opts runtime.StartOptions) *Provider

func (*Provider) AnswerPermission

func (p *Provider) AnswerPermission(ctx context.Context, sessionID string, requestID string, response runtime.PermissionResponse) error

func (*Provider) Cancel

func (p *Provider) Cancel(ctx context.Context, sessionID string) error

func (*Provider) Capabilities

func (p *Provider) Capabilities(ctx context.Context) (runtime.Capabilities, error)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) Events

func (p *Provider) Events(ctx context.Context, sessionID string) (<-chan events.Event, error)

func (*Provider) Prompt

func (p *Provider) Prompt(ctx context.Context, sessionID string, prompt string) error

func (*Provider) Resume

func (p *Provider) Resume(ctx context.Context, sessionID string) (runtime.Session, error)

func (*Provider) ResumeWithOptions

func (p *Provider) ResumeWithOptions(ctx context.Context, sessionID string, opts runtime.StartOptions) (runtime.Session, error)

func (*Provider) Start

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL