Skip to main content
Teach the agent response patterns by passing few-shot examples through additional_input. Here the examples cover 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