Back to Zeroclaw

API Reference

docs/book/src/api.md

0.7.42.2 KB
Original Source

API Reference

Full rustdoc for every public type in the workspace, auto-generated from the /// comments on each type, function, and module. Use this when you need to know the exact shape of a struct, the methods on a trait, or what a function returns — anything the generated reference exposes better than prose can.

Open the rustdoc →

How to navigate it

  • The sidebar on the left lists every crate in the workspace
  • Click zeroclaw-api first — that's where the public traits (Provider, Channel, Tool) live
  • Use cmd/ctrl+F in the rustdoc page to search within a crate
  • Click on any trait to see implementors across the workspace

Crate index

CrateWhat it exposes
zeroclawTop-level umbrella with re-exports
zeroclaw-apiPublic traits: Provider, Channel, Tool, StreamEvent
zeroclaw-configConfig schema, autonomy types, secrets
zeroclaw-runtimeAgent loop, security, SOP, onboarding
zeroclaw-providersEvery LLM-provider implementation
zeroclaw-channelsMessaging integrations
zeroclaw-gatewayHTTP/WebSocket gateway
zeroclaw-toolsAgent-callable tools
zeroclaw-memoryConversation memory, embeddings
zeroclaw-pluginsWASM plugin host
zeroclaw-hardwareGPIO / I2C / SPI / USB
zeroclaw-infraTracing, metrics

See Architecture → Crates for a plain-English description of how the crates fit together.

Regenerating the API reference

The rustdoc ships with every doc deploy. For local builds:

bash
cargo mdbook refs     # generates CLI + config reference + rustdoc
cargo mdbook build    # rebuilds the full book including rustdoc bridge

See Maintainers → Docs & Translations.