systemone

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package systemone asks a validated System One decision model whether one shell command is read-only.

Index

Constants

This section is empty.

Variables

View Source
var Models = []Model{
	{Name: "openrouter:typesafe/jev-1.13", Provider: "openrouter", ModelID: "typesafe/jev-1.13", ReadOnly: 0.9, Secrets: 0.3, Code: 0.2},
	{Name: "venice:jev-latest", Provider: "venice", ModelID: "jev-latest", ReadOnly: 0.9, Secrets: 0.3, Code: 0.2},
	{Name: "openrouter:liquid/d1", Provider: "openrouter", ModelID: "liquid/d1", ReadOnly: 0.8, Secrets: 0.3, Code: 0.2},
}

Functions

This section is empty.

Types

type Answer

type Answer struct {
	Model    string
	Effect   string
	ReadOnly float64
	Secrets  float64
	Code     float64
}

func Classify

func Classify(ctx context.Context, client *http.Client, m Model, entry provider.ProviderEntry, command string) (Answer, error)

type Error

type Error struct{ Kind ErrorKind }

func (*Error) Error

func (e *Error) Error() string

type ErrorKind

type ErrorKind string
const (
	KindCredits     ErrorKind = "credits"
	KindAuth        ErrorKind = "auth"
	KindRateLimited ErrorKind = "rate_limited"
	KindServer      ErrorKind = "server"
	KindTimeout     ErrorKind = "timeout"
	KindNetwork     ErrorKind = "network"
	KindMalformed   ErrorKind = "malformed"
)

type Model

type Model struct {
	Name     string
	Provider string
	ModelID  string
	ReadOnly float64
	Secrets  float64
	Code     float64
}

func Lookup

func Lookup(name string) (Model, bool)

func (Model) Allows

func (m Model) Allows(a Answer) bool

Jump to

Keyboard shortcuts

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