system

package
v0.4.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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