MCPcopy Create free account
hub / github.com/Noumena-Network/code / summarizeText

Function summarizeText

src/tools/WorkflowTool/WorkflowTool.ts:165–176  ·  view source on GitHub ↗
(text: string | undefined)

Source from the content-addressed store, hash-verified

163}
164
165function summarizeText(text: string | undefined): string | undefined {
166 if (!text) {
167 return undefined
168 }
169 const normalized = text.replace(/\s+/g, ' ').trim()
170 if (!normalized) {
171 return undefined
172 }
173 return normalized.length > 280
174 ? `${normalized.slice(0, 277).trimEnd()}...`
175 : normalized
176}
177
178function resolveWorkflowAgents(
179 inputAgents: WorkflowAgentInput[],

Callers 1

runWorkflowAgentTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected