rig-resources
Reusable resource primitives for rig-compose
agents: skills, tools, behavior-pattern registries, baseline stores, and
optional graph resources.
rig-compose stays the small kernel. rig-resources is where reusable
implementations live so downstream agents do not have to reimplement them.
Install
[]
= "0.1"
= "0.1"
Features
| Feature | Default | Pulls in | Enables |
|---|---|---|---|
security |
✗ | — | security::* namespace (credential, exfil, lateral, recon). |
graph |
✗ | petgraph |
GraphStore, InMemoryGraph, GraphTool, GraphExpansionSkill. |
full |
✗ | both above | Convenience umbrella enabling security + graph. |
What you get
- Baselines.
BaselineStore+InMemoryBaselineStore,EntityBaseline, and theBaselineCompareTool/BaselineCompareSkillpair for "is this value within k·σ of the rolling mean?" decisions. - Behavior patterns.
BehaviorPattern,BehaviorPatternSkill,BehaviorRegistry,PatternId,PatternRulefor declarative pattern routing on top ofrig-compose's skill surface. - Pivots.
MemoryPivotSkillfor cross-store pivots reusable across agents. - Graph (optional).
GraphStore,InMemoryGraph,GraphEdge,Subgraph,GraphTool,GraphExpansionSkill,GraphExpansionConfig,GraphError— a transport-agnostic graph resource backed bypetgraphin-process. - Security (optional). Namespaced security primitives gated behind the
securityfeature.
Rust version
The crate targets Rust 1.88 (edition 2024). MSRV bumps follow the
Rig contributing policy
and ship as a feat!: change.
License
Dual-licensed under either of:
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.