adapter

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeViperToPrompt

func DecodeViperToPrompt(in *viper.Viper) (*core.Prompt, error)

func DecodeViperToRegistry

func DecodeViperToRegistry(in *viper.Viper, workdir string) (thinker.Registry, error)

Types

type LLM

type LLM struct {
	Profile  string
	Model    string
	MaxEpoch int
	MaxUsage chatter.Usage
}

LLM adapter for

func (LLM) Create

func (adapter LLM) Create(model string, debug bool, think bool) (chatter.Chatter, error)

Create instance of LLM for usage with iq

type Thinking

type Thinking struct {
	chatter.Chatter
}

func (*Thinking) Prompt

func (lib *Thinking) Prompt(ctx context.Context, prompt []chatter.Message, opts ...chatter.Opt) (*chatter.Reply, error)

Jump to

Keyboard shortcuts

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