system

package
v0.6.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package system builds the environment block of a turn's system prompt: the model in use, the working directory and the date.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEnvironment

func BuildEnvironment(
	model Model, context Context, now time.Time, platform string,
) []string

Types

type API

type API struct {
	ID string `json:"id"`
}

type Context

type Context struct {
	Directory string  `json:"directory"`
	Worktree  string  `json:"worktree"`
	Project   Project `json:"project"`
}

type Model

type Model struct {
	ProviderID string `json:"providerID"`
	API        API    `json:"api"`
}

type Project

type Project struct {
	VCS string `json:"vcs"`
}

type Service

type Service struct {
	Context  Context
	Now      func() time.Time
	Platform string
}

func New

func New(context Context) *Service

func (*Service) Environment

func (service *Service) Environment(model Model) []string

Jump to

Keyboard shortcuts

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