baml

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BamlRuntime added in v0.0.5

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

func CreateRuntime added in v0.0.4

func CreateRuntime(
	root_path string,
	src_files map[string]string,
	env_vars map[string]string,
) (BamlRuntime, error)

func (*BamlRuntime) CallFunction added in v0.0.5

func (r *BamlRuntime) CallFunction(ctx context.Context, functionName string, arg_names []string, args ...any) (*ResultCallback, error)

func (*BamlRuntime) CallFunctionStream added in v0.0.5

func (r *BamlRuntime) CallFunctionStream(ctx context.Context, functionName string, arg_names []string, args ...any) (<-chan ResultCallback, error)

type CallbackData added in v0.0.4

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

type ResultCallback added in v0.0.4

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

func (*ResultCallback) Raw added in v0.0.6

func (r *ResultCallback) Raw() string

type StreamResult added in v0.0.4

type StreamResult[Partial any, Final any] struct {
	// contains filtered or unexported fields
}

func (*StreamResult[Partial, Final]) Error added in v0.0.4

func (result *StreamResult[Partial, Final]) Error() error

func (*StreamResult[Partial, Final]) Final added in v0.0.4

func (result *StreamResult[Partial, Final]) Final() Final

func (*StreamResult[Partial, Final]) IsFinal added in v0.0.4

func (result *StreamResult[Partial, Final]) IsFinal() bool

func (*StreamResult[Partial, Final]) IsPartial added in v0.0.4

func (result *StreamResult[Partial, Final]) IsPartial() bool

func (*StreamResult[Partial, Final]) Partial added in v0.0.4

func (result *StreamResult[Partial, Final]) Partial() Partial

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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