explain

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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