test(x/renderer): string request refs in session-chat fixtures

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Ramnique Singh 2026-07-02 13:17:43 +05:30
parent 32e02d588c
commit 0042dde3bb
2 changed files with 3 additions and 9 deletions

View file

@ -46,16 +46,10 @@ export function created(
}
}
type RequestRef =
| { kind: 'context' }
| { kind: 'input' }
| { kind: 'assistant'; modelCallIndex: number }
| { kind: 'toolResult'; toolCallId: string }
export function requested(
turnId: string,
index: number,
refs: RequestRef[] = [{ kind: 'input' }],
refs: string[] = ['input'],
): TEvent {
return {
type: 'model_call_requested',

View file

@ -92,8 +92,8 @@ describe('buildTurnConversation', () => {
invocation(T1, 'tc1', 'echo'),
toolResult(T1, 'tc1', 'echo', { echoed: true }),
requested(T1, 1, [
{ kind: 'assistant', modelCallIndex: 0 },
{ kind: 'toolResult', toolCallId: 'tc1' },
'assistant:0',
'toolResult:tc1',
]),
completed(T1, 1, assistantText('all done')),
turnCompleted(T1, 'all done'),