Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.session.agents

Persisted leader/subagent ownership. An explicit ping resumes an independent peer; a managed session stays under its team rule.

Persisted leader/subagent ownership. An explicit ping resumes an independent peer; a managed session stays under its team rule.
raw docstring

askclj

(ask env question)
(ask env question opts)

As a subagent, ask your parent for a decision and wait for the reply text. Returns None when the parent is not running or does not reply within timeout_secs (default 600). Then choose the safest option and say so in your answer.

As a subagent, ask your parent for a decision and wait for the reply text. Returns None when
the parent is not running or does not reply within timeout_secs (default 600). Then choose the
safest option and say so in your answer.
sourceraw docstring

cancel-agentclj

(cancel-agent env session-id)

Cancel a subagent and its descendants, including queued work. Returns its record.

Cancel a subagent and its descendants, including queued work. Returns its record.
sourceraw docstring

checkpoint!clj

(checkpoint! env messages)

Capture the last complete model input, before its in-flight tool call. Never copy runtime handles.

Capture the last complete model input, before its in-flight tool call. Never copy runtime handles.
sourceraw docstring

claim-iteration!clj

(claim-iteration! env)

Reserve one model iteration. A child budget is durable across replies, turns and restarts.

Reserve one model iteration. A child budget is durable across replies, turns and restarts.
sourceraw docstring

contextclj

(context env)
source

controls?clj

(controls? db actor-id target-id)

Leaders control their descendants. Subagents control themselves and their direct children.

Leaders control their descendants. Subagents control themselves and their direct children.
sourceraw docstring

default-iterationsclj

source

fail!clj

(fail! error message)
source

finish!clj

(finish! db sid status)
source

infoclj

(info db sid)
source

inherited-baseclj

(inherited-base env turn-position current-messages summaries)
source

install-runtime!clj

(install-runtime! callbacks)
source

max-active-childrenclj

source

max-depthclj

source

max-team-childrenclj

source

operation!clj

(operation! env operation opts)
source

promptclj

(prompt _env)
source

reconcile-orphans!clj

(reconcile-orphans! db live-sids)

Fail the children that a dead process left queued or running. Spare a child or a leader that live-sids names: a live process still owns that team. Returns the count.

Fail the children that a dead process left queued or running. Spare a child or a leader
that `live-sids` names: a live process still owns that team. Returns the count.
sourceraw docstring

require-enabled!clj

(require-enabled!)

Refuse new managed work before bootstrapping a session or consuming a checkpoint.

Refuse new managed work before bootstrapping a session or consuming a checkpoint.
sourceraw docstring

restrict-routerclj

(restrict-router env router)

Apply an inherited allowlist to every request and retry, including automatic fallback.

Apply an inherited allowlist to every request and retry, including automatic fallback.
sourceraw docstring

routing-changeclj

(routing-change env before)

The route command issued for this session since before, as {:preference {:provider :model} :command command}, or nil. Agent routing and the engine's authentication rescue issue commands; a manual pick is composer state that the next submitted turn snapshots, so it never re-routes a running turn.

The route command issued for this session since `before`, as
`{:preference {:provider :model} :command command}`, or nil. Agent routing and the
engine's authentication rescue issue commands; a manual pick is composer state that
the next submitted turn snapshots, so it never re-routes a running turn.
sourceraw docstring

runclj

(run env tasks)
(run env tasks opts)

Run each task in its own subagent and wait for all of them. A task is a string or a dict with task and optional model, provider, iteration_budget and context. A child uses your model and your full context. A child on another model gets only the system prompt and its task, unless context is "full". Children share the checkout.

Records have session_id, status, answer and question. More than 16 tasks start as earlier ones finish. timeout_secs defaults to 240 (max 1800). If a status is still running, call council.wait. lost means the child stopped without an answer.

Run each task in its own subagent and wait for all of them. A task is a string or a dict with
task and optional model, provider, iteration_budget and context. A child uses your model and
your full context. A child on another model gets only the system prompt and its task, unless
context is "full". Children share the checkout.

Records have session_id, status, answer and question. More than 16 tasks start as earlier ones
finish. timeout_secs defaults to 240 (max 1800). If a status is still running, call
council.wait. lost means the child stopped without an answer.
sourceraw docstring

symbolsclj

source

wait-agentsclj

(wait-agents env)
(wait-agents env ids-or-opts)
(wait-agents env ids opts)

Wait again for subagents by session_ids (default: all your children). Same records and timeout as council.run.

Wait again for subagents by session_ids (default: all your children). Same records and timeout as council.run.
sourceraw docstring

wake-allowed?clj

(wake-allowed? db author-id recipient-id)

Automatic resume has two sources: an explicit ping between independent sessions, and a managed team. A child may return to its leader; siblings must share a task team. A managed session keeps its team rule, so a cancelled or exhausted subagent stays idle. Only a managed subagent wakes itself; an independent session stays idle.

Automatic resume has two sources: an explicit ping between independent sessions, and
a managed team. A child may return to its leader; siblings must share a task team.
A managed session keeps its team rule, so a cancelled or exhausted subagent stays idle.
Only a managed subagent wakes itself; an independent session stays idle.
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