Skip to main content

Crate agent_works

Crate agent_works 

Source

Re-exports§

pub use crate::handle::AgentHandle;
pub use crate::handle::SendError;
pub use crate::prompt::DynamicToolsFragment;
pub use crate::prompt::EnvironmentFragment;
pub use crate::prompt::FragmentContext;
pub use crate::prompt::PromptFragment;
pub use crate::prompt::compose_fragments;

Modules§

approval_ledger
Approval ledger + fail-closed gate (P1) — safety-line normalization for external tools.
compression
Context compression for long agent conversations.
env_ref
${ENV:VAR} — product-layer resolution interface (P1).
guard
handle
plugin
Plugin package machinery (P2) — manifest / registry integrity / install lifecycle / loading.
prompt
Composable prompt fragments for building system prompts.
rotation_policy
Token-budget context management: window rotation instead of summarization.
script_tool
Script-tier adapter (P1) — the runtime law for global script tools (script.{name}) and the plugin script form.
tool_provider
Tool supply contract (ToolProvider) — the socket that every tool source plugs into.

Structs§

AgentBuilder

Functions§

build_memory_system_prompt
Build the memory system prompt guidance.