Open History to see the last commit
1import { test, expect } from './fixtures'
2
3/** See `api.byteplus-encrypted-reasoning-wire.ts` for the scripted stream. */
4test.describe('byteplus — encrypted reasoning on the wire', () => {
5 test('encrypted_content names a reasoning message the client can find', async ({
6 request,
7 }) => {
8 const response = await request.post(
9 '/api/byteplus-encrypted-reasoning-wire',
10 )
11 expect(response.ok()).toBe(true)
12 const { reasoningIds, entityIds } = (await response.json()) as {
13 reasoningIds: Array<string>
14 entityIds: Array<string>
15 }
16
17 expect(entityIds).toHaveLength(1)
18 // An AG-UI client attaches the value to the message with this id.
19 expect(reasoningIds).toContain(entityIds[0])
20 })
21})