Skip to main content

Crate zeroclaw_api

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 Principal every gateway/RPC/ACP connection carries once an crate auth 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§

mock_tool_attribution
tool_attribution

Statics§

NATIVE_THINKING_OVERRIDE
Native extended thinking parameters, set by the outer orchestration functions and read by run_tool_call_loop when building ChatRequest.
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.