agentruntime

package
v2026.609.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRestartSolomon = errors.New("restart solomon")

Functions

func NewREPLReadline

func NewREPLReadline(defaultPrompt string) (*readline.Instance, func(string) (string, error), error)

func ReadlinePrompt

func ReadlinePrompt(rl *readline.Instance, prompt string) (string, error)

func StdinIsTerminal

func StdinIsTerminal() bool

Types

type Runtime

type Runtime struct {
	RL *readline.Instance

	Client  openai.Client
	Backend llm.CompletionBackend
	Model   string
	Cfg     *config.Root
	Prov    *config.Provider

	ProjHex  string
	ProjRoot string

	Mode string

	Session *chatstore.Session

	CompactionThresholdTokens int64

	EphemeralSession bool

	Out io.Writer

	MCP *solomonmcp.Manager

	ReplShellFirst bool

	EventSink       cievents.Sink
	FailOnToolError bool

	ToolOut *tooloutput.Service

	Instructions *instructions.Loader
	// contains filtered or unexported fields
}

func NewRuntime

func NewRuntime(rl *readline.Instance, cfg *config.Root, prov *config.Provider, projHex, projRoot string, sess *chatstore.Session) *Runtime

func (*Runtime) ApplyCurrentModel

func (r *Runtime) ApplyCurrentModel(providerName, modelID string) error

func (*Runtime) ApplyGotoCheckpoint

func (r *Runtime) ApplyGotoCheckpoint(id *checkpoint.FullCheckpointID) error

func (*Runtime) AugmentNestedCustomSystem

func (r *Runtime) AugmentNestedCustomSystem(system string) (string, error)

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) CursorNativeToolsEnabled added in v2026.606.0

func (r *Runtime) CursorNativeToolsEnabled() bool

func (*Runtime) InitMCP

func (r *Runtime) InitMCP(ctx context.Context)

func (*Runtime) PrintCursorNativeToolEvent added in v2026.606.0

func (r *Runtime) PrintCursorNativeToolEvent(rawJSON string)

func (*Runtime) ReplCompleteCfg added in v2026.608.0

func (r *Runtime) ReplCompleteCfg() *config.Root

func (*Runtime) ReplCompleteProjHex added in v2026.602.2

func (r *Runtime) ReplCompleteProjHex() string

func (*Runtime) ReplCompleteProjRoot added in v2026.602.2

func (r *Runtime) ReplCompleteProjRoot() string

func (*Runtime) ReplCompleteShellFirst added in v2026.602.2

func (r *Runtime) ReplCompleteShellFirst() bool

func (*Runtime) ReplCompleteSnapshotSession added in v2026.602.2

func (r *Runtime) ReplCompleteSnapshotSession() *chatstore.Session

func (*Runtime) ResolveTurnInvocations

func (r *Runtime) ResolveTurnInvocations(turn llm.AssistantTurnResult, legacySW *tooling.LegacyStreamWriter) (invs []tooling.Invocation, toolIDs []string, rejectNative bool, malformed error)

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context) error

func (*Runtime) RunPromptOnce

func (r *Runtime) RunPromptOnce(ctx context.Context, line string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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