bmel:sentenceCount¶
Category: LLM & AI Observability · Returns: bmel:integer
bmel:sentenceCount(text: bmel:string)
Description¶
Returns the number of sentences in a string, detected by terminal punctuation (. ! ?). Useful for measuring response structure and complexity, and for comparing expected vs. actual output density in agentic session frames.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
text | bmel:string | ✅ | The text to count sentences in. |
Example¶
bmel:sentenceCount({chat:Response Payload}.$.content)