config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecomposeConfig

type DecomposeConfig struct {
	ToolResult      *bool `yaml:"tool_result,omitempty"`
	ToolUse         *bool `yaml:"tool_use,omitempty"`
	Text            *bool `yaml:"text,omitempty"`
	RequestSummary  *bool `yaml:"request_summary,omitempty"`
	ResponseSummary *bool `yaml:"response_summary,omitempty"`
}

DecomposeConfig controls which message parts are decomposed into separate spans.

func (DecomposeConfig) RequestSummaryEnabled

func (d DecomposeConfig) RequestSummaryEnabled() bool

RequestSummaryEnabled returns whether request_summary decomposition is enabled (default: true).

func (DecomposeConfig) ResponseSummaryEnabled

func (d DecomposeConfig) ResponseSummaryEnabled() bool

ResponseSummaryEnabled returns whether response_summary decomposition is enabled (default: true).

func (DecomposeConfig) TextEnabled

func (d DecomposeConfig) TextEnabled() bool

TextEnabled returns whether text decomposition is enabled (default: false).

func (DecomposeConfig) ToLLM added in v0.2.3

ToLLM converts a gateway DecomposeConfig to the public llm.DecomposeConfig.

func (DecomposeConfig) ToolResultEnabled

func (d DecomposeConfig) ToolResultEnabled() bool

ToolResultEnabled returns whether tool_result decomposition is enabled (default: true).

func (DecomposeConfig) ToolUseEnabled

func (d DecomposeConfig) ToolUseEnabled() bool

ToolUseEnabled returns whether tool_use decomposition is enabled (default: true).

type GatewayConfig

type GatewayConfig struct {
	Listen      string               `yaml:"listen"`
	RulesDir    string               `yaml:"rules_dir"`
	ProfilesDir string               `yaml:"profiles_dir,omitempty"`
	PacksDir    string               `yaml:"packs_dir,omitempty"`
	Provider    string               `yaml:"provider"`
	Upstream    string               `yaml:"upstream"`
	Scope       string               `yaml:"scope"`
	Decompose   DecomposeConfig      `yaml:"decompose,omitempty"`
	Log         keepconfig.LogConfig `yaml:"log,omitempty"`
}

GatewayConfig holds the top-level gateway configuration.

func Load

func Load(path string) (*GatewayConfig, error)

Load reads and validates a gateway config from a YAML file.

Jump to

Keyboard shortcuts

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