Skip to content

think — record reasoning without acting

think is a deliberate no-op. It writes the supplied thought into the run’s transcript and returns immediately. No environment access, no side-effects — just a structured place to externalise reasoning so the next turn (or a reviewer) can see it.

ArgTypeRequiredDescription
thoughtstringyesThe reasoning to record.
{"thought": "The bug is in retry logic. Options: (a) cap retries, (b) backoff jitter. Picking (b) — simpler."}
from chimera.tools.think import ThinkTool
tool = ThinkTool()
result = tool.execute(
{"thought": "Need to check whether the env var is set before reading."},
env=None,
)
print(result.metadata["thought"])
Thought recorded.

The actual text lives in result.metadata["thought"] and shows up in the StepCost event for the turn.

  • Plan-and-execute loops — write the plan, then execute.
  • Reflection / critique — capture self-correction without polluting the user-facing output.
  • Long multi-step traces — anchor decisions for later review.
  • Loops — PlanAndExecute, Reflexion, TreeOfThought.
  • todo — track multi-step work explicitly.