agentruntime

package
v0.20260527.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultilineStdin

func NewMultilineStdin(inner stdinReadCloser) io.ReadCloser

func NewREPLReadline added in v0.20260521.2

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

func NewReplCompleter added in v0.20260525.0

func NewReplCompleter(env ReplCompleteEnv) readline.AutoCompleter

func PlatformStdin

func PlatformStdin() stdinReadCloser

func ReadlinePrompt added in v0.20260521.2

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

func ReplCompleteDo added in v0.20260525.0

func ReplCompleteDo(env ReplCompleteEnv, line []rune, pos int) ([][]rune, int)

func ReplCompletionDisabled added in v0.20260525.0

func ReplCompletionDisabled() bool

func SetReplImagePaste added in v0.20260520.1

func SetReplImagePaste(fn func() (string, bool))

func StdinIsTerminal added in v0.20260521.2

func StdinIsTerminal() bool

Types

type ReplCompleteEnv added in v0.20260525.0

type ReplCompleteEnv struct {
	ProjHex        string
	ProjRoot       string
	ReplShellFirst bool
	Session        func() *chatstore.Session
}

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 added in v0.20260523.0

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

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) InitMCP

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

func (*Runtime) ResolveTurnInvocations added in v0.20260523.0

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

Jump to

Keyboard shortcuts

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