Crate zeroclaw_api
Expand description
ZeroClaw API layer — trait definitions and shared types.
Modules§
- agent
- attribution
- channel
- elicitation
- ACP elicitation primitives.
- 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.
- media
- 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
- principal
- The authenticated subject — the single
Principalevery gateway/RPC/ACP connection carries once ancrateauth provider has verified a credential. - 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
- vad
- Voice Activity Detection trait and event types.
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.