Documentation
¶
Index ¶
- Variables
- func TestAllNull(ctx context.Context, input string, opts ...CallOptionFunc) (types.NullableTypes, error)
- func TestAllOptionalOmitted(ctx context.Context, input string, opts ...CallOptionFunc) (types.OptionalFields, error)
- func TestMixedOptionalNullable(ctx context.Context, input string, opts ...CallOptionFunc) (types.MixedOptionalNullable, error)
- func TestNullableTypes(ctx context.Context, input string, opts ...CallOptionFunc) (types.NullableTypes, error)
- func TestOptionalFields(ctx context.Context, input string, opts ...CallOptionFunc) (types.OptionalFields, error)
- type CallOptionFunc
- type StreamValue
Constants ¶
This section is empty.
Variables ¶
View Source
var Stream = &stream{}
Functions ¶
func TestAllNull ¶
func TestAllNull(ctx context.Context, input string, opts ...CallOptionFunc) (types.NullableTypes, error)
func TestAllOptionalOmitted ¶
func TestAllOptionalOmitted(ctx context.Context, input string, opts ...CallOptionFunc) (types.OptionalFields, error)
func TestMixedOptionalNullable ¶
func TestMixedOptionalNullable(ctx context.Context, input string, opts ...CallOptionFunc) (types.MixedOptionalNullable, error)
func TestNullableTypes ¶
func TestNullableTypes(ctx context.Context, input string, opts ...CallOptionFunc) (types.NullableTypes, error)
func TestOptionalFields ¶
func TestOptionalFields(ctx context.Context, input string, opts ...CallOptionFunc) (types.OptionalFields, error)
Types ¶
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.
type StreamValue ¶
type StreamValue[TStream any, TFinal any] struct { 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.