MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / lastOf

Function lastOf

e2e/src/clients/replay-brain.ts:120–121  ·  view source on GitHub ↗
(role: string)

Source from the content-addressed store, hash-verified

118 served.push({ messages, toolNames });
119
120 const lastOf = (role: string) =>
121 [...messages].reverse().find((message) => message.role === role)?.content;
122
123 let scripted: BrainResponse;
124 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: a throwing script must surface as a recorded error + a stop response, not a hung agent

Callers 1

serveReplayBrainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected