utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeContextText added in v0.9.0

func ComposeContextText(context *map[string]string, contextTypes []string, logger *zap.Logger) string

func GenerateJsonSchema

func GenerateJsonSchema(value any) *jsonschema.Definition

func HideHomeDirPath added in v0.9.2

func HideHomeDirPath(runner *interp.Runner, path string) string

func NewLLMHttpClient

func NewLLMHttpClient(headers map[string]string) *http.Client

Types

type LLMModelConfig added in v0.22.2

type LLMModelConfig struct {
	ModelId           string
	Temperature       *float64
	ParallelToolCalls *bool
}

func GetLLMClient

func GetLLMClient(runner *interp.Runner, modelType LLMModelType) (*openai.Client, LLMModelConfig)

type LLMModelType

type LLMModelType string
const (
	FastModel LLMModelType = "FAST"
	SlowModel LLMModelType = "SLOW"
)

Jump to

Keyboard shortcuts

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