Foresight.Prompts.Reflect.Agent.V1 (Foresight v0.1.0)

Copy Markdown View Source

System prompt for the agentic (tool-calling) reflect loop (C6). Faithful port of Hindsight's engine/reflect/prompts.py build_system_prompt_for_tools.

The load-bearing sections — Temporal Reasoning, Conflicts & Ambiguity, and Showing Your Reasoning (the explicit KEEP/DROP arithmetic) — are the mechanism by which cross-session counts/totals are answered correctly, and are ported verbatim.

Summary

Functions

Build the tool-calling system prompt.

Functions

system_prompt(opts \\ [])

@spec system_prompt(keyword()) :: String.t()

Build the tool-calling system prompt.

Options:

  • :bank_profile — map with "name"/"mission" (or atom keys)
  • :directives — list of directive maps injected as hard rules
  • :has_mental_models — whether the bank has any mental models (default false)
  • :include_observations — whether search_observations is exposed (default true)
  • :budget — "low" | "mid" | "high" | nil