Skip to main content

rig_resources/
lib.rs

1//! Reusable resources for [rig-compose](https://crates.io/crates/rig-compose) agents.
2//!
3//! `rig-compose` owns the kernel traits and runtime composition surfaces.
4//! This crate owns reusable implementations: skills, tools, pattern
5//! registries, baseline stores, and optional graph resources.
6
7#![cfg_attr(
8    test,
9    allow(
10        clippy::unwrap_used,
11        clippy::expect_used,
12        clippy::indexing_slicing,
13        clippy::panic,
14        clippy::panic_in_result_fn,
15    )
16)]
17
18pub mod baseline;
19pub mod memory;
20pub mod patterns;
21pub mod skills;
22
23#[cfg(feature = "graph")]
24pub mod graph;
25
26#[cfg(feature = "security")]
27pub mod security;
28
29pub use baseline::{
30    BaselineCompareTool, BaselineError, BaselineStore, EntityBaseline, InMemoryBaselineStore,
31    OnlineStats,
32};
33pub use memory::{MemoryLookupError, MemoryLookupHit, MemoryLookupStore, MemoryLookupTool};
34pub use patterns::{
35    BehaviorPattern, BehaviorPatternSkill, BehaviorRegistry, PatternId, PatternRule,
36};
37pub use skills::{BaselineCompareSkill, MemoryPivotSkill};
38
39#[cfg(feature = "graph")]
40pub use graph::{
41    GraphEdge, GraphError, GraphExpansionConfig, GraphExpansionSkill, GraphStore, GraphTool,
42    InMemoryGraph, Subgraph,
43};