options

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelOptions

type ModelOptions struct {
	StructuredOutput *latest.StructuredOutput
	// contains filtered or unexported fields
}

func (*ModelOptions) Gateway

func (c *ModelOptions) Gateway() string

type Opt

type Opt func(*ModelOptions)

func FromModelOptions added in v1.7.1

func FromModelOptions(m ModelOptions) []Opt

FromModelOptions converts a concrete ModelOptions value into a slice of Opt configuration functions. Later Opts override earlier ones when applied.

func WithGateway

func WithGateway(gateway string) Opt

func WithStructuredOutput added in v1.7.1

func WithStructuredOutput(output *latest.StructuredOutput) Opt

Jump to

Keyboard shortcuts

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