Skip to main content

Crate zeroclaw_api

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 canonical Principal).
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§

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.