Skip to main content

Module system_prompt

Module system_prompt 

Expand description

System prompt construction for the agent loop and channel subsystem. These functions were originally in channels/mod.rs but live here to break a circular dependency between the channels and agent modules.

Constants§

BOOTSTRAP_MAX_CHARS
Maximum characters per injected workspace file (matches OpenClaw default).
NATIVE_TOOLS_TASK_FRAMING
NO_TOOLS_TASK_FRAMING

Functions§

build_system_prompt
build_system_prompt_with_mode
build_system_prompt_with_mode_and_autonomy
build_system_prompt_with_tool_calls
Like build_system_prompt but accepts show_tool_calls to control whether the system prompt instructs the model to hide tool narration.