Documentation
¶
Index ¶
- Variables
- func Bar(ctx context.Context, x int64, opts ...CallOptionFunc) (types.Union2ExampleOrExample2, error)
- func Foo(ctx context.Context, x int64, opts ...CallOptionFunc) (types.Union2ExampleOrExample2, error)
- type Audio
- type CallOptionFunc
- func WithClientRegistry(clientRegistry *baml.ClientRegistry) CallOptionFunc
- func WithCollector(collector baml.Collector) CallOptionFunc
- func WithCollectors(collectors []baml.Collector) CallOptionFunc
- func WithEnv(env map[string]string) CallOptionFunc
- func WithExperimentalOnTick(onTick baml.TickCallback) CallOptionFuncdeprecated
- func WithOnTick(onTick baml.TickCallback) CallOptionFunc
- func WithTypeBuilder(tb *TypeBuilder) CallOptionFunc
- type Collector
- type Image
- type PDF
- type StreamValue
- type TypeBuilder
- type Video
Constants ¶
This section is empty.
Variables ¶
View Source
var Parse = &parse{}
View Source
var ParseStream = &parse_stream{}
View Source
var Stream = &stream{}
Functions ¶
func Bar ¶
func Bar(ctx context.Context, x int64, opts ...CallOptionFunc) (types.Union2ExampleOrExample2, error)
func Foo ¶
func Foo(ctx context.Context, x int64, opts ...CallOptionFunc) (types.Union2ExampleOrExample2, error)
Types ¶
type Audio ¶ added in v0.203.0
func NewAudioFromBase64 ¶ added in v0.203.0
type CallOptionFunc ¶
type CallOptionFunc func(*callOption)
func WithClientRegistry ¶
func WithClientRegistry(clientRegistry *baml.ClientRegistry) CallOptionFunc
Add a client registry to the specific function call.
func WithCollector ¶
func WithCollector(collector baml.Collector) CallOptionFunc
Add collector to the specific function call.
func WithCollectors ¶
func WithCollectors(collectors []baml.Collector) CallOptionFunc
Add multiple collectors to the specific function call.
func WithEnv ¶
func WithEnv(env map[string]string) CallOptionFunc
Modify environment variables for the specific function call.
func WithExperimentalOnTick
deprecated
added in
v0.202.0
func WithExperimentalOnTick(onTick baml.TickCallback) CallOptionFunc
Deprecated: Use WithOnTick instead.
func WithOnTick ¶ added in v0.206.1
func WithOnTick(onTick baml.TickCallback) CallOptionFunc
func WithTypeBuilder ¶ added in v0.204.0
func WithTypeBuilder(tb *TypeBuilder) CallOptionFunc
type Image ¶ added in v0.203.0
func NewImageFromBase64 ¶ added in v0.203.0
type PDF ¶ added in v0.203.0
func NewPDFFromBase64 ¶ added in v0.203.0
type StreamValue ¶
type StreamValue[TStream any, TFinal any] struct { IsError bool Error error IsFinal bool // contains filtered or unexported fields }
func (*StreamValue[TStream, TFinal]) Final ¶
func (s *StreamValue[TStream, TFinal]) Final() *TFinal
func (*StreamValue[TStream, TFinal]) Stream ¶
func (s *StreamValue[TStream, TFinal]) Stream() *TStream
type TypeBuilder ¶ added in v0.204.0
type TypeBuilder = type_builder.TypeBuilder
func NewTypeBuilder ¶ added in v0.204.0
func NewTypeBuilder() (*TypeBuilder, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.