You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drive the Agent block through the executor with conversation memory on. The
memory read is stubbed per conversation id, so the provider request shows what
the handler assembled: prior history, then the new prompt, system prompt
preserved, correct conversation id. A wrong id surfaces as missing history and
fails (checked locally).
- agent-context/scenarios.ts: two context scenarios
- executor-harness.ts: memory seam + assembly/isolation checks
- test:evals:context script; README documents the suite
name: 'includes prior conversation memory before the new user prompt',
19
+
category: 'retrieval',
20
+
description:
21
+
'Memory holds two prior turns. The provider request must contain both, in order, followed by the new user prompt, with the system prompt present.',
22
+
workflowInput: {},
23
+
agent: {
24
+
model: 'gpt-4o',
25
+
systemPrompt: 'You are a helpful assistant.',
26
+
userPrompt: 'What is my name?',
27
+
memory: {
28
+
conversationId: 'conv-ada',
29
+
history: [
30
+
{role: 'user',content: 'My name is Ada.'},
31
+
{role: 'assistant',content: 'Nice to meet you, Ada.'},
32
+
],
33
+
},
34
+
},
35
+
providerResponse: {
36
+
content: 'Your name is Ada.',
37
+
tokens: {input: 30,output: 5,total: 35},
38
+
},
39
+
expect: {
40
+
succeeds: true,
41
+
finalContent: 'Ada',
42
+
},
43
+
},
44
+
{
45
+
id: 'context-isolates-conversations',
46
+
name: 'reads the conversation named by the block, not another',
47
+
category: 'retrieval',
48
+
description:
49
+
'The memory stub only returns history for the block conversation id; any other id yields a placeholder. A handler that passed the wrong id would surface the placeholder and fail.',
50
+
workflowInput: {},
51
+
agent: {
52
+
model: 'gpt-4o',
53
+
userPrompt: 'What did we decide?',
54
+
memory: {
55
+
conversationId: 'conv-b',
56
+
history: [
57
+
{role: 'user',content: 'We decided to ship on Friday.'},
0 commit comments