v1.0.0

Agents

Updated 30 Nov 2026Edit this page

Agent, Planner, Critic, Reasoning, Tool Router and Tool Chain.

Agent nodes decide what to do at run time, within explicit limits. See Agents and tools for the guide and Agents in the handbook for the theory.

Node Category Summary
Agent Agents A model that decides which connected tools to call, within turn, tool-call, token and cost limits.
Critic Agents Reviews content against explicit criteria and rule checks; routes pass / fail and gives feedback.
Planner Agents Breaks a goal into a short list of self-contained tasks (e.g. for a Loop of worker agents).
Reasoning Agents Answers with a reasoning strategy: chain of thought (with self-consistency), task decomposition, tree of thoughts, graph of thoughts, Monte Carlo tree search or backtracking. The explored tree is traced.
Tool Chain Agents Runs connected tools in a fixed order; each step’s arguments can use the input and earlier results ({{input}}, {{previous}}, {{steps.0.result}}).
Tool Router Agents Sends a request to the single best tool (by keywords and/or the model), fills its arguments by function calling and returns the tool’s result.

Agent

agenticmind.agents.agent · version 1.2.0 · older versions kept: 1.0.0, 1.1.0

A model that decides which connected tools to call, within turn, tool-call, token and cost limits.

Typical use. The core agent. Connect tool nodes to tools and the model decides which to call, within max_turns, max_tool_calls, token_budget and cost_budget_usd. Choose the architecture: native function_calling, visible react thoughts, or plan_and_execute. Every model turn and tool call is traced.

Input Type Required Description
task String yes The question or task
tools Tool (many) no Tools the agent may use (including Subagent tools to delegate to)
context String no Extra background for the agent
history JSON no Earlier messages [{role, content}], e.g. from Conversation History
Output Type Description
answer String
result JSON {answer, steps, report} for chat/API
transcript JSON Full message history (for debugging)
  • Control branches: done
  • Permissions: network, filesystem, database, subprocess, credentials, artifacts, memory
  • Execution policy: timeout 600s, max attempts 1, not idempotent
Setting Type Default Description
provider openrouter · openai · anthropic · gemini · azure_openai · bedrock · mistral · groq · deepseek · together · xai · huggingface · ollama · openai_compatible · mock openrouter Model provider (needs a model that supports tool calling).
model string google/gemini-3.8-flash Model
api_key secret ref API key secret, e.g. OPENROUTER_API_KEY
instructions string see below System instructions.
architecture function_calling · react · plan_and_execute function_calling function_calling: the model calls tools natively (parallel calls allowed) until it answers. react: Thought → Action → Observation steps written as text, visible in the trace and usable with models without native tool calling. plan_and_execute: write a short plan first, run each step with tools, then combine the results.
parallel_tool_calls boolean true Run the tool calls the model makes in one turn at the same time.
max_plan_steps integer 5 Most steps a plan may have.
max_turns integer 6 Maximum model calls.
max_tool_calls integer 12 Maximum tool executions in total.
token_budget integer 60000 Stop when input+output tokens exceed this.
cost_budget_usd number 0.25 Stop when the reported cost exceeds this (0 = no limit).
on_limit fail · return_partial fail fail: the node fails when a limit is hit. return_partial: return what the agent has so far.
tool_timeout_seconds number 30 Tool Timeout Seconds
temperature number 0.2 Temperature
max_tokens integer 1500 Max Tokens
reasoning_effort default · none · minimal · low · medium · high · xhigh · max default Thinking effort for reasoning models: default keeps the model’s own setting; none/minimal/low answer fastest. Applied on OpenRouter, OpenAI, Azure OpenAI, Anthropic and Gemini 3+.
base_url string Base Url
Default instructions
You are a careful assistant. Use the available tools whenever they help answer accurately, and never invent tool results. When you use document search results, mention the source file and section. Answer concisely.

Critic

agenticmind.agents.critic · version 1.0.0

Reviews content against explicit criteria and rule checks; routes pass / fail and gives feedback.

Typical use. Reviews content against deterministic rules (word limits, must / must-not phrases) and model-judged criteria, reported separately. Takes the pass or fail branch and writes a revision_request for the next round of a reflection loop.

Input Type Required Description
content String yes What to review
task String no What the content should achieve
Output Type Description
passed Boolean
needs_revision Boolean not passed (for Loop End continue)
feedback String
revision_request String Task + draft + feedback as a prompt for the next draft (for Loop End next_state)
report JSON
  • Control branches: pass, fail
  • Permissions: network, credentials
  • Execution policy: timeout 120s, max attempts 2, idempotent
Setting Type Default Description
provider openrouter · openai · anthropic · gemini · azure_openai · bedrock · mistral · groq · deepseek · together · xai · huggingface · ollama · openai_compatible · mock openrouter Provider
model string google/gemini-3.8-flash Model
api_key secret ref API key secret, e.g. OPENROUTER_API_KEY
base_url string Base Url
temperature number 0 Temperature
max_tokens integer 4000 Max Tokens
criteria array see below Judged by the model. Leave empty for rule checks only (no model call).
min_words integer 0 Rule check (0 = off).
max_words integer 0 Rule check (0 = off).
must_include array Rule check: each phrase must appear.
must_not_include array Rule check: none may appear.
Default criteria
[
  {
    "name": "answers_task",
    "description": "Fully does what the task asks.",
    "required": true
  },
  {
    "name": "accurate",
    "description": "Contains no invented facts, numbers or promises.",
    "required": true
  },
  {
    "name": "clear",
    "description": "Easy to read; no filler.",
    "required": false
  }
]

Planner

agenticmind.agents.planner · version 1.0.0

Breaks a goal into a short list of self-contained tasks (e.g. for a Loop of worker agents).

Typical use. Breaks a goal into at most max_tasks self-contained tasks through a forced submit_plan call. Feed tasks to a Loop in for_each mode to run worker agents in parallel, then synthesise.

Input Type Required Description
goal String yes
context String no
Output Type Description
tasks JSON List of task texts
plan JSON {goal, tasks: [{title, instructions}], rationale}
count Number
  • Control branches: done
  • Permissions: network, credentials
  • Execution policy: timeout 120s, max attempts 2, idempotent
Setting Type Default Description
provider openrouter · openai · anthropic · gemini · azure_openai · bedrock · mistral · groq · deepseek · together · xai · huggingface · ollama · openai_compatible · mock openrouter Provider
model string google/gemini-3.8-flash Model
api_key secret ref API key secret, e.g. OPENROUTER_API_KEY
base_url string Base Url
temperature number 0.2 Temperature
max_tokens integer 4000 Max Tokens
instructions string see below Instructions
max_tasks integer 4 Upper bound on the number of tasks.
Default instructions
You are a planner. Break the goal into the smallest set of independent tasks that together achieve it. Each task must be self-contained: a worker sees only that task (and the goal), not the other tasks. Do not include a final 'combine the results' task; that happens separately.

Reasoning

agenticmind.agents.reasoning · version 1.0.0

Answers with a reasoning strategy: chain of thought (with self-consistency), task decomposition, tree of thoughts, graph of thoughts, Monte Carlo tree search or backtracking. The explored tree is traced.

Typical use. Answers with an explicit reasoning strategy: chain of thought (with self-consistency), decomposition, tree or graph of thoughts, MCTS, backtracking, self-refine, Reflexion, debate, mixture of agents, step-back or program of thought. max_llm_calls and token_budget bound the search; result holds the explored tree.

Input Type Required Description
question String yes
context String no Facts the reasoning may use
Output Type Description
answer String
reasoning String The chosen reasoning path
result JSON {method, answer, path, tree, calls, stopped_early}
  • Control branches: done
  • Permissions: network, credentials
  • Execution policy: timeout 900s, max attempts 1, idempotent
Setting Type Default Description
method chain_of_thought · decomposition · tree_of_thoughts · graph_of_thoughts · mcts · backtracking · self_refine · reflexion · debate · mixture_of_agents · step_back · program_of_thought chain_of_thought chain_of_thought (optionally self-consistency), decomposition (sub-questions), tree_of_thoughts (beam search), graph_of_thoughts (generate, aggregate, refine), mcts (Monte Carlo tree search), backtracking (depth-first with checks), self_refine (draft-critique-revise), reflexion (retry with lessons), debate (agents argue), mixture_of_agents (models propose, one synthesises), step_back (principle first), program_of_thought (computed arithmetic).
provider openrouter · openai · anthropic · gemini · azure_openai · bedrock · mistral · groq · deepseek · together · xai · huggingface · ollama · openai_compatible · mock openrouter openrouter: one key for Gemini, Claude, GPT and many more. openai / anthropic / gemini / mistral / groq / deepseek / together / xai: the provider’s own API with its own key. azure_openai: your Azure resource (base_url = resource endpoint, model = deployment). bedrock: Amazon Bedrock (base_url = region, Bedrock API key). huggingface: open models via Hugging Face (HF_TOKEN). ollama: models on your own machine. openai_compatible: any OpenAI-style API (needs base_url). mock: offline test responses.
model string google/gemini-3.8-flash Model
api_key secret ref API key secret, e.g. OPENROUTER_API_KEY
instructions string Extra guidance for every step.
samples integer 1 Independent chains; >1 = self-consistency vote.
max_subquestions integer 4 Max Subquestions
branching integer 3 Candidate next steps proposed per state.
beam_width integer 2 States kept per level.
depth integer 3 Most reasoning steps per path.
iterations integer 8 MCTS simulations.
refinements integer 2 Refinements
rounds integer 2 Refine / retry / debate / aggregation rounds.
agents integer 3 Debaters / proposers (when no model list is given).
models array Different models for the debaters / proposers (same provider); empty = the model above.
max_llm_calls integer 40 Stop searching after this many model calls.
token_budget integer 80000 Token Budget
temperature number 0.7 Used for proposing / sampling (scoring uses 0).
max_tokens integer 1200 Per call.
reasoning_effort default · none · minimal · low · medium · high · xhigh · max default Thinking effort for reasoning models: default keeps the model’s own setting; none/minimal/low answer fastest. Applied on OpenRouter, OpenAI, Azure OpenAI, Anthropic and Gemini 3+.
base_url string Base Url

Tool Chain

agenticmind.agents.tool_chain · version 1.1.0 · older versions kept: 1.0.0

Runs connected tools in a fixed order; each step’s arguments can use the input and earlier results ({{input}}, {{previous}}, {{steps.0.result}}).

Typical use. Runs tools in a fixed order without a model deciding. Arguments are templates over {{input}}, {{previous}} and {{steps.N.result}}, so each step can use earlier results.

Input Type Required Description
input Any no Available as {{input}}
tools Tool (many) yes Tools to route between / chain
Output Type Description
result JSON The last step’s result
steps JSON Every step: tool, arguments, ok, result
  • Control branches: done
  • Permissions: network, filesystem, database, subprocess, credentials, artifacts, memory
  • Execution policy: timeout 600s, max attempts 1, not idempotent
Setting Type Default Description
steps array Tool calls in order, e.g. [{“tool”: “calculator”, “arguments”: {“expression”: “{{input}}”}}, {“tool”: “web_fetch”, “arguments”: {“url”: “https://example.org/{{previous.value}}”}}].
stop_on_error boolean true Fail at the first failing step (else continue).
tool_timeout_seconds number 30 Tool Timeout Seconds

Tool Router

agenticmind.agents.tool_router · version 1.1.0 · older versions kept: 1.0.0

Sends a request to the single best tool (by keywords and/or the model), fills its arguments by function calling and returns the tool’s result.

Typical use. Sends one request to the single best tool, chosen by keywords, by the model, or both, then fills the tool’s arguments by function calling. Cheaper and more predictable than a full agent when exactly one tool call is needed.

Input Type Required Description
query String yes The request
tools Tool (many) yes Tools to route between / chain
Output Type Description
result JSON The tool’s result
tool String Name of the tool that ran
text String The result as text
  • Control branches: done
  • Permissions: network, filesystem, database, subprocess, credentials, artifacts, memory
  • Execution policy: timeout 300s, max attempts 1, not idempotent
Setting Type Default Description
strategy model · keywords · hybrid hybrid keywords: the first tool whose keywords appear in the request. model: the model picks the tool from the tools’ descriptions. hybrid: keywords first, then the model.
keywords object Tool name → words that select it, e.g. {“calculator”: [“sum”, “%”], “web_fetch”: [“http”]}.
default_tool string Used when no tool is selected (empty = fail).
provider openrouter · openai · anthropic · gemini · azure_openai · bedrock · mistral · groq · deepseek · together · xai · huggingface · ollama · openai_compatible · mock openrouter Provider
model string google/gemini-3.8-flash Picks tools / fills arguments.
api_key secret ref API key secret, e.g. OPENROUTER_API_KEY
tool_timeout_seconds number 30 Tool Timeout Seconds
base_url string Base Url