Function get_deep_agent_system_prompt

Source
pub fn get_deep_agent_system_prompt(custom_instructions: &str) -> String
Expand description

Get the comprehensive Deep Agent system prompt that forces tool usage

This prompt is modeled after the Python deepagents package and Claude Code’s system prompt. It includes:

  • Explicit tool usage rules with imperative language
  • JSON examples of tool calling
  • Workflow guidance for multi-step tasks
  • Few-shot examples for common patterns

§Arguments

  • custom_instructions - User-provided instructions that will be prepended

§Returns

A comprehensive system prompt that forces the LLM to use tools