MCPcopy Create free account
hub / github.com/Effect-TS/effect / text

Method text

packages/ai/ai/src/LanguageModel.ts:298–306  ·  view source on GitHub ↗

* Extracts and concatenates all text parts from the response.

()

Source from the content-addressed store, hash-verified

296 * Extracts and concatenates all text parts from the response.
297 */
298 get text(): string {
299 const text: Array<string> = []
300 for (const part of this.content) {
301 if (part.type === "text") {
302 text.push(part.text)
303 }
304 }
305 return text.join("")
306 }
307
308 /**
309 * 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