Versions in this module Expand all Collapse all v1 v1.14.0 Oct 19, 2026 Changes in this version + func Schema(questions map[string]Question) map[string]any + type Answer struct + Choice string + Confidence float64 + Legend map[string]string + Probabilities map[string]float64 + Probability float64 + Score float64 + Type string + func (a *Answer) UnmarshalJSON(data []byte) error + func (a Answer) MarshalJSON() ([]byte, error) + type Choice struct + Choice T + Confidence float64 + Probabilities map[T]float64 + func (Choice[T]) JSONSchema() *jsonschema.Schema + func (c Choice[T]) Margin() float64 + func (c Choice[T]) Ranked() []T + type ChoiceOption struct + Criteria string + Guidance any + Name string + type ChoiceQuestion struct + Instructions any + Options []ChoiceOption + type Config = systemone.Config + type GuidedOption interface + Guidance func() map[T]any + type GuidedRubric interface + Guidance func() map[int]any + type GuidedYesNo interface + Guidance func() (yes, no any) + type Info = systemone.Info + func ResponseInfo(resp *ai.ModelResponse) Info + type MediaSupport int + const MediaDefault + const MediaSupported + const MediaUnsupported + type ModelSpec struct + Audio MediaSupport + Images MediaSupport + Label string + Video MediaSupport + type NoCriteria struct + func (NoCriteria) Criteria() (yes, no string) + type Noul = NoulOf[NoCriteria] + type NoulOf struct + Probability float64 + func (NoulOf[C]) JSONSchema() *jsonschema.Schema + type NoulQuestion struct + Instructions any + No string + NoGuidance any + Yes string + YesGuidance any + type Option interface + Criteria func() map[T]string + type Question interface + type Rubric interface + Levels func() []string + type Score struct + Confidence float64 + Legend map[string]string + Probabilities map[string]float64 + Score float64 + func (Score[L]) JSONSchema() *jsonschema.Schema + func (s Score[L]) Label() string + func (s Score[L]) Level() int + type ScoreQuestion struct + Guidance map[int]any + Instructions any + Levels []string + type SystemOne struct + APIKey string + Audio MediaSupport + BaseURL string + HTTPClient *http.Client + Headers http.Header + Images MediaSupport + Models map[string]ModelSpec + ModelsPath string + Path string + Provider string + Route func(model string, body map[string]any) (path string, out any, err error) + Unwrap func(body []byte) ([]byte, error) + Video MediaSupport + func Ollama() *SystemOne + func OpenRouter() *SystemOne + func TypeSafe() *SystemOne + func WorkersAI(accountID string) *SystemOne + func (s *SystemOne) Init(ctx context.Context) []api.Action + func (s *SystemOne) ListActions(ctx context.Context) []api.ActionDesc + func (s *SystemOne) ModelRef(id string, config *Config) ai.ModelRef + func (s *SystemOne) Name() string + func (s *SystemOne) ResolveAction(atype api.ActionType, id string) api.Action + type YesNo interface + Criteria func() (yes, no string)