Expand description
Crabtalk agent library.
Agent: Immutable agent definition with step/run/run_stream.AgentBuilder: Fluent construction with a model provider.AgentConfig: Serializable agent parameters.Session: Lightweight conversation history container.ToolRegistry: Schema-only tool store. No handlers or closures.ToolSender/ToolRequest: Agent-side tool dispatch primitives.Hook: Lifecycle backend for agent building, events, and tool registration.Runtime: Agent registry, session store, and hook orchestration.model: Unified LLM interface types and traits.- Agent event types:
AgentEvent,AgentStep,AgentResponse,AgentStopReason.
Re-exports§
pub use agent::Agent;pub use agent::AgentBuilder;pub use agent::AgentConfig;pub use agent::config::HeartbeatConfig;pub use agent::event::AgentEvent;pub use agent::event::AgentResponse;pub use agent::event::AgentStep;pub use agent::event::AgentStopReason;pub use agent::tool::ToolRegistry;pub use agent::tool::ToolRequest;pub use agent::tool::ToolSender;pub use config::ManifestConfig;pub use config::McpServerConfig;pub use config::PackageMeta;pub use config::ResolvedManifest;pub use config::Setup;pub use config::check_skill_conflicts;pub use config::load_agents_dir;pub use config::load_agents_dirs;pub use config::repo_slug;pub use config::resolve_manifests;pub use config::scan_skill_names;
Modules§
- agent
- Immutable agent definition and execution methods.
- config
- Shared configuration types used across crates.
- model
- Unified LLM interface types and traits.
- paths
- Global paths for the crabtalk runtime.
- protocol
- Crabtalk wire protocol — message types, API traits, and wire codec.
- utils
- Shared utilities for markdown-based configuration parsing.
Structs§
- Provider
Def - Configuration for a single LLM provider.
- Runtime
- The crabtalk runtime — agent registry, session store, and hook orchestration.
- Session
- A conversation session tied to a specific agent.
Enums§
- ApiStandard
- Which provider implementation to use.
Traits§
- Hook
- Lifecycle backend for agent building, event observation, and tool registration.
Functions§
- find_
latest_ session - Find the latest session file for an (agent, created_by) identity.
- sender_
slug - Sanitize a string into a filesystem-safe slug.