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
OpenClawdefault). - 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_promptbut acceptsshow_tool_callsto control whether the system prompt instructs the model to hide tool narration.