* Extracts and concatenates all text parts from the response.
()
| 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. |
no test coverage detected