config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLine

type CommandLine []string

func (*CommandLine) UnmarshalYAML

func (c *CommandLine) UnmarshalYAML(node *yaml.Node) error

type Duration

type Duration time.Duration

func (*Duration) UnmarshalYAML

func (d *Duration) UnmarshalYAML(node *yaml.Node) error

type File

type File struct {
	Model           string            `yaml:"model"`
	ModelName       string            `yaml:"model_name"`
	ModelBaseURL    string            `yaml:"model_base_url"`
	Memory          string            `yaml:"memory"`
	Semantics       string            `yaml:"semantics"`
	SemanticsFile   string            `yaml:"semantics_file"`
	Decision        string            `yaml:"decision"`
	Policy          string            `yaml:"policy"`
	PolicyFile      string            `yaml:"policy_file"`
	PolicyBundle    string            `yaml:"policy_bundle"`
	Environment     string            `yaml:"environment"`
	Telemetry       string            `yaml:"telemetry"`
	TraceExport     string            `yaml:"trace_export"`
	Execution       string            `yaml:"execution"`
	Subagents       string            `yaml:"subagents"`
	FlowFile        string            `yaml:"flow_file"`
	AgentFile       string            `yaml:"agent_file"`
	RelationsFile   string            `yaml:"relations_file"`
	Contracts       []string          `yaml:"contracts"`
	Bundle          string            `yaml:"bundle"`
	Cases           []string          `yaml:"cases"`
	ReplayRedact    string            `yaml:"replay_redact"`
	TraceFile       string            `yaml:"trace_file"`
	Timeout         time.Duration     `yaml:"timeout"`
	Auth            Sources           `yaml:"auth"`
	TokenDir        string            `yaml:"token_dir"`
	Server          string            `yaml:"server"`
	Page            string            `yaml:"page"`
	ResponseFields  []string          `yaml:"response_fields"`
	ResponseLimit   int               `yaml:"response_limit"`
	Caller          string            `yaml:"caller"`
	Callers         map[string]string `yaml:"callers"`
	Confirmation    *bool             `yaml:"confirmation"`
	ApprovalTTL     time.Duration     `yaml:"approval_ttl"`
	ApprovalWebhook Webhook           `yaml:"approval_webhook"`
	Permissions     []string          `yaml:"permissions"`
	MemoryFile      string            `yaml:"memory_file"`
}

func Defaults

func Defaults() File

func Load

func Load(path string) (File, error)

Relative paths are resolved from the config file.

func (*File) Confirms

func (f *File) Confirms() bool

Confirms reports whether this deployment keeps the confirmation gate. Unset means it does.

func (*File) Redact

func (f *File) Redact() bool

An unset key redacts.

type Source

type Source struct {
	Source                 string      `yaml:"source"`
	Env                    string      `yaml:"env"`
	ClientID               string      `yaml:"client_id"`
	ClientSecretEnv        string      `yaml:"client_secret_env"`
	AuthorizationURL       string      `yaml:"authorization_url"`
	TokenURL               string      `yaml:"token_url"`
	Issuer                 string      `yaml:"issuer"`
	DeviceAuthorizationURL string      `yaml:"device_authorization_url"`
	RedirectURL            string      `yaml:"redirect_url"`
	Scopes                 []string    `yaml:"scopes"`
	Audience               string      `yaml:"audience"`
	Header                 string      `yaml:"header"`
	Command                CommandLine `yaml:"command"`
	Timeout                Duration    `yaml:"timeout"`
	AuthToken              string      `yaml:"auth_token"`
	UserToken              string      `yaml:"user_token"`
	UserHeader             string      `yaml:"user_header"`
	Subject                string      `yaml:"subject"`
	SubjectTokenType       string      `yaml:"subject_token_type"`
}

func (Source) Kind

func (s Source) Kind() string

func (*Source) UnmarshalYAML

func (s *Source) UnmarshalYAML(node *yaml.Node) error

type Sources

type Sources map[string]Source

Sources maps an OpenAPI security scheme name to where its credential comes from. A string value is the environment variable for source env.

type Webhook

type Webhook struct {
	URL     string
	Command []string
}

Webhook is a command or an HTTP URL. It is called when a call is pending.

func (*Webhook) UnmarshalYAML

func (w *Webhook) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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