Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / splitTextAndContentParts
Function: splitTextAndContentParts()
ts
function splitTextAndContentParts(envelope): {
nonText: readonly MessageContent[];
text: string;
textParts: readonly TextContent[];
};Defined in: packages/tools/src/result/envelope.ts:69
Split an envelope into its text-shaped payload (subject to the truncation pipeline + inbound sanitization scan) and its non-text content parts (passed through untouched).
Parameters
| Parameter | Type |
|---|---|
envelope | ResultEnvelope |
Returns
ts
{
nonText: readonly MessageContent[];
text: string;
textParts: readonly TextContent[];
}| Name | Type | Defined in |
|---|---|---|
nonText | readonly MessageContent[] | packages/tools/src/result/envelope.ts:71 |
text | string | packages/tools/src/result/envelope.ts:70 |
textParts | readonly TextContent[] | packages/tools/src/result/envelope.ts:72 |