MCPcopy Create free account
hub / github.com/apache/maka / graphMessages

Function graphMessages

packages/cli/src/__tests__/runtime-host-run-command.test.ts:956–991  ·  view source on GitHub ↗
(includeTerminal = true)

Source from the content-addressed store, hash-verified

954}
955
956function 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
993function multiWakeGraphMessages(includeFinalTerminal: boolean): StoredMessage[] {
994 const messages = [

Callers 3

runFixtureFunction · 0.85
multiWakeGraphMessagesFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected