Documentation
¶
Index ¶
- type Agent
- type AgentEvent
- type AiderAgent
- type BaseAgent
- type ClaudeAgent
- type CodexAgent
- type EventMeta
- type EventType
- type OpenCodeAgent
- type PTYProvider
- type PTYSession
- func (s *PTYSession) AgentName() string
- func (s *PTYSession) Cancel()
- func (s *PTYSession) Close() error
- func (s *PTYSession) Events() <-chan AgentEvent
- func (s *PTYSession) ID() string
- func (s *PTYSession) Label() string
- func (s *PTYSession) PTY() *os.File
- func (s *PTYSession) Send(ctx context.Context, prompt string) error
- func (s *PTYSession) SetLabel(l string)
- func (s *PTYSession) State() SessionState
- type Registry
- type Session
- type SessionOpts
- type SessionState
- type ToolUse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentEvent ¶
type AiderAgent ¶
type AiderAgent struct {
BaseAgent
}
func NewAiderAgent ¶
func NewAiderAgent(command string) *AiderAgent
func (*AiderAgent) StartSession ¶
func (a *AiderAgent) StartSession(ctx context.Context, opts SessionOpts) (Session, error)
type BaseAgent ¶
type BaseAgent struct {
// contains filtered or unexported fields
}
func (*BaseAgent) ResumeSession ¶
func (*BaseAgent) StartPTYSession ¶
type ClaudeAgent ¶
type ClaudeAgent struct {
BaseAgent
}
func NewClaudeAgent ¶
func NewClaudeAgent(command string) *ClaudeAgent
func (*ClaudeAgent) StartSession ¶
func (a *ClaudeAgent) StartSession(ctx context.Context, opts SessionOpts) (Session, error)
type CodexAgent ¶
type CodexAgent struct {
BaseAgent
}
func NewCodexAgent ¶
func NewCodexAgent(command string) *CodexAgent
func (*CodexAgent) StartSession ¶
func (a *CodexAgent) StartSession(ctx context.Context, opts SessionOpts) (Session, error)
type OpenCodeAgent ¶
type OpenCodeAgent struct {
BaseAgent
}
func NewOpenCodeAgent ¶
func NewOpenCodeAgent(command string) *OpenCodeAgent
func (*OpenCodeAgent) StartSession ¶
func (a *OpenCodeAgent) StartSession(ctx context.Context, opts SessionOpts) (Session, error)
type PTYProvider ¶
type PTYSession ¶
type PTYSession struct {
// contains filtered or unexported fields
}
func NewPTYSession ¶
func NewPTYSession(pty *terminal.PTYHandle, agentName, label, id, exitInput string) *PTYSession
func (*PTYSession) AgentName ¶
func (s *PTYSession) AgentName() string
func (*PTYSession) Cancel ¶
func (s *PTYSession) Cancel()
func (*PTYSession) Close ¶
func (s *PTYSession) Close() error
func (*PTYSession) Events ¶
func (s *PTYSession) Events() <-chan AgentEvent
func (*PTYSession) ID ¶
func (s *PTYSession) ID() string
func (*PTYSession) Label ¶
func (s *PTYSession) Label() string
func (*PTYSession) PTY ¶
func (s *PTYSession) PTY() *os.File
func (*PTYSession) SetLabel ¶
func (s *PTYSession) SetLabel(l string)
func (*PTYSession) State ¶
func (s *PTYSession) State() SessionState
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewDefaultRegistry ¶
func NewRegistry ¶
func NewRegistry() *Registry
type SessionOpts ¶
type SessionState ¶
type SessionState int
const ( StateIdle SessionState = iota StateRunning StateError StateClosed )
func (SessionState) String ¶
func (s SessionState) String() string
Click to show internal directories.
Click to hide internal directories.