openfunctions-rs 0.1.0

A universal framework for creating and managing LLM tools and agents
Documentation
//! # OpenFunctions
//!
//! A universal framework for creating and managing LLM tools and agents.
//!
//! This library provides the core functionality for defining, loading, and
//! managing tools and agents that can be used with Large Language Models.

#![warn(missing_docs)]
#![warn(rustdoc::missing_crate_level_docs)]

pub mod core;
pub mod models;
pub mod parser;
pub mod runtime;

#[cfg(feature = "cli")]
pub mod cli;

/// A convenient result type alias.
pub type Result<T> = anyhow::Result<T>;

/// A prelude for commonly used types.
pub mod prelude {
    pub use crate::{
        core::{Agent, Builder, Checker, Config, FunctionDeclaration, Registry, TestRunner, Tool},
        models::{AgentDefinition, ExecutionResult, ToolDefinition},
        runtime::Runtime,
    };
}