common

package module
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootPkg     = "github.com/invakid404/baml-rest"
	RootPkgName = "baml_rest"

	IntrospectedPkg      = RootPkg + "/introspected"
	InterfacesPkg        = RootPkg + "/bamlutils"
	SSEPkg               = InterfacesPkg + "/sse"
	BuildRequestPkg      = InterfacesPkg + "/buildrequest"
	LLMHTTPPkg           = InterfacesPkg + "/llmhttp"
	RetryPkg             = InterfacesPkg + "/retry"
	GeneratedClientPkg   = RootPkg + "/baml_client"
	GoConcurrentQueuePkg = "github.com/enriquebris/goconcurrentqueue"

	OutputPath = "adapter.go"
)

Variables

View Source
var Sources = make(map[string]embed.FS)

Functions

func Commit

func Commit(file *jen.File) error

func MakeFile

func MakeFile() *jen.File

Types

This section is empty.

Directories

Path Synopsis
Package adapterversions is the canonical inventory of pinned BAML adapter versions baml-rest supports, plus the codegen.Options each version requires.
Package adapterversions is the canonical inventory of pinned BAML adapter versions baml-rest supports, plus the codegen.Options each version requires.
Package codegen emits the per-adapter generated Go code (the streaming/call routers, ParseStream / Parse helpers, mirror struct converters, options builders, dynamic-type TypeBuilder helpers) and the framework adapter struct that satisfies bamlutils.Adapter.
Package codegen emits the per-adapter generated Go code (the streaming/call routers, ParseStream / Parse helpers, mirror struct converters, options builders, dynamic-type TypeBuilder helpers) and the framework adapter struct that satisfies bamlutils.Adapter.
bamlfuzz
Package bamlfuzz hosts the shared IR + rapid generators that back the property-style fuzz framework for the BAML-on-Go pipeline.
Package bamlfuzz hosts the shared IR + rapid generators that back the property-style fuzz framework for the BAML-on-Go pipeline.
bamlfuzz/cmd/seedcorpus command
seedcorpus generates the hand-curated oracle seed corpora under testdata/bamlfuzz/{dynamic,static}/.
seedcorpus generates the hand-curated oracle seed corpora under testdata/bamlfuzz/{dynamic,static}/.
internal/fixtures
Package fixtures declares the BAML-side type fixtures the codegen compile-matrix test feeds to ensureMirrorStruct / makePreambleWithArgs.
Package fixtures declares the BAML-side type fixtures the codegen compile-matrix test feeds to ensureMirrorStruct / makePreambleWithArgs.
internal/poolaudit
Package poolaudit is the test-only counterpart to the slice-pool helpers emitted by codegen.
Package poolaudit is the test-only counterpart to the slice-pool helpers emitted by codegen.
internal/testharness
Package testharness is the shared infrastructure backing the codegen compile matrix and the pool-lifecycle harness.
Package testharness is the shared infrastructure backing the codegen compile matrix and the pool-lifecycle harness.
Package testdriver runs the consolidated SetClientRegistry test suite against any per-adapter BamlAdapter via the Adapter interface.
Package testdriver runs the consolidated SetClientRegistry test suite against any per-adapter BamlAdapter via the Adapter interface.
Package testhelpers provides version-agnostic reflection-based snapshot helpers that read the unexported fields of BAML's ClientRegistry struct.
Package testhelpers provides version-agnostic reflection-based snapshot helpers that read the unexported fields of BAML's ClientRegistry struct.

Jump to

Keyboard shortcuts

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