Expand description
agentwerk: minimal Rust crate for building agentic workflows.
Re-exports§
pub use agents::Agent;pub use agents::Ticket;pub use agents::TicketSystem;pub use agents::Knowledge;pub use agents::Policies;pub use agents::Stats;pub use event::Event;
Modules§
- agents
- Agent implementations.
- event
- Structured events the loop emits so callers can observe a run without wrapping the loop itself.
- prompts
- Default context block, and the
Section/PromptBuilderthat composes the role prompt and (caller-supplied) directives. - providers
- The
Providertrait and the vendor-specific implementations that speak to Anthropic, OpenAI-compatible APIs, Mistral, and LiteLLM. - schemas
- Hand-rolled minimal JSON Schema validator. Covers the subset of
keywords agents actually use to constrain structured content:
type,required,properties,additionalProperties(bool only),items,enum,const,minimum,maximum,minLength,maxLength,minItems,maxItems. - tools
- Tool system: the
ToolLiketrait, the ad-hocToolstruct, and the registry the loop consults before each provider call.