utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ai

type Ai struct {
	Commands map[string]Command `yaml:"commands"`
	Provider string             `yaml:"provider"`
	OpenAI   OpenAI             `yaml:"openai"`
	VertexAI VertexAI           `yaml:"vertexai"`
}

type Command

type Command struct {
	// Name          string `yaml:"name"`
	Description   string `yaml:"description"`
	System_prompt string `yaml:"system_prompt"`
}

type Config

type Config struct {
	System System `yaml:"system"`
	Ai     Ai     `yaml:"ai"`
	Github Github `yaml:"github"`
}

Root structure of information read from config file

func NewConfig

func NewConfig(filename string) (*Config, error)

type Github

type Github struct {
	Owner string `yaml:"owner"`
	Repo  string `yaml:"repo"`
}

type OpenAI

type OpenAI struct {
	Model string `yaml:"model"`
}

type System

type System struct {
	Debug SystemDebug `yaml:"debug"`
}

type SystemDebug

type SystemDebug struct {
	Mode      bool   `yaml:"mode"`
	Log_level string `yaml:"log_level"`
}

type Test

type Test struct {
	Mode bool   `yaml:"mode"`
	Name string `yaml:"name"`
}

type VertexAI

type VertexAI struct {
	Model   string `yaml:"model"`
	Project string `yaml:"project"`
	Region  string `yaml:"region"`
}

Jump to

Keyboard shortcuts

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