types

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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 AgentOptions

type AgentOptions struct {
	Iterations     int  `yaml:"iterations"`
	MaxAttempts    int  `yaml:"max_attempts"`
	MaxRetries     int  `yaml:"max_retries"`
	ForceReasoning bool `yaml:"force_reasoning"`
}

AgentOptions holds configuration for the cogito ExecuteTools function

type Config

type Config struct {
	Model        string               `yaml:"model"`
	APIKey       string               `yaml:"api_key"`
	BaseURL      string               `yaml:"base_url"`
	LogLevel     string               `yaml:"log_level"`
	Prompt       string               `yaml:"prompt"`
	MCPServers   map[string]MCPServer `yaml:"mcp_servers"`
	AgentOptions AgentOptions         `yaml:"agent_options"`
	ReviewerLLM  *ReviewerLLMConfig   `yaml:"reviewer_llm"`
}

Config holds configuration for creating a new session

func (*Config) GetPrompt

func (c *Config) GetPrompt() string

type MCPServer

type MCPServer struct {
	Command string            `yaml:"command"`
	Args    []string          `yaml:"args"`
	Env     map[string]string `yaml:"env"`
}

type ReviewerLLMConfig added in v0.0.6

type ReviewerLLMConfig struct {
	Model   string `yaml:"model"`
	APIKey  string `yaml:"api_key"`
	BaseURL string `yaml:"base_url"`
	Enabled *bool  `yaml:"enabled"` // If nil, defaults to true when reviewer_llm is configured
}

ReviewerLLMConfig holds configuration for the reviewer LLM (used in plan mode)

Jump to

Keyboard shortcuts

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