troupekit-kit 0.3.2

Ergonomic API for the Troupekit LLM agent framework: one builder or one macro per agent, tool and graph.
Documentation
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/logo-mark.svg",
    html_favicon_url = "https://raw.githubusercontent.com/ChaoticQubit/troupekit/main/assets/brand/favicon.svg"
)]

mod agent;
mod built;
mod error;
mod graph;
#[cfg(feature = "knowledge")]
pub mod knowledge;
mod laws;
#[cfg(feature = "knowledge")]
mod memory;
mod model;
mod output;
mod route;
mod storage;
mod tool;
mod trace;

#[doc(hidden)]
pub mod __private;

pub use agent::Agent;
pub use built::{BuiltAgent, Input, RunOutcome};
pub use error::KitError;
pub use graph::{BuiltGraph, Graph, GraphReport};
#[cfg(feature = "knowledge")]
pub use knowledge::Knowledge;
pub use laws::Laws;
#[cfg(feature = "knowledge")]
pub use memory::AgentMemory;
pub use output::{IntoToolOutput, Json};
pub use storage::Storage;
pub use tool::{tool, AsTool};
pub use troupekit_macros::{agent, tool};
pub use troupekit_tools::{Tool, ToolContext, ToolOutput};

/// The names most programs need, for `use troupekit::prelude::*;`.
/// Builder, built agent, outcome, storage, laws, errors and tools.
/// `AsTool`, `IntoToolOutput` and `Input` stay at the crate root.
pub mod prelude {
    pub use crate::{
        agent, tool, Agent, BuiltAgent, BuiltGraph, Graph, Json, KitError, Laws, RunOutcome,
        Storage,
    };
    #[cfg(feature = "knowledge")]
    pub use crate::{AgentMemory, Knowledge};
    pub use troupekit_trace::Trace;
}

#[cfg(feature = "local")]
mod local;
#[cfg(feature = "local")]
pub use local::LocalChoice;