Skip to main content

agent_works/
lib.rs

1#![allow(rustdoc::broken_intra_doc_links, rustdoc::private_intra_doc_links)]
2#[cfg(feature = "mcp")]
3pub mod mcp;
4
5#[cfg(feature = "skill")]
6pub mod skill;
7
8#[cfg(feature = "memory")]
9pub mod memory;
10
11#[cfg(feature = "memory")]
12pub mod tools;
13
14#[cfg(feature = "cli")]
15pub mod cli;
16
17#[cfg(feature = "focus")]
18pub mod focus;
19
20#[cfg(feature = "multi_agent")]
21pub mod multi_agent;
22
23#[cfg(feature = "compression")]
24pub mod compression;
25
26pub mod approval_ledger;
27pub mod env_ref;
28pub mod guard;
29pub mod prompt;
30pub mod rotation_policy;
31pub mod script_tool;
32pub mod tool_provider;
33
34pub mod plugin;
35
36mod builder;
37pub mod handle;
38
39#[cfg(feature = "skill")]
40pub use crate::builder::SkillDetailToolFactory;
41#[cfg(feature = "memory")]
42pub use crate::builder::build_memory_system_prompt_with_config;
43pub use crate::builder::{AgentBuilder, build_memory_system_prompt};
44#[cfg(feature = "multi_agent")]
45pub use crate::builder::{
46    MultiAgentToolFactory, build_multi_agent_system_prompt, setup_multi_agent,
47};
48pub use crate::handle::{AgentHandle, SendError};
49#[cfg(feature = "memory")]
50pub use crate::memory::{
51    CLAUDE_COMPATIBLE_TEMPLATE, DEFAULT_INDEX_FILENAME, MEMORY_TYPES, MemoryConfig, MemoryDoc,
52    MemoryFrontmatter, MemoryStore, is_valid_memory_name, now_iso8601, parse_memory_file,
53    parse_memory_str, project_slug, rebuild_index, render_memory_file, validate_memory_name,
54    validate_memory_type,
55};
56pub use crate::prompt::{
57    DynamicToolsFragment, EnvironmentFragment, FragmentContext, PromptFragment, compose_fragments,
58};
59#[cfg(feature = "memory")]
60pub use crate::tools::{
61    MemoryDeleteTool, MemoryListTool, MemoryReadTool, MemoryWriteTool, create_memory_tools,
62};
63
64#[cfg(feature = "skill")]
65pub use skill::{
66    FullDetailPrompter, LazySkillPrompter, Skill, SkillParam, SkillParamType, SkillRegistry,
67    SkillSummary,
68};
69
70#[cfg(feature = "prompt_skill")]
71pub use skill::prompt_skill::PromptSkill;
72
73#[cfg(feature = "yaml_skill")]
74pub use skill::yaml_skill::YamlSkill;
75
76#[cfg(feature = "fuzzing")]
77pub mod fuzz {
78    #[cfg(feature = "mcp")]
79    pub use super::mcp::server::fuzz_exports as mcp_server;
80    #[cfg(feature = "skill")]
81    pub use super::skill::prompt_skill::fuzz_exports as prompt_skill;
82}