feat: refactor sgclaw around zeroclaw compat runtime

This commit is contained in:
zyl
2026-03-26 16:23:31 +08:00
parent bca5b75801
commit ff0771a83f
1059 changed files with 409460 additions and 23 deletions

Binary file not shown.

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

View 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
}
}

View 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
}
}

View 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
}
}