Documentation
¶
Index ¶
- func ResumeSession(ctx context.Context, opts SessionRunOpts) (string, string, error)
- func Run(opts Options) (string, error)
- func StartSession(ctx context.Context, opts SessionRunOpts) (string, string, error)
- type FileChange
- type Logger
- type Options
- type SessionOpts
- type SessionRunOpts
- type StreamCallback
- type StreamEvent
- type StreamEventTime
- type ToolUseEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResumeSession ¶
func StartSession ¶
Types ¶
type FileChange ¶
type SessionOpts ¶
type SessionOpts struct {
Model string `json:"model,omitempty"`
Agent string `json:"agent,omitempty"`
Dir string `json:"dir,omitempty"`
File []string `json:"file,omitempty"`
Command string `json:"command,omitempty"`
Variant string `json:"variant,omitempty"`
NoSubAgents bool `json:"noSubAgents,omitempty"`
Thinking bool `json:"thinking,omitempty"`
}
type SessionRunOpts ¶
type StreamCallback ¶
type StreamCallback func(event StreamEvent)
type StreamEvent ¶
type StreamEvent struct {
Type string `json:"type"`
Timestamp int64 `json:"timestamp,omitempty"`
SessionID string `json:"sessionID,omitempty"`
Text string `json:"text,omitempty"`
ToolUse *ToolUseEvent `json:"toolUse,omitempty"`
Error string `json:"error,omitempty"`
Reasoning string `json:"reasoning,omitempty"`
ReasoningTime *StreamEventTime `json:"reasoningTime,omitempty"`
File *FileChange `json:"file,omitempty"`
Done bool `json:"done,omitempty"`
}
type StreamEventTime ¶
Click to show internal directories.
Click to hide internal directories.