feat: refactor sgclaw around zeroclaw compat runtime
This commit is contained in:
BIN
third_party/zeroclaw/tests/fixtures/hello.mp3
vendored
Normal file
BIN
third_party/zeroclaw/tests/fixtures/hello.mp3
vendored
Normal file
Binary file not shown.
22
third_party/zeroclaw/tests/fixtures/test_document.pdf
vendored
Normal file
22
third_party/zeroclaw/tests/fixtures/test_document.pdf
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
%PDF-1.4
|
||||
%âãÏÓ
|
||||
1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj
|
||||
2 0 obj<</Type/Pages/Kids[3 0 R]/Count 1>>endobj
|
||||
3 0 obj<</Type/Page/MediaBox[0 0 612 792]/Parent 2 0 R/Contents 5 0 R/Resources<</Font<</F1 4 0 R>>>>>>endobj
|
||||
4 0 obj<</Type/Font/Subtype/Type1/BaseFont/Helvetica>>endobj
|
||||
5 0 obj<</Length 41>>stream
|
||||
BT /F1 24 Tf 100 700 Td (Hello PDF) Tj ET
|
||||
endstream
|
||||
endobj
|
||||
xref
|
||||
0 6
|
||||
0000000000 65535 f
|
||||
0000000015 00000 n
|
||||
0000000058 00000 n
|
||||
0000000107 00000 n
|
||||
0000000217 00000 n
|
||||
0000000278 00000 n
|
||||
trailer<</Size 6/Root 1 0 R>>
|
||||
startxref
|
||||
365
|
||||
%%EOF
|
||||
BIN
third_party/zeroclaw/tests/fixtures/test_photo.jpg
vendored
Normal file
BIN
third_party/zeroclaw/tests/fixtures/test_photo.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 159 B |
66
third_party/zeroclaw/tests/fixtures/traces/multi_tool_chain.json
vendored
Normal file
66
third_party/zeroclaw/tests/fixtures/traces/multi_tool_chain.json
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"model_name": "test-multi-tool-chain",
|
||||
"turns": [
|
||||
{
|
||||
"user_input": "Echo three messages in sequence",
|
||||
"steps": [
|
||||
{
|
||||
"response": {
|
||||
"type": "tool_calls",
|
||||
"tool_calls": [
|
||||
{
|
||||
"id": "call_1",
|
||||
"name": "echo",
|
||||
"arguments": {"message": "first"}
|
||||
}
|
||||
],
|
||||
"input_tokens": 30,
|
||||
"output_tokens": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"response": {
|
||||
"type": "tool_calls",
|
||||
"tool_calls": [
|
||||
{
|
||||
"id": "call_2",
|
||||
"name": "echo",
|
||||
"arguments": {"message": "second"}
|
||||
}
|
||||
],
|
||||
"input_tokens": 60,
|
||||
"output_tokens": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"response": {
|
||||
"type": "tool_calls",
|
||||
"tool_calls": [
|
||||
{
|
||||
"id": "call_3",
|
||||
"name": "echo",
|
||||
"arguments": {"message": "third"}
|
||||
}
|
||||
],
|
||||
"input_tokens": 90,
|
||||
"output_tokens": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"response": {
|
||||
"type": "text",
|
||||
"content": "I echoed three messages: first, second, and third.",
|
||||
"input_tokens": 120,
|
||||
"output_tokens": 20
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"expects": {
|
||||
"response_contains": ["first", "second", "third"],
|
||||
"tools_used": ["echo"],
|
||||
"max_tool_calls": 3,
|
||||
"all_tools_succeeded": true
|
||||
}
|
||||
}
|
||||
38
third_party/zeroclaw/tests/fixtures/traces/single_tool_echo.json
vendored
Normal file
38
third_party/zeroclaw/tests/fixtures/traces/single_tool_echo.json
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"model_name": "test-single-tool-echo",
|
||||
"turns": [
|
||||
{
|
||||
"user_input": "Echo hello for me",
|
||||
"steps": [
|
||||
{
|
||||
"response": {
|
||||
"type": "tool_calls",
|
||||
"tool_calls": [
|
||||
{
|
||||
"id": "call_1",
|
||||
"name": "echo",
|
||||
"arguments": {"message": "hello"}
|
||||
}
|
||||
],
|
||||
"input_tokens": 30,
|
||||
"output_tokens": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"response": {
|
||||
"type": "text",
|
||||
"content": "The echo tool said: hello",
|
||||
"input_tokens": 50,
|
||||
"output_tokens": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"expects": {
|
||||
"response_contains": ["hello"],
|
||||
"tools_used": ["echo"],
|
||||
"max_tool_calls": 1,
|
||||
"all_tools_succeeded": true
|
||||
}
|
||||
}
|
||||
24
third_party/zeroclaw/tests/fixtures/traces/smoke_greeting.json
vendored
Normal file
24
third_party/zeroclaw/tests/fixtures/traces/smoke_greeting.json
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"model_name": "test-smoke-greeting",
|
||||
"turns": [
|
||||
{
|
||||
"user_input": "Hello, how are you?",
|
||||
"steps": [
|
||||
{
|
||||
"response": {
|
||||
"type": "text",
|
||||
"content": "Hello! I'm doing well, thank you for asking. How can I help you today?",
|
||||
"input_tokens": 20,
|
||||
"output_tokens": 15
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"expects": {
|
||||
"response_contains": ["Hello"],
|
||||
"response_not_contains": ["error", "ERROR"],
|
||||
"tools_used": [],
|
||||
"max_tool_calls": 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user