GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — config package - github.com/majorcontext/keep/internal/gateway/config - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/majorcontext/keep

Links

  • Open Source Insights Logo Open Source Insights

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
    • func Load(path string) (*GatewayConfig, error)
  • type JudgeConfig

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"`
	Judge       *JudgeConfig         `yaml:"judge,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.

type JudgeConfig ¶ added in v0.4.0

type JudgeConfig struct {
	Provider  string `yaml:"provider"`
	APIKeyEnv string `yaml:"api_key_env"`
	BaseURL   string `yaml:"base_url,omitempty"`
}

JudgeConfig holds configuration for the LLM-as-judge provider.

Source Files ¶

View all Source files
  • config.go
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.