Skip to content

Commit c6484e3

Browse files
fix links
1 parent 894f66c commit c6484e3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

docs/testing/Examples/swarm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ invariant test test.py
7272

7373
When running with `--push` you will also be able to inspect your test results in [Explorer](https://explorer.invariantlabs.ai).
7474

75-
<img src="/testing/Examples/swarm-explorer.png"
75+
<img src="/docs/testing/Examples/swarm-explorer.png"
7676
alt="OpenAI Swarm agent testing"
7777
style="width: 200% !important;">
7878

@@ -209,12 +209,12 @@ If you want to continue exploring, you can read some of the following chapters n
209209

210210
<div class='tiles'>
211211

212-
<a href="/testing/Writing_Tests/Matchers" class='tile primary'>
212+
<a href="/docs/testing/Writing_Tests/Matchers" class='tile primary'>
213213
<span class='tile-title'>Matchers →</span>
214214
<span class='tile-description'>Learn more about Matchers to write assertions</span>
215215
</a>
216216

217-
<a href="/testing/Writing_Tests/parameterized-tests/" class='tile primary'>
217+
<a href="/docs/testing/Writing_Tests/parameterized-tests/" class='tile primary'>
218218
<span class='tile-title'>Paremeterized Tests →</span>
219219
<span class='tile-description'>Learn how to parameterize your tests for more robust testing</span>
220220
</a>

docs/testing/Writing_Tests/Integrate_Your_Agent.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
<div class='subtitle'>Get your agent ready for testing</div>
44

5-
`testing` works with a simple yet powerful trace format as the common denominator for testing agents.
5+
`testing` works with a simple yet powerful trace format as the common denominator for testing agents.
66

77
This trace format is a list of dictionaries, where each dictionary represents a message in the conversation. It is equivalent to the [OpenAI chat format](https://platform.openai.com/docs/api-reference/chat/create).
88

99
Each message has a `role` key that specifies the role of the speaker (e.g., `user` or `assistant`) and a `content` key that contains the message content.
1010

1111
```json
1212
{
13-
"role": "user",
13+
"role": "user",
1414
"content": "Hello there"
1515
},
1616
{
17-
"role": "assistant",
18-
"content": "Hello there",
17+
"role": "assistant",
18+
"content": "Hello there",
1919
"tool_calls": [
2020
{
2121
"type": "function",
@@ -29,35 +29,35 @@ Each message has a `role` key that specifies the role of the speaker (e.g., `use
2929
]
3030
},
3131
{
32-
"role": "user",
32+
"role": "user",
3333
"content": "I need help with something."
3434
}
3535
```
3636

37-
Based on this simple format, it is easy to integrate your agent with Invariant `testing`.
37+
Based on this simple format, it is easy to integrate your agent with Invariant `testing`.
3838

3939
> **Extended Format Support** `testing` also supports additional custom properties in the trace format, e.g. for metadata. Note, however, that convenience methods like `Trace.tool_calls()` assume the standard format. Similarly, if you are planning to visualize the trace in [Explorer](/explorer/), we advise you to stick to the standard format.
4040
4141
To learn about how to do this, follow one of the example guides below:
4242

4343
<div class='tiles'>
4444

45-
<a href="/testing/Examples/computer-use/" class='tile primary'>
45+
<a href="/docs/testing/Examples/computer-use/" class='tile primary'>
4646
<span class='tile-title'>Computer Use Agents →</span>
4747
<span class='tile-description'>Integrate your computer use agent with Invariant <code>testing</code></span>
4848
</a>
4949

50-
<a href="/testing/Examples/langgraph/" class='tile primary'>
50+
<a href="/docs/testing/Examples/langgraph/" class='tile primary'>
5151
<span class='tile-title'>LangGraph Agents →</span>
5252
<span class='tile-description'>Test your LangGraph agent with <code>testing</code></span>
5353
</a>
5454

55-
<a href="/testing/Examples/openai-python-agent/" class='tile'>
55+
<a href="/docs/testing/Examples/openai-python-agent/" class='tile'>
5656
<span class='tile-title'>Function Calling Agents →</span>
5757
<span class='tile-description'>Integrate your agent with Invariant <code>testing</code> using function calls</span>
5858
</a>
5959

60-
<a href="/testing/Examples/swarm/" class='tile'>
60+
<a href="/docs/testing/Examples/swarm/" class='tile'>
6161
<span class='tile-title'>Swarm Agents →</span>
6262
<span class='tile-description'>Test your swarm agent with Invariant <code>testing</code></span>
6363
</a>

0 commit comments

Comments
 (0)