chat

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildChatSystemPrompt added in v0.21.0

func BuildChatSystemPrompt(registry *diagnose.ToolRegistry, snapshot, language string, allowShell bool) string

BuildChatSystemPrompt constructs the system prompt for chat sessions.

func CollectSnapshot added in v0.13.0

func CollectSnapshot(registry *diagnose.ToolRegistry) string

CollectSnapshot runs baseline diagnostic tools concurrently and returns a compact text summary. Failures are silently skipped.

func ExecShell added in v0.21.0

func ExecShell(ctx context.Context, command string, timeout time.Duration) (string, error)

ExecShell executes a shell command via /bin/sh -c and returns the output. Approval must be handled by the caller before invoking this function.

func Run

func Run(verbose bool, modelPin string) error

Run starts the interactive chat REPL. If modelPin is non-empty, only that model is used (no failover).

Types

This section is empty.

Jump to

Keyboard shortcuts

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