agent

package
v0.0.0-...-900d3d8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) (*Chain, error)

func (*Chain) Complete

func (c *Chain) Complete(ctx context.Context, messages []provider.Message, options *provider.CompleteOptions) (*provider.Completion, error)

type Option

type Option func(*Chain)

func WithCompleter

func WithCompleter(completer provider.Completer) Option

func WithEffort

func WithEffort(effort provider.ReasoningEffort) Option

func WithMessages

func WithMessages(messages ...provider.Message) Option

func WithTemperature

func WithTemperature(temperature float32) Option

func WithTools

func WithTools(tool ...tool.Provider) Option

Jump to

Keyboard shortcuts

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