sampling

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatchingModel = fmt.Errorf("no matching model found")

Functions

func CompletionResponseToCallResult added in v0.0.79

func CompletionResponseToCallResult(resp *types.CompletionResponse, includeMessages bool, externalTools []mcp.Tool) (*types.CallResult, error)

Types

type Sampler

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

func NewSampler

func NewSampler(completer types.Completer) *Sampler

func (*Sampler) Sample

type SamplerOptions

type SamplerOptions struct {
	ProgressToken      any
	Continue           bool
	Chat               *bool
	NewThread          *bool
	ToolChoice         *mcp.ToolChoice
	Tools              []mcp.Tool
	ToolIncludeContext string
	ToolSource         string
}

func (SamplerOptions) Merge added in v0.0.79

func (s SamplerOptions) Merge(other SamplerOptions) (result SamplerOptions)

Jump to

Keyboard shortcuts

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