Liking cljdoc? Tell your friends :D

API Reference Directory

This directory is the English API map for clj-agent. It is organized by module so that readers can move from a use case to the owning namespace without reading vendor-specific wire details.

Each page links to source files for exact arities and docstrings. A published cljdoc build exposes the same namespaces in its API tab.

Directory

PageModuleStart here when you need to...
Coreim.ttalk/clj-agent-coreDefine tools, call a model, build a ChatClient, or write filters
Clientim.ttalk/clj-agent-clientMaintain state, run the tool loop, stream, persist memory, or approve tools
Providerim.ttalk/clj-agent-providerConfigure OpenAI, Anthropic, Gemini, Ollama, DashScope, or compatible endpoints
AG-UIim.ttalk/clj-agent-aguiRun agents detached from HTTP requests and emit reconnectable events
MCPim.ttalk/clj-agent-mcpConnect to MCP servers or expose agent tools through MCP
Serverim.ttalk/clj-agent-serverServe AG-UI/MCP endpoints as Ring handlers or host them on Jetty
Tools and HTTPim.ttalk/clj-agent-tools, im.ttalk/clj-httpGive agents workspace/file capabilities or make standalone HTTP calls

Recommended reading order

  1. Core API: understand deftool, ChatModel, and build-chat-client.
  2. Client API: use SimpleAgent unless you need explicit loop control.
  3. Provider API: choose and configure the provider adapter.
  4. Optional integration APIs: AG-UI, MCP, and Server.

Public surface policy

The framework intentionally distinguishes the primary API from internal helpers:

  • Primary API: facade functions, SimpleAgent, ChatClient constructors and invoke functions, tool/filter creation, provider factories, store constructors, runtime/server constructors, and protocols intended for extension.
  • Implementation namespaces: wire converters, stream parsers, and provider support namespaces are documented here only when an application must select or inject them explicitly.
  • Stable data contracts: neutral messages, canonical errors, tool metadata, pause snapshots, and AG-UI events. Prefer these over vendor-shaped maps.

For the complete generated symbol list, read the cljdoc API tab for the selected release, or inspect the linked src directory in this repository.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close