(includeTerminal = true)
| 954 | } |
| 955 | |
| 956 | function graphMessages(includeTerminal = true): StoredMessage[] { |
| 957 | const messages: StoredMessage[] = [ |
| 958 | { |
| 959 | type: 'user', |
| 960 | id: 'user-turn-2', |
| 961 | turnId: 'turn-2', |
| 962 | ts: 3, |
| 963 | text: 'Graph wake', |
| 964 | origin: { |
| 965 | kind: 'agent_graph', |
| 966 | graphId: 'graph-1', |
| 967 | wakeId: 'wake-1', |
| 968 | attemptId: 'attempt-1', |
| 969 | }, |
| 970 | }, |
| 971 | { |
| 972 | type: 'assistant', |
| 973 | id: 'assistant-turn-2', |
| 974 | turnId: 'turn-2', |
| 975 | ts: 4, |
| 976 | text: 'Final graph answer', |
| 977 | modelId: 'gpt-5', |
| 978 | }, |
| 979 | ]; |
| 980 | if (includeTerminal) { |
| 981 | messages.push({ |
| 982 | type: 'turn_state', |
| 983 | id: 'state-turn-2', |
| 984 | turnId: 'turn-2', |
| 985 | ts: 5, |
| 986 | status: 'completed', |
| 987 | partialOutputRetained: false, |
| 988 | }); |
| 989 | } |
| 990 | return messages; |
| 991 | } |
| 992 | |
| 993 | function multiWakeGraphMessages(includeFinalTerminal: boolean): StoredMessage[] { |
| 994 | const messages = [ |
no test coverage detected