baml 0.220.0

BAML runtime for Rust - type-safe LLM function calls
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! FFI bindings - re-exported from baml-sys.
//!
//! The actual FFI functions are loaded dynamically by baml-sys.
//! This module provides the type definitions and re-exports.

// Re-export types from baml-sys
// Re-export library management functions
// Re-export the raw FFI functions
// These return Result to handle library loading errors
pub(crate) use baml_sys::{
    build_request_from_c, call_function_from_c, call_function_parse_from_c,
    call_function_stream_from_c, call_object_constructor, call_object_method, cancel_function_call,
    create_baml_runtime, destroy_baml_runtime, free_buffer, invoke_runtime_cli, register_callbacks,
    version,
};