bmel:last¶
Category: Array & Statistics · Returns: bmel:any
Signature
bmel:last(array: bmel:array)
Description¶
Returns the last element of an array.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
array | bmel:array | The source array. |
Examples¶
Finish reason of the last LLM call
bmel:last({createChatCompletion:Response Payload[]}.$.choices.finish_reason)
Last item added to the order
bmel:last({getOrder:Response Payload}.$.items)