From the course: Gemini API: Tool and Function Calling
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Prompting best practices - Gemini Tutorial
From the course: Gemini API: Tool and Function Calling
Prompting best practices
- [Instructor] For sophisticated AI agents that use function calling, simply writing a clear user question isn't enough. You must properly design your prompts in a way that evokes the expected response and actions from the model. Let's see how we can make sure of that using a powerful feature known as system instructions. System instructions help you define the agent's role and rules. A system instruction is your primary control mechanism. It helps define the agent that will interact with and use the tools. So system instructions are a must have in your function calling operations. The following are elements you can add to your system instructions to ensure that you're steering your model in the right direction. And first is persona and role. You need to clearly define the agent's identity and tone. For example, you are a meticulous financial assistant with an eye for detail. This specification ensures a consistent user…