1. Learn
  2. /
  3. Courses
  4. /
  5. Databricks with the Python SDK

Connected

Exercise

Query a Foundation Model

Let's use what we learned about the difference between "SYSTEM" and "USER" Chat Message Roles to send different prompts to the AI agent based on the Chat Message role.

Instructions

100 XP
  • Tell the AI Agent to act like a high school computer science teacher when answering queries using the prompt ai_agent_context.
  • Ask the AI agent when to use For loops using the user_prompt.