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
26#[cfg(feature = "code-exec")]
27pub mod code_act;
28
29#[cfg(feature = "code-exec")]
30pub mod code_cell;
31
32pub mod approval_ledger;
33pub mod env_ref;
34pub mod guard;
35pub mod prompt;
36pub mod rotation_policy;
37pub mod script_tool;
38pub mod tool_provider;
39
40pub mod plugin;
41
42mod builder;
43pub mod handle;
44
45#[cfg(feature = "skill")]
46pub use crate::builder::SkillDetailToolFactory;
47#[cfg(feature = "memory")]
48pub use crate::builder::build_memory_system_prompt_with_config;
49pub use crate::builder::{AgentBuilder, build_memory_system_prompt};
50#[cfg(feature = "multi_agent")]
51pub use crate::builder::{
52    MultiAgentToolFactory, build_multi_agent_system_prompt, setup_multi_agent,
53};
54pub use crate::handle::{AgentHandle, SendError};
55#[cfg(feature = "memory")]
56pub use crate::memory::{
57    CLAUDE_COMPATIBLE_TEMPLATE, DEFAULT_INDEX_FILENAME, MEMORY_TYPES, MemoryConfig, MemoryDoc,
58    MemoryFrontmatter, MemoryStore, is_valid_memory_name, now_iso8601, parse_memory_file,
59    parse_memory_str, project_slug, rebuild_index, render_memory_file, validate_memory_name,
60    validate_memory_type,
61};
62pub use crate::prompt::{
63    DynamicToolsFragment, EnvironmentFragment, FragmentContext, PromptFragment, compose_fragments,
64};
65#[cfg(feature = "memory")]
66pub use crate::tools::{
67    MemoryDeleteTool, MemoryListTool, MemoryReadTool, MemoryWriteTool, create_memory_tools,
68};
69
70#[cfg(feature = "skill")]
71pub use skill::{
72    FullDetailPrompter, LazySkillPrompter, Skill, SkillParam, SkillParamType, SkillRegistry,
73    SkillSummary,
74};
75
76#[cfg(feature = "prompt_skill")]
77pub use skill::prompt_skill::PromptSkill;
78
79#[cfg(feature = "yaml_skill")]
80pub use skill::yaml_skill::YamlSkill;
81
82#[cfg(feature = "fuzzing")]
83pub mod fuzz {
84    #[cfg(feature = "mcp")]
85    pub use super::mcp::server::fuzz_exports as mcp_server;
86    #[cfg(feature = "skill")]
87    pub use super::skill::prompt_skill::fuzz_exports as prompt_skill;
88}