Elffuss BraidHub

kikocis/Based-Agent public

96fe88dcefb1 · 752 BRenderedRawPermalink
1# Weather agent
2
3This example is a weather agent demonstrating function calling with a single agent. The agent has tools to get the weather of a particular city, and send an email.
4
5## Setup
6
7To run the weather agent Swarm:
8
91. Run
10
11```shell
12python3 run.py
13```
14
15## Evals
16
17> [!NOTE]
18> These evals are intended to be examples to demonstrate functionality, but will have to be updated and catered to your particular use case.
19
20This example uses `Pytest` to run eval unit tests. We have two tests in the `evals.py` file, one which
21tests if we call the `get_weather` function when expected, and one which assesses if we properly do NOT call the
22`get_weather` function when we shouldn't have a tool call.
23
24To run the evals, run
25
26```shell
27pytest evals.py
28```