Documentation
¶
Index ¶
- Variables
- func ClassifyFanOut(ctx context.Context, extracted_outputs string, agent_message string, ...) (types.FanOutSignal, error)
- func ClassifyFollowUp(ctx context.Context, message string, user_message *string, now_rfc3339 string, ...) (types.FollowUpSignal, error)
- func ClassifyTurn(ctx context.Context, message string, opts ...CallOptionFunc) (types.TurnClassification, error)
- func ExtractApprovalOutput(ctx context.Context, assistant_text string, opts ...CallOptionFunc) ([]types.ExtractedOutput, error)
- func ExtractApprovalSummary(ctx context.Context, assistant_text string, opts ...CallOptionFunc) (types.ApprovalSummary, error)
- func ExtractFinalResponseOutput(ctx context.Context, user_message *string, assistant_message string, ...) ([]types.ExtractedOutput, error)
- func ExtractOutputs(ctx context.Context, tool_name string, tool_input string, tool_result string, ...) ([]types.ExtractedOutput, error)
- type Audio
- type CallOptionFunc
- func WithClient(client string) 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 WithTags(tags map[string]string) 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 Request = &build_request{}
View Source
var Stream = &stream{}
View Source
var StreamRequest = &build_request_stream{}
Functions ¶
func ClassifyFanOut ¶ added in v0.1.110
func ClassifyFanOut(ctx context.Context, extracted_outputs string, agent_message string, user_prompt string, current_time string, opts ...CallOptionFunc) (types.FanOutSignal, error)
func ClassifyFollowUp ¶
func ClassifyTurn ¶
func ClassifyTurn(ctx context.Context, message string, opts ...CallOptionFunc) (types.TurnClassification, error)
func ExtractApprovalOutput ¶ added in v0.1.110
func ExtractApprovalOutput(ctx context.Context, assistant_text string, opts ...CallOptionFunc) ([]types.ExtractedOutput, error)
func ExtractApprovalSummary ¶ added in v0.1.100
func ExtractApprovalSummary(ctx context.Context, assistant_text string, opts ...CallOptionFunc) (types.ApprovalSummary, error)
func ExtractFinalResponseOutput ¶ added in v0.1.103
func ExtractFinalResponseOutput(ctx context.Context, user_message *string, assistant_message string, opts ...CallOptionFunc) ([]types.ExtractedOutput, error)
func ExtractOutputs ¶
func ExtractOutputs(ctx context.Context, tool_name string, tool_input string, tool_result string, opts ...CallOptionFunc) ([]types.ExtractedOutput, error)
Types ¶
type CallOptionFunc ¶
type CallOptionFunc func(*callOption)
func WithClient ¶
func WithClient(client string) CallOptionFunc
Set the client for the specific function call (shorthand for ClientRegistry with primary). If both WithClient and WithClientRegistry are used, WithClient takes precedence.
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
func WithExperimentalOnTick(onTick baml.TickCallback) CallOptionFunc
Deprecated: Use WithOnTick instead.
func WithOnTick ¶
func WithOnTick(onTick baml.TickCallback) CallOptionFunc
func WithTags ¶
func WithTags(tags map[string]string) CallOptionFunc
Add tags to the specific function call.
func WithTypeBuilder ¶
func WithTypeBuilder(tb *TypeBuilder) CallOptionFunc
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 ¶
type TypeBuilder = type_builder.TypeBuilder
func NewTypeBuilder ¶
func NewTypeBuilder() (*TypeBuilder, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.