|
@@ -402,6 +402,11 @@ describe('Trajectory conversation Definitions', () => {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('keeps parallel roots, raw Tool facts, and mixed-ID PTC dispatch results', () => {
|
|
it('keeps parallel roots, raw Tool facts, and mixed-ID PTC dispatch results', () => {
|
|
|
|
|
+ const error = {
|
|
|
|
|
+ name: 'AutoReviewDeniedError',
|
|
|
|
|
+ code: 'AUTO_REVIEW_DENIED',
|
|
|
|
|
+ reason: ' raw\r\nreason ',
|
|
|
|
|
+ }
|
|
|
const current = snapshot(assembler([
|
|
const current = snapshot(assembler([
|
|
|
at(1, 'turn/start', { turn: 1 }),
|
|
at(1, 'turn/start', { turn: 1 }),
|
|
|
at(2, 'step/start', { turn: 1, step: 1 }),
|
|
at(2, 'step/start', { turn: 1, step: 1 }),
|
|
@@ -433,7 +438,7 @@ describe('Trajectory conversation Definitions', () => {
|
|
|
at(8, 'tool/ptc-dispatch', {
|
|
at(8, 'tool/ptc-dispatch', {
|
|
|
rootCallId: 'root-a', parentCallId: 'root-b:code:1', subCallId: 'root-b:ptc:2',
|
|
rootCallId: 'root-a', parentCallId: 'root-b:code:1', subCallId: 'root-b:ptc:2',
|
|
|
name: 'read', arguments: { file_path: 'nested.txt' },
|
|
name: 'read', arguments: { file_path: 'nested.txt' },
|
|
|
- isError: false, content: [{ type: 'text', text: 'nested contents' }],
|
|
|
|
|
|
|
+ isError: true, error, content: [{ type: 'text', text: 'not executed' }],
|
|
|
}),
|
|
}),
|
|
|
at(9, 'tool/result', {
|
|
at(9, 'tool/result', {
|
|
|
turn: 1,
|
|
turn: 1,
|
|
@@ -469,7 +474,8 @@ describe('Trajectory conversation Definitions', () => {
|
|
|
kind: 'tool-result', callId: 'root-b:code:1', parentCallId: 'root-a', call: { name: 'read' },
|
|
kind: 'tool-result', callId: 'root-b:code:1', parentCallId: 'root-a', call: { name: 'read' },
|
|
|
subCalls: [{
|
|
subCalls: [{
|
|
|
kind: 'tool-result', callId: 'root-b:ptc:2', parentCallId: 'root-b:code:1',
|
|
kind: 'tool-result', callId: 'root-b:ptc:2', parentCallId: 'root-b:code:1',
|
|
|
- callTime: 1_700_000_000_007, content: [{ type: 'text', text: 'nested contents' }], subCalls: [],
|
|
|
|
|
|
|
+ callTime: 1_700_000_000_007, content: [{ type: 'text', text: 'not executed' }],
|
|
|
|
|
+ isError: true, error, subCalls: [],
|
|
|
}],
|
|
}],
|
|
|
}],
|
|
}],
|
|
|
})
|
|
})
|