Documentation
¶
Index ¶
- type DecomposeConfig
- func (d DecomposeConfig) RequestSummaryEnabled() bool
- func (d DecomposeConfig) ResponseSummaryEnabled() bool
- func (d DecomposeConfig) TextEnabled() bool
- func (d DecomposeConfig) ToLLM() llm.DecomposeConfig
- func (d DecomposeConfig) ToolResultEnabled() bool
- func (d DecomposeConfig) ToolUseEnabled() bool
- type GatewayConfig
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
func (d DecomposeConfig) ToLLM() llm.DecomposeConfig
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.