Versions in this module Expand all Collapse all v0 v0.0.7 May 30, 2026 Changes in this version + 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 struct + Path string + Status string + type Logger interface + Log func(msg string) + type Options struct + Dir string + Logger Logger + Model string + Prompt string + type SessionOpts struct + Agent string + Command string + Dir string + File []string + Model string + NoSubAgents bool + Thinking bool + Variant string + type SessionRunOpts struct + Agent string + AgentPath string + Command string + Dir string + DisableSubAgents bool + Env []string + File []string + Model string + NoSubAgents bool + OnEvent StreamCallback + Prompt string + SessionID string + Thinking bool + Variant string + type StreamCallback func(event StreamEvent) + type StreamEvent struct + Done bool + Error string + File *FileChange + Reasoning string + ReasoningTime *StreamEventTime + SessionID string + Text string + Timestamp int64 + ToolUse *ToolUseEvent + Type string + type StreamEventTime struct + End int64 + Start int64 + type ToolUseEvent struct + Error string + ID string + Output string + Status string + Summary string + Tool string