providers

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMaxIterations

func WithMaxIterations(iterations int) func(*RequestParams)

func WithMaxTokens

func WithMaxTokens(tokens int64) func(*RequestParams)

func WithParallelToolCalls

func WithParallelToolCalls(enable bool) func(*RequestParams)

func WithReasoning

func WithReasoning(reasoning bool) func(*RequestParams)

func WithReasoningEffort

func WithReasoningEffort(reasoning ReasoningEffort) func(*RequestParams)

func WithTemperature

func WithTemperature(temperature float64) func(*RequestParams)

func WithUseHistory

func WithUseHistory(enable bool) func(*RequestParams)

Types

type LLM

type LLM interface {
	// TODO Request params need more tuning
	Initialize() error
	GetModel(name string) (any, error)
	ListModels() (any, error)
	AttachTools(mcpServers map[string]*mcp.MCPServer, includeTools, excludeTools []string) error
	Generate(message string) ([]mcp_tool.Content, error)
	Structured(message string, reponseStruct any) ([]mcp_tool.Content, error)
}

type ReasoningEffort

type ReasoningEffort string
const (
	REASONING_EFFORT_HIGH   ReasoningEffort = "high"
	REASONING_EFFORT_MEDIUM ReasoningEffort = "medium"
	REASONING_EFFORT_LOW    ReasoningEffort = "low"
)

type RequestParams

type RequestParams struct {
	UseHistory        bool
	ParallelToolCalls bool
	MaxIterations     int
	MaxTokens         int64
	Temperature       float64
	Reasoning         bool
	ReasoningEffort   ReasoningEffort
}

TODO Add consturctor with options pattern

func NewRequestParams

func NewRequestParams(options ...func(*RequestParams)) *RequestParams

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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