Expand description
Core traits, types, and utilities for AgentZero.
Defines the fundamental abstractions: Tool, Provider, Agent,
MemoryStore, and all message/result types. Also contains shared
utilities for URL policy enforcement, security, delegation, and routing.
Re-exports§
pub use agent::Agent;pub use agent::ToolSource;pub use canvas::Canvas;pub use canvas::CanvasFrame;pub use canvas::CanvasStore;pub use canvas::CanvasSummary;pub use event_bus::Event;pub use event_bus::EventBus;pub use event_bus::EventSubscriber;pub use event_bus::FileBackedBus;pub use event_bus::InMemoryBus;pub use loop_detection::LoopDetectionConfig;pub use loop_detection::ToolLoopDetector;pub use metrics::HistogramSnapshot;pub use metrics::RuntimeMetrics;pub use metrics::RuntimeMetricsSnapshot;pub use types::AgentConfig;pub use types::AgentEndpoint;pub use types::AgentError;pub use types::AnnounceMessage;pub use types::AssistantMessage;pub use types::AuditEvent;pub use types::AuditSink;pub use types::ChannelEndpoint;pub use types::ChatResult;pub use types::ContentPart;pub use types::ConversationMessage;pub use types::DepthPolicy;pub use types::DepthRule;pub use types::EphemeralMemory;pub use types::HookEvent;pub use types::HookFailureMode;pub use types::HookPolicy;pub use types::HookRiskTier;pub use types::HookSink;pub use types::JobStatus;pub use types::Lane;pub use types::LoopAction;pub use types::MemoryEntry;pub use types::MemoryStore;pub use types::MergeStrategy;pub use types::MetricsSink;pub use types::Provider;pub use types::QueueMode;pub use types::ReasoningConfig;pub use types::ResearchPolicy;pub use types::ResearchTrigger;pub use types::RunId;pub use types::StopReason;pub use types::StreamChunk;pub use types::StreamSink;pub use types::StreamToolCallAccumulator;pub use types::SummarizationConfig;pub use types::Tool;pub use types::ToolCallDelta;pub use types::ToolContext;pub use types::ToolDefinition;pub use types::ToolResult;pub use types::ToolResultMessage;pub use types::ToolSelectionMode;pub use types::ToolSelector;pub use types::ToolSummary;pub use types::ToolUseRequest;pub use types::UserMessage;pub use validation::validate_json;pub use tracing;
Modules§
- a2a_
types - Google Agent-to-Agent (A2A) protocol types.
- agent
- agent_
store - Trait and types for persistent agent management.
- canvas
- Canvas store for real-time rich content delivery.
- common
- delegation
- embedding
- Embedding provider trait and cosine similarity for semantic memory recall.
- event_
bus - Event bus for inter-agent communication.
- loop_
detection - Tool-loop detection with tiered escalation.
- metrics
- regression
- Regression detection for multi-agent file modification conflicts.
- regression_
bus - Event bus integration for regression detection.
- routing
- security
- types
- validation
- Lightweight JSON Schema validator for tool input schemas.