Check Your Understanding
Designing Agent Prompts
Which of the following is a best practice when designing an Aura Agent prompt?
-
❏ Use a single long prompt that covers every possible scenario
-
✓ Define the agent’s role and scope clearly, and specify available tools
-
❏ Avoid mentioning the graph schema in the prompt
-
❏ Never include examples to keep the prompt short
Hint
Effective prompts give the agent a clear purpose and context. Specifying tools helps the LLM choose correctly.
Solution
Define the agent’s role and scope clearly, and specify available tools.
mermaid
%%{init: {
"theme": "base",
"securityLevel": "strict",
"fontFamily": "Public Sans, Arial, Helvetica, sans-serif",
"themeVariables": {
"background": "#F5F7FA",
"primaryTextColor": "#014063",
"fontSize": "14px",
"primaryColor": "#eef6f9",
"primaryBorderColor": "#014063",
"lineColor": "#485662"
}
}}%%
flowchart LR
ROLE["Clear Role"]
SCOPE["Clear Scope"]
TOOLS["Tool Descriptions"]
PROMPT["Effective Prompt"]
LLM["LLM Reasons"]
INVOKE["Correct Tool Invocation"]
ROLE --> PROMPT
SCOPE --> PROMPT
TOOLS --> PROMPT
PROMPT --> LLM
LLM --> INVOKE
style ROLE fill:#edf6e8,stroke:#006E58
style SCOPE fill:#edf6e8,stroke:#006E58
style TOOLS fill:#edf6e8,stroke:#006E58
style PROMPT fill:#eef6f9,stroke:#014063
style LLM fill:#E7FAFB,stroke:#006E58
style INVOKE fill:#014063,stroke:#014063,color:#fffClear role and scope plus tool descriptions help the LLM reason about when to invoke each tool.
Summary
In this lesson, you learned how to design agents with clear prompts, focused scope, and effective tool descriptions.