companion

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(root string, profile Profile) error

func SystemPrompt

func SystemPrompt(profile Profile) string

Types

type Profile

type Profile struct {
	Enabled      bool      `json:"enabled"`
	Name         string    `json:"name"`
	Style        string    `json:"style,omitempty"`
	Traits       []string  `json:"traits,omitempty"`
	Instructions string    `json:"instructions,omitempty"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

func DefaultProfile

func DefaultProfile() Profile

func Load

func Load(root string) (Profile, error)

func Normalize

func Normalize(profile Profile) Profile

Jump to

Keyboard shortcuts

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