Skip to main content
This example demonstrates how to use additional_input with an Agent to teach proper response patterns through few-shot learning, specifically for customer support scenarios.

Code

few_shot_learning.py

Usage

1

Create a Python file

Create few_shot_learning.py with the code above.
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Agent