config

package
v0.0.0-...-695adab Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 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 Agent

type Agent struct {
	Url           string         `mapstructure:"url"`
	Description   string         `mapstructure:"description"`
	Model         string         `mapstructure:"model"`
	Instructions  string         `mapstructure:"instructions"`
	Servers       []string       `mapstructure:"servers"`
	IncludeTools  []string       `mapstructure:"include_tools"`
	ExcludeTools  []string       `mapstructure:"exclude_tools"`
	RequestParams *RequestParams `mapstructure:"request_params"`
}

type AgentsConfig

type AgentsConfig struct {
	Agents map[string]Agent `mapstructure:"agents"`
	MCP    MCP              `mapstructure:"mcp"`

	OpenAI     OpenAI     `mapstructure:"openai"`
	Anthropic  Anthropic  `mapstructure:"anthropic"`
	Azure      Azure      `mapstructure:"azure"`
	Generic    Generic    `mapstructure:"generic"`
	Google     Google     `mapstructure:"google"`
	DeepSeek   DeepSeek   `mapstructure:"deepseek"`
	OpenRouter OpenRouter `mapstructure:"openrouter"`
	TensorZero TensorZero `mapstructure:"tensorzero"`

	Logger Logger
}

func LoadConfig

func LoadConfig() (*AgentsConfig, error)

type Anthropic

type Anthropic struct {
	ApiKey  string `mapstructure:"api_key"`
	BaseUrl string `mapstructure:"base_url"`
}

type Azure

type Azure struct {
	UseDefaultAzureCredential bool   `mapstructure:"use_default_azure_credential"`
	ApiKey                    string `mapstructure:"api_key"`
	BaseUrl                   string `mapstructure:"base_url"`
	ApiVersion                string `mapstructure:"api_version"`
}

type DeepSeek

type DeepSeek struct {
	ApiKey  string `mapstructure:"api_key"`
	BaseUrl string `mapstructure:"base_url"`
}

type Generic

type Generic struct {
	ApiKey  string `mapstructure:"api_key"`
	BaseUrl string `mapstructure:"base_url"`
}

type Google

type Google struct {
	ApiKey  string `mapstructure:"api_key"`
	BaseUrl string `mapstructure:"base_url"`
}

type Logger

type Logger struct {
	Type  string `mapstructure:"type"`
	Level string `mapstructure:"level"`
	Path  string `mapstructure:"path"`
}

type MCP

type MCP struct {
	Servers map[string]MCPServer `mapstructure:"servers"`
}

type MCPServer

type MCPServer struct {
	Transport    mcp.Transport     `mapstructure:"transport"`
	Url          string            `mapstructure:"url"`
	Command      string            `mapstructure:"command"`
	Args         []string          `mapstructure:"args"`
	Headers      map[string]string `mapstructure:"headers"`
	Environments map[string]string `mapstructure:"env"`
}

type OpenAI

type OpenAI struct {
	ApiKey  string `mapstructure:"api_key"`
	BaseUrl string `mapstructure:"base_url"`
}

type OpenRouter

type OpenRouter struct {
	ApiKey  string `mapstructure:"api_key"`
	BaseUrl string `mapstructure:"base_url"`
}

type RequestParams

type RequestParams struct {
	UseHistory        *bool                      `mapstructure:"use_history"`
	ParallelToolCalls *bool                      `mapstructure:"parallel_tool_calls"`
	MaxIterations     *int                       `mapstructure:"max_iterations"`
	MaxTokens         *int64                     `mapstructure:"max_tokens"`
	Temperature       *float64                   `mapstructure:"temperature"`
	Reasoning         *bool                      `mapstructure:"reasoning"`
	ReasoningEffort   *providers.ReasoningEffort `mapstructure:"reasoning_effort"`
}

type TensorZero

type TensorZero struct {
	BaseUrl string `mapstructure:"base_url"`
}

Jump to

Keyboard shortcuts

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