Conversational tool loop (conversational_tool_loop)
Agentic Recipe. Bound tool loop whose runtime expands nested
inference / tool_call graph nodes under a tools parent without
pre-unrolling max iterations. Node components use existing kinds only.
Surface |
Value |
|---|---|
Catalog id |
|
Module |
|
Runner |
|
Substrate |
|
Owning stories |
|
When to use
Host chat / agent turns that need zoomable tool back-and-forths
Replacing opaque in-node tool loops with checkpointed interiors
Soft points
Name |
Kind |
Role |
|---|---|---|
|
runner_kind |
Controller node kind |
|
runner_kind |
Model complete step |
|
runner_kind |
Per-tool invocation |
|
budget |
Bound rounds |
|
task_state |
Carried messages |
|
tool |
Host dispatch bind |
|
provider |
Host complete bind |
Node components
Parent graph node |
Components |
|---|---|
|
|
See Node components.
Tiling example
from mechaharness.conversational_tool_loop_runner import ConversationalToolLoopRunner
from mechaharness.graph_templates import (
ConversationalToolLoopTemplate,
GraphTemplateParams,
)
from mechaharness.host_kit import host_graph_executor
graph = ConversationalToolLoopTemplate().instantiate(
GraphTemplateParams(goal="chat tools", inputs={"max_iterations": 4})
)
runner = ConversationalToolLoopRunner(
complete=lambda messages, meta: {"role": "assistant", "content": "hi", "tool_calls": []},
dispatch_tool=lambda name, args: "ok",
)
executor = host_graph_executor(runners=[runner])