Documentation
¶
Index ¶
- func NewMultilineStdin(inner stdinReadCloser) io.ReadCloser
- func NewREPLReadline(defaultPrompt string) (*readline.Instance, func(string) (string, error), error)
- func PlatformStdin() stdinReadCloser
- func ReadlinePrompt(rl *readline.Instance, prompt string) (string, error)
- func SetReplImagePaste(fn func() (string, bool))
- func StdinIsTerminal() bool
- type Runtime
- func (r *Runtime) ApplyCurrentModel(providerName, modelID string) error
- func (r *Runtime) ApplyGotoCheckpoint(id *checkpoint.FullCheckpointID) error
- func (r *Runtime) AugmentNestedCustomSystem(system string) (string, error)
- func (r *Runtime) Close() error
- func (r *Runtime) InitMCP(ctx context.Context)
- func (r *Runtime) ResolveTurnInvocations(turn llm.AssistantTurnResult, legacySW *tooling.LegacyStreamWriter) (invs []tooling.Invocation, toolIDs []string, rejectNative bool, ...)
- func (r *Runtime) Run(ctx context.Context) error
- func (r *Runtime) RunPromptOnce(ctx context.Context, line string) error
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 PlatformStdin ¶
func PlatformStdin() stdinReadCloser
func ReadlinePrompt ¶ added in v0.20260521.2
func SetReplImagePaste ¶ added in v0.20260520.1
func StdinIsTerminal ¶ added in v0.20260521.2
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 (*Runtime) ApplyCurrentModel ¶
func (*Runtime) ApplyGotoCheckpoint ¶
func (r *Runtime) ApplyGotoCheckpoint(id *checkpoint.FullCheckpointID) error
func (*Runtime) AugmentNestedCustomSystem ¶ added in v0.20260523.0
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)
Click to show internal directories.
Click to hide internal directories.