Think

Generate an internal reflection on the state of the plan

bdambrosio 01db57b 2 files · 2.5 KB Updated

File contents

Think

INPUT CONTRACT

  • value (required): Literal string or $variable referencing thought prompt

REQUIREMENTS:

  • Value must be provided (string content for the thought)

BEHAVIOR

Generates an internal thought that enriches the planning context for subsequent tool selections. The thought is appended to the internal conversation state, allowing the LLM to reference it in later reasoning.

Thoughts are:

  • NOT persisted as Notes
  • NOT published to the UI
  • NOT communicated to the user

Use this for tracking reasoning steps, making observations, or noting intermediate conclusions that inform later decisions.

EXAMPLES

{"type": "think", "value": "The user wants a summary, but how long should it be?"}
{"type": "think", "value": "Do I already have the information I need to answer the question?"}
{"type": "think", "value": "$observation"}

OUTPUT

Returns success. The thought is injected into the planning context but produces no external side effects.

ANTI-PATTERNS

  • Using think to communicate with the user — use say instead
  • Using think to store persistent data — use create-note instead

bdambrosio/cognitive_workbench/tree/main/src/primitives/think commit 01db57b479

Frequently asked questions

npx skillmds@latest add bdambrosio/think