config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config loads configuration derived from local gcloud defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config contains runtime configuration derived from the environment.

func New

func New(version string, enableDeleteTools bool) *Config

New constructs a Config populated from gcloud and build version.

func NewTestConfig added in v0.12.0

func NewTestConfig(project, location, provider, model string) *Config

NewTestConfig constructs a mock configuration for testing purposes.

func (*Config) AgentModel added in v0.12.0

func (c *Config) AgentModel() string

AgentModel returns the configured LLM model for the agent.

func (*Config) AgentProvider added in v0.12.0

func (c *Config) AgentProvider() string

AgentProvider returns the configured LLM provider for the agent.

func (*Config) DefaultLocation added in v0.0.3

func (c *Config) DefaultLocation() string

DefaultLocation returns the default GCP region or zone, if set.

func (*Config) DefaultProjectID

func (c *Config) DefaultProjectID() string

DefaultProjectID returns the default GCP project ID, if set.

func (*Config) EnableDeleteTools added in v0.12.0

func (c *Config) EnableDeleteTools() bool

EnableDeleteTools returns true if destructive delete tools are enabled.

func (*Config) UserAgent

func (c *Config) UserAgent() string

UserAgent returns the user agent string for outbound API calls.

Jump to

Keyboard shortcuts

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