Google ADKgoogle-adk · Python 3.10+
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
14 small wins to finish your pathNext lesson

Instructions that work

The instruction is a system prompt. Same rules as anywhere else: say what to do, not what to avoid.

  • Name the tools it should use and when
  • Say what to do when it cannot answer
  • Describe the shape of the output you expect
python
instruction=(
    "You answer questions about order status. "
    "Use get_order_status whenever the user mentions an order number. "
    "If you cannot find the order, say so plainly and ask for the number again."
)

Every expert started right here.