looprs 0.5.1

Concise coding assistant REPL — core library
Documentation
// This file was generated by BAML: do not edit it.
// Instead, edit the BAML source files.
//
// Learn more at https://docs.boundaryml.com

//! Generated BAML client module.
//!
//! This module was auto-generated by the BAML compiler.
//! Do not edit manually.

#![allow(non_snake_case, unused_imports, non_camel_case_types, dead_code)]

mod baml_source_map;
mod functions;
mod runtime;
pub mod stream_types;
pub mod type_builder;
pub mod types;

pub use runtime::FunctionOptions;
use runtime::get_runtime;
use stream_types::StreamTypes;
pub use type_builder::TypeBuilder;
use types::Types;

/// Re-export error type for convenience.
pub type Error = baml::BamlError;

/// The dynamic value type for this project.
pub type BamlValue = baml::BamlValue<Types, StreamTypes>;

/// Sync client - use `B.FunctionName.call(args)` pattern
pub use functions::async_client::B;

/// Re-export sync and async client modules
pub mod sync_client {
    pub use super::functions::sync_client::*;
}

pub mod async_client {
    pub use super::functions::async_client::*;
}

// Re-export media factory functions
pub use runtime::{
    new_audio_from_base64, new_audio_from_url, new_image_from_base64, new_image_from_url,
    new_pdf_from_base64, new_pdf_from_url, new_video_from_base64, new_video_from_url,
};

// Re-export collector factory function
pub use runtime::new_collector;

// Re-export client registry for runtime client configuration
pub use baml::ClientRegistry;

/// Initializes any necessary resources ahead of time, instead of doing it on the first call
pub fn init() {
    let _ = get_runtime();
}