mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-12 21:02:17 +02:00
test(x/renderer): string request refs in session-chat fixtures
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
32e02d588c
commit
0042dde3bb
2 changed files with 3 additions and 9 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue