Connect

7 / 8

Connect the system ยท 07

From Primitives to an Agent Runtime

The capstone places a live language model inside the control loop you implemented. Each response is parsed, each tool call is dispatched, and each observation becomes context for the next turn.

Capstone path

Live model decisions, Python tools, scratchpad state, and the bounded loop.

Production path

Approval policy, trajectory evaluation, monitoring, and regression tests.

parse_react_step

parse_react_step

Turns each live model response into predictable decision fields.

capstone
dispatch_tool_call

support tool registry

Routes service status and runbook calls through an explicit allowlist.

capstone
advance_agent_state

scratchpad and execution trace

Carries observations forward while preserving an inspectable trajectory.

capstone
run_react_loop

run_support_agent

Repeats model and tool turns until completion or the configured step limit.

capstone
authorize_tool_call

execution policy

Adds approval gates when tools can change external state.

production
evaluate_agent_trajectory

regression evaluation

Tests tool choices, arguments, ordering, and execution budgets.

production

Run the loop with a live model.

Keep the parser, state transitions, execution boundaries, and trace visible.

Start the capstone