OpenProgram Docs

Nested LLM node content

An expanded LLM node shows everything displayable in execution order. No fixed Reply or Reasoning sections. The stream itself: agentic LLM streaming.

Block, in orderShown as
reasoning_summaryFolded row, where it occurred; only when the model returned one, never generated
textMarkdown, no heading
parallel_groupread_config Completed, run_tests Running: one group, invocation order
textContinues after the group as a new block
tool_refanalyze_repository; expands to its own inner LLM content
textThe final text

Tree and content

ViewAnswers
Execution treeCall relationships, parallel branches, status, duration, failure location
Node contentOrdered text, reasoning and function references inside one LLM node
Collapsed cardName, status, duration, short preview
Expanded card, right-side detailsOne component, LlmNodeContent
  • A function row appears at invocation and reads arguments, progress, results and errors from its DAG node. Clicking it finds that node in the tree. An early finish never moves a row.
  • Internal signatures are not content.
  • All displayable content stays reachable. Large results may fold or load on demand, but a truncated preview is never the only copy.

Model calls inside functions

Default
The selected LLM open; its functions as summary rows
Limit
Eight inline levels (MAX_LLM_CONTENT_DEPTH), then an explicit boundary with an action that opens the node as a new content root in details. The tree, tool state and history do not change
Expansion state
Kept by node, attempt and block, so streaming and remounts do not reset it
Code functions
Arguments, status, logs, return value; model content only if they called a model

Block protocol

Each LLM node keeps ordered blocks per attempt on execution_stream.v1. Execution sets the order through block_id and block_index; WebSocket arrival time does not.

KindFieldsMeaning
textblock_id, content, statusStreaming Markdown
reasoning_summaryAs text, plus retentionPolicy may omit it from persistence
tool_refblock_id, tool_call_id, occurrence_id, ref_node_id, optional group_idA pointer to a DAG node; no inline result
tool_argumentsArgument deltaPreview while arguments generate; terminal display uses the tree
parallel_groupgroup_id, ordered tool_ref idsExplicit concurrent batch only
refusal, unsupportedExistingShown as themselves
Example event
{
  "type": "execution_stream",
  "schema_version": 1,
  "op": "block_started",
  "node_id": "call_9f3e",
  "attempt_id": "att_2",
  "block_id": "blk_tool_7",
  "block_index": 4,
  "kind": "tool_ref",
  "tool_call_id": "call_abc",
  "occurrence_id": "occ_7e4c",
  "ref_node_id": "exec_read_file_01",
  "group_id": "par_1"
}

Tool identity

  • One qualified occurrence_id is exactly one row. A raw tool_call_id may repeat across provider rounds; a duplicate event adds no row. A missing occurrence is accepted only for old records.
  • A DAG tool node stores both ids; the stream publishes occurrence_id → ref_node_id. If the node is not visible yet, a placeholder with a stable id comes first and the same block_id is filled in later. No second row, no fabricated completion.

Attempts

EventResult
Model request after normal tool resultsSame attempt, more blocks. turn_end ends one provider round only
Transport or structured-output failurestart_attempt(reason=...): a visible boundary; earlier attempts stay folded; new output never joins the incomplete Markdown

Parallel calls

  • A group needs a real concurrent batch with known members. The Python dispatcher runs calls one by one, so it publishes no group_id; the frontend never infers a group from adjacent rows.
  • Every member carries the id from its first event; an id created late is re-published for earlier members.
  • Order is invocation order. Completion changes status only.

Streaming and scrolling

  • Reuse the chat's renderMarkdown, ThinkingStep and FunctionStep presentation and safety policy.
  • Update the active block only. Unclosed fences, tables or links never blank the region.
  • Virtualize or load large content by block.
  • Follow at the bottom; scrolling up stops it. Expansion and highlighting keep the reading position.
  • Copy text is not Copy full execution record, which may include reasoning and tool arguments.

Refresh and failure

CaseResult
Refresh, owner gone, worker restartSame order, references and terminal states, from checkpoint, metadata.stream and snapshots. Never a model call
Incomplete textKept and marked interrupted, cancelled or failed
Reasoning not saved“This content was not saved”, not an empty success
Old recordsOne legacy attempt from metadata.blocks; an unresolved reference shows as unresolved and keeps tool_call_id

Live and durable snapshots hold complete block content; only compatibility preview fields may be cut.

Acceptance scenario

The model emits Markdown, calls two functions in parallel, one calls an inner model with read_file, the outer model continues. Disconnect and refresh during it. Afterwards:

  • Block order, function states and hierarchy match the live view; tool state comes from persistent DAG nodes.
  • No Reply or Reasoning header bars.
  • Parallel members are not reordered by completion.
  • Retries show boundaries without joining incomplete Markdown.
  • tool_ref and tree nodes match one to one, with no duplicated results.

Implementation status

StatusItems
ImplementedOrdered blocks, tool_ref, attempts and version recovery (CallStreamState, the reducer); LlmNodeContent for cards and details; authority filtering before projection, so io/llm shows permitted descendants only; expansion state and the depth limit; persistent recovery
Not yetThe acceptance scenario with a real model in the default App. Concurrent dispatch, so parallel_group has no producer
Last updated · 2026-11-25