Skip to content

Commit 701a7fc

Browse files
committed
Update the docs to include the pip command.
1 parent ccf7ba2 commit 701a7fc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docs/testing/Examples/langgraph.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ title: LangGraph
66

77
LangGraph is a [library](https://github.com/langchain-ai/langgraph) for building stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows. In this example, we build a weather agent that helps us answer queries about the weather by using tool calling.
88

9+
## Setup
10+
To use `langgraph`, you need to need to install the corresponding package:
11+
12+
```bash
13+
pip install langgraph
14+
```
15+
916
## Agent code
1017

1118
You can view the agent code [here](https://github.com/invariantlabs-ai/testing/blob/main/sample_tests/langgraph/weather_agent/weather_agent.py).

docs/testing/Examples/swarm.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ title: OpenAI Swarm
66

77
OpenAI has introduced [Swarm](https://github.com/openai/swarm), a framework for building and managing multi-agent systems. In this example, we build a capital finder agent that uses tool calling to answer queries about finding the capital of a given country.
88

9+
## Setup
10+
To use `Swarm`, you need to need to install the corresponding package:
11+
12+
```bash
13+
pip install openai-swarm
14+
```
15+
916
## Agent code
1017
You can view the agent code [here](sample_tests/swarm/capital_finder_agent/capital_finder_agent.py).
1118

1219
This can be invoked as:
1320

1421
```python
15-
from invariant.testing import SwarmWrapper
22+
from invariant.wrappers.swarm_wrapper import SwarmWrapper
1623
from swarm import Swarm
1724

1825
from .capital_finder_agent import create_agent

0 commit comments

Comments
 (0)