If no tool result content, insert an empty json content #5796
Annotations
4 errors and 2 warnings
|
Run common ***s
Final attempt failed. Child_process exited with error code 1
|
|
Run common ***s:
common/src/util/__tests__/messages.test.ts#L270
[
- ObjectContaining {
+ {
"content": [
- ObjectContaining {
+ {
+ "content": [],
"output": {
"type": "json",
- "value": "(empty result)",
+ "value": "",
},
+ "role": "tool",
"toolCallId": "call_empty",
"toolName": "scraper_page_to_markdown",
"type": "tool-result",
},
],
"role": "tool",
+ "toolCallId": "call_empty",
+ "toolName": "scraper_page_to_markdown",
},
]
- Expected - 3
+ Received + 7
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:270:22)
|
|
Run common ***s:
common/src/util/__tests__/messages.test.ts#L270
[
- ObjectContaining {
+ {
"content": [
- ObjectContaining {
+ {
+ "content": [],
"output": {
"type": "json",
- "value": "(empty result)",
+ "value": "",
},
+ "role": "tool",
"toolCallId": "call_empty",
"toolName": "scraper_page_to_markdown",
"type": "tool-result",
},
],
"role": "tool",
+ "toolCallId": "call_empty",
+ "toolName": "scraper_page_to_markdown",
},
]
- Expected - 3
+ Received + 7
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:270:22)
|
|
Run common ***s:
common/src/util/__tests__/messages.test.ts#L270
[
- ObjectContaining {
+ {
"content": [
- ObjectContaining {
+ {
+ "content": [],
"output": {
"type": "json",
- "value": "(empty result)",
+ "value": "",
},
+ "role": "tool",
"toolCallId": "call_empty",
"toolName": "scraper_page_to_markdown",
"type": "tool-result",
},
],
"role": "tool",
+ "toolCallId": "call_empty",
+ "toolName": "scraper_page_to_markdown",
},
]
- Expected - 3
+ Received + 7
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:270:22)
|
|
Run common ***s
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
Run common ***s
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Loading