explain

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunExplain

func RunExplain(args []string) error

func RunExplainWithRunner

func RunExplainWithRunner(rawArgs []string, runner Runner) error

Types

type MatchResult

type MatchResult struct {
	SessionDir   string
	Data         SessionData
	MatchedCount int
}

type Message

type Message struct {
	Role    string `json:"role"`
	Message string `json:"message"`
}

type Runner

type Runner interface {
	Start(ctx context.Context, model string, prompt string) (sessionID string, output string, err error)
	Resume(ctx context.Context, model string, prompt string, meta json.RawMessage) (output string, err error)
}

type RunnerMeta

type RunnerMeta map[string]json.RawMessage

type Runtime

type Runtime struct {
	AgentRunner string
}

func (*Runtime) Resume

func (r *Runtime) Resume(ctx context.Context, model string, prompt string, meta json.RawMessage) (string, error)

func (*Runtime) Start

func (r *Runtime) Start(ctx context.Context, model string, prompt string) (string, string, error)

type SessionData

type SessionData struct {
	AgentRunner      string     `json:"agent_runner"`
	Model            string     `json:"model"`
	AgentRunnersMeta RunnerMeta `json:"agent_runners_meta"`
	Messages         []Message  `json:"messages"`
}

Jump to

Keyboard shortcuts

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