MCPcopy Create free account
hub / github.com/Qinbf/groundmap / gatherAssistantText

Function gatherAssistantText

tools/debug-console/lib/agent-loop.ts:58–63  ·  view source on GitHub ↗
(msgs: ChatMessage[])

Source from the content-addressed store, hash-verified

56}
57
58function gatherAssistantText(msgs: ChatMessage[]): string {
59 return msgs
60 .filter((m) => m.role === "assistant" && m.text)
61 .map((m) => m.text || "")
62 .join("\n");
63}
64
65export async function* runAgent(
66 input: AgentRunInput,

Callers 2

finalizeWithoutToolsFunction · 0.85
runAgentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected