MCPcopy
hub / github.com/Effect-TS/effect / text

Method text

packages/ai/ai/src/LanguageModel.ts:295–303  ·  view source on GitHub ↗

* Extracts and concatenates all text parts from the response.

()

Source from the content-addressed store, hash-verified

293 * Extracts and concatenates all text parts from the response.
294 */
295 get text(): string {
296 const text: Array<string> = []
297 for (const part of this.content) {
298 if (part.type === "text") {
299 text.push(part.text)
300 }
301 }
302 return text.join("")
303 }
304
305 /**
306 * Returns all reasoning parts from the response.

Callers 15

Prompt.test.tsFile · 0.45
Args.test.tsFile · 0.45
Command.test.tsFile · 0.45
Options.test.tsFile · 0.45
Wizard.test.tsFile · 0.45
CliApp.test.tsFile · 0.45
grep.tsFile · 0.45
handleBuiltInOptionFunction · 0.45
renderWizardArgsFunction · 0.45
h1Function · 0.45
h2Function · 0.45

Calls 1

joinMethod · 0.65

Tested by

no test coverage detected