Documentation
¶
Index ¶
- Variables
- func NewREPLReadline(defaultPrompt string) (*readline.Instance, func(string) (string, error), error)
- func ReadlinePrompt(rl *readline.Instance, prompt string) (string, error)
- func ResetSwitchModeCountdownForTest()
- func SetSwitchModeCountdownForTest(d time.Duration, width int)
- func StdinIsTerminal() bool
- func SwitchModeCountdownForTest(r *Runtime, ctx context.Context, target string) (cancelled bool, err error)
- 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) CursorNativeToolsEnabled() bool
- func (r *Runtime) InitMCP(ctx context.Context)
- func (r *Runtime) PrintCursorNativeToolEvent(rawJSON string)
- func (r *Runtime) ReplCompleteCfg() *config.Root
- func (r *Runtime) ReplCompleteProjHex() string
- func (r *Runtime) ReplCompleteProjRoot() string
- func (r *Runtime) ReplCompleteShellFirst() bool
- func (r *Runtime) ReplCompleteSnapshotSession() *chatstore.Session
- 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 ¶
View Source
var ErrRestartSolomon = errors.New("restart solomon")
Functions ¶
func NewREPLReadline ¶
func ResetSwitchModeCountdownForTest ¶ added in v2026.610.0
func ResetSwitchModeCountdownForTest()
func SetSwitchModeCountdownForTest ¶ added in v2026.610.0
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 (*Runtime) ApplyCurrentModel ¶
func (*Runtime) ApplyGotoCheckpoint ¶
func (r *Runtime) ApplyGotoCheckpoint(id *checkpoint.FullCheckpointID) error
func (*Runtime) AugmentNestedCustomSystem ¶
func (*Runtime) CursorNativeToolsEnabled ¶ added in v2026.606.0
func (*Runtime) PrintCursorNativeToolEvent ¶ added in v2026.606.0
func (*Runtime) ReplCompleteCfg ¶ added in v2026.608.0
func (*Runtime) ReplCompleteProjHex ¶ added in v2026.602.2
func (*Runtime) ReplCompleteProjRoot ¶ added in v2026.602.2
func (*Runtime) ReplCompleteShellFirst ¶ added in v2026.602.2
func (*Runtime) ReplCompleteSnapshotSession ¶ added in v2026.602.2
func (*Runtime) ResolveTurnInvocations ¶
func (r *Runtime) ResolveTurnInvocations(turn llm.AssistantTurnResult, legacySW *tooling.LegacyStreamWriter) (invs []tooling.Invocation, toolIDs []string, rejectNative bool, malformed error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.