Skip to content

Commit 0398186

Browse files
committed
Add example fixture files
Greeting, tool call, multi-turn, and error response examples used by integration tests and as documentation for fixture format.
1 parent 448304b commit 0398186

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

fixtures/example-greeting.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"fixtures": [
3+
{
4+
"match": { "userMessage": "hello" },
5+
"response": { "content": "Hello! How can I help you today?" }
6+
},
7+
{
8+
"match": { "userMessage": "goodbye" },
9+
"response": { "content": "Goodbye! Have a great day!" }
10+
}
11+
]
12+
}

fixtures/example-multi-turn.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"fixtures": [
3+
{
4+
"match": { "userMessage": "change background to blue" },
5+
"response": {
6+
"toolCalls": [{ "name": "change_background", "arguments": "{\"background\":\"blue\"}" }]
7+
}
8+
},
9+
{
10+
"match": { "toolCallId": "call_background" },
11+
"response": { "content": "Done! I've changed the background." }
12+
}
13+
]
14+
}

fixtures/example-tool-call.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"fixtures": [
3+
{
4+
"match": { "toolName": "get_weather" },
5+
"response": {
6+
"toolCalls": [
7+
{
8+
"name": "get_weather",
9+
"arguments": "{\"location\":\"San Francisco\",\"unit\":\"fahrenheit\"}"
10+
}
11+
]
12+
}
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)