Liking cljdoc? Tell your friends :D

toolnexus.a2a


agent-toolsclj/s

(agent-tools opts)

Convenience: just the tools, isolating a failing agent to [].

Convenience: just the tools, isolating a failing agent to `[]`.
sourceraw docstring

default-poll-everyclj/s

§7A: pollEvery defaults to 1000ms.

§7A: `pollEvery` defaults to 1000ms.
sourceraw docstring

default-timeoutclj/s

§7A: timeout defaults to 300000ms.

§7A: `timeout` defaults to 300000ms.
sourceraw docstring

parse-agents-configclj/s

(parse-agents-config block)

§7A — the top-level agents block of a parsed config object, as descriptors remote-agent/agent-tools accept.

The block is a NAME -> descriptor map, exactly mirroring mcpServers, and the same two disable spellings apply (disabled:true, enabled:false). An entry with no string card is not an agent and is skipped rather than failed — §0.3's isolation rule reaches config parsing too.

Ordered by NAME, for the same reason mcp/parse-config is: two runtimes must not disagree about which peer registered first, and §7A tool names collide the moment two cards share a name.

§7A — the top-level `agents` block of a parsed config object, as descriptors
`remote-agent`/`agent-tools` accept.

The block is a NAME -> descriptor map, exactly mirroring `mcpServers`, and the
same two disable spellings apply (`disabled:true`, `enabled:false`). An entry
with no string `card` is not an agent and is skipped rather than failed —
§0.3's isolation rule reaches config parsing too.

Ordered by NAME, for the same reason `mcp/parse-config` is: two runtimes must
not disagree about which peer registered first, and §7A tool names collide the
moment two cards share a name.
sourceraw docstring

remote-agentclj/s

(remote-agent {:keys [card headers timeout poll-every pollEvery]})

§7A's agent({card, headers?, timeout?, pollEvery?}) — renamed, see the namespace comment. Fetches the Agent Card and returns

{:card <AgentCard> :endpoint <json-rpc url> :tools [Tool …]}

A FAILING AGENT IS ISOLATED, never fatal (like MCP): {:tools [] :error "…" :card nil}. Accepts both :poll-every and §7A's config-file spelling :pollEvery.

§7A's `agent({card, headers?, timeout?, pollEvery?})` — renamed, see the
namespace comment. Fetches the Agent Card and returns

  {:card <AgentCard> :endpoint <json-rpc url> :tools [Tool …]}

A FAILING AGENT IS ISOLATED, never fatal (like MCP): `{:tools [] :error "…"
:card nil}`. Accepts both `:poll-every` and §7A's config-file spelling
`:pollEvery`.
sourceraw docstring

task-input-schemaclj/s

§7A, verbatim: {type:"object", properties:{task:{type:"string"}}, required:["task"]}. Kept literally to the spec — S20 carried an extra description on the property, which is friendlier to a model but is drift the other five ports would not reproduce.

§7A, verbatim: `{type:"object", properties:{task:{type:"string"}},
required:["task"]}`. Kept literally to the spec — S20 carried an extra
`description` on the property, which is friendlier to a model but is drift the
other five ports would not reproduce.
sourceraw docstring

task-outputclj/s

(task-output task)

§7A completed mapping: all kind:"text" parts across artifacts[].parts[] joined by "\n"; fallback = the LAST role:"agent" history message's text.

§7A `completed` mapping: all kind:"text" parts across `artifacts[].parts[]`
joined by "\n"; fallback = the LAST role:"agent" history message's text.
sourceraw docstring

task-statesclj/s

§7A TaskState, in full.

§7A TaskState, in full.
sourceraw docstring

terminal-statesclj/s

§7A: terminal = completed / failed / canceled.

§7A: terminal = completed / failed / canceled.
sourceraw docstring

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