Add page data delivery and publication guards
This commit is contained in:
@@ -104,10 +104,10 @@ test('runMemoryV2SessionFlowCli passes against a mocked live session flow', asyn
|
||||
if (url.endsWith('/api/agent/start')) {
|
||||
return jsonResponse({ id: 'session-1' });
|
||||
}
|
||||
if (url.endsWith('/api/sessions/session-1/events')) {
|
||||
if (url.endsWith('/api/agent/runs/run-1/events')) {
|
||||
return sseResponse([
|
||||
'id: 1\ndata: {"type":"Message","message":{"role":"assistant","content":[{"type":"text","text":"hi"}],"metadata":{"userVisible":true}}}\n\n',
|
||||
'id: 2\ndata: {"type":"Finish","reason":"stop"}\n\n',
|
||||
'event: run\ndata: {"run":{"id":"run-1","status":"running","agent_session_id":"session-1"}}\n\n',
|
||||
'event: run\ndata: {"run":{"id":"run-1","status":"succeeded","agent_session_id":"session-1"}}\n\n',
|
||||
]);
|
||||
}
|
||||
if (url.endsWith('/api/agent/runs')) {
|
||||
|
||||
Reference in New Issue
Block a user