tarsserver

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 67 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIAddr           = "127.0.0.1:43180"
	DefaultHeartbeatInterval = 30 * time.Minute
)

Exported defaults used by cmd/tars entry wiring. Keep this list minimal to avoid growing cmd<->server coupling.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, serveOpts ServeOptions, stdout, stderr io.Writer) error

Serve executes tars runtime directly with structured options.

Types

type ServeOptions

type ServeOptions struct {
	ConfigPath        string
	Mode              string
	WorkspaceDir      string
	LogFile           string
	Verbose           bool
	RunOnce           bool
	RunLoop           bool
	ServeAPI          bool
	APIAddr           string
	HeartbeatInterval time.Duration
	MaxHeartbeats     int
}

ServeOptions configures Serve API execution without CLI argument parsing.

type ToolCallRecord added in v0.15.0

type ToolCallRecord struct {
	ToolName   string
	ToolCallID string
	ToolArgs   string
	ToolResult string
}

ToolCallRecord holds a tool invocation for transcript persistence.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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