Crate zeroclaw_api
Expand description
ZeroClaw API layer — trait definitions and shared types.
Modules§
- a2a_
wire - Shared A2A v1.0 wire types for both inbound and outbound.
- agent
- attribution
- channel
- elicitation
- ACP elicitation primitives.
- grants
- Resolved authorization grants — the single runtime authorization vocabulary (RFC 7141).
- hook
- ingress
- Universal ingress policy contract types (RFC phase 1).
- jsonrpc
- Shared JSON-RPC 2.0 types for the ACP server and runtime RPC layer.
- lifecycle
- Content-free lifecycle semantics shared by interactive and runtime surfaces.
- media
- Inbound media attachments and the three questions callers ask about them.
- memory_
traits - model_
provider - observability_
traits - peripherals_
traits - Peripheral trait — hardware boards (STM32, RPi GPIO) that expose tools.
- plan
- Shared execution-plan types for the TodoWrite tracker.
- platform
- plugin
- Shared plugin identifiers used across configuration and runtime crates.
- plugin_
egress - Dependency-free value validation shared by plugin config and host egress.
- plugin_
key - Portable names for plugin-local host services.
- principal
- The RFC 7141 identity contract: what an auth provider outputs
(
AuthenticatedIdentity) and what the shared resolver turns it into (the canonicalPrincipal). - runtime_
status - Shared runtime-status wire types.
- runtime_
traits - schema
- JSON Schema cleaning and validation for LLM tool-calling compatibility.
- session_
keys - Session key normalization shared across infra and memory backends.
- tool
- tool_
carrier - Tool-result carrier grammar: the fixed position where a tool round’s attachments live in conversation history.
- turn_
stop - Typed stop taxonomy for the agent turn path.
- vad
- Voice Activity Detection trait and event types.
- webhook
- Wasmtime-free wiring for channel-plugin webhook ingress.
Macros§
Statics§
- NATIVE_
THINKING_ OVERRIDE - Native extended thinking parameters, set by the outer orchestration
functions and read by
run_tool_call_loopwhen buildingChatRequest. - TOOL_
CHOICE_ OVERRIDE - Override for tool choice mode, set by the agent loop. Read by model_providers that support native tool calling.
- TOOL_
LOOP_ SESSION_ KEY - Session key for the currently active session. Scoped by gateway and channel turns, read by SessionsCurrentTool.
- TOOL_
LOOP_ THREAD_ ID - Current thread/sender ID for per-sender rate limiting. Set by the agent loop, read by SecurityPolicy.