API reference (rustdoc)

Every public type, trait, function, and module in the nexo-rs workspace is documented via cargo doc. The CI workflow runs cargo doc --workspace --no-deps and publishes the output under /api/ on the same GitHub Pages deployment as this book.

Open the rustdoc

What's there

One rustdoc page per workspace crate:

CrateContents
agentTop-level binary — mostly wiring; see src/main.rs.
nexo-coreAgent trait, AgentRuntime, SessionManager, ToolRegistry, HookRegistry, agent-facing tools (memory, taskflow, self_report, delegate, workspace_git).
nexo-brokerBroker trait (NatsBroker, LocalBroker), disk queue, DLQ.
nexo-llmLlmClient trait, MiniMax / Anthropic / OpenAI-compat / Gemini clients, retry + rate limiter.
nexo-memoryShort-term / long-term / vector types, LongTermMemory API.
nexo-configYAML struct types, env/file placeholder resolution.
nexo-extensionsExtensionManifest, ExtensionDiscovery, StdioRuntime, CLI.
nexo-mcpMCP client + server primitives.
nexo-taskflowFlow, FlowStore, FlowManager, WaitEngine.
nexo-resilienceCircuitBreaker.
nexo-setupWizard field registry, YAML patcher.
nexo-tunnelCloudflared tunnel helper.
nexo-authPer-agent credential gauntlet, resolver, audit.
nexo-plugin-*Channel plugins (browser, whatsapp, telegram, email, google, gmail-poller).

When to read rustdoc vs the book

GoalStart here
Understand a subsystem's purposethis book
Read a specific trait's methods / signaturesrustdoc
Wire two subsystems togetherbook → rustdoc
Embed a crate in your own binaryrustdoc
Audit what's public APIrustdoc (anything not in rustdoc is internal)

Building locally

# All crates, no dependencies:
cargo doc --workspace --no-deps

# Open the nexo-core rustdoc in a browser:
cargo doc -p nexo-core --no-deps --open

Warnings are rejected in CI (RUSTDOCFLAGS=-D warnings). Run the same locally before pushing if you edited doc comments:

RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps

Public-API stability

The workspace has not committed to semver-level stability yet. Public signatures change between code phases; follow PHASES.md and commit history when upgrading.