Skip to content

bmel:first

Category: Array & Statistics · Returns: bmel:any

Signature
bmel:first(array: bmel:array)

Description

Returns the first element of an array.

Arguments

Parameter Type Required Description
array bmel:array The source array.

Examples

Model of the first LLM call of a run
bmel:first({createChatCompletion:Response Payload[]}.$.model)
First item of the order
bmel:first({getOrder:Response Payload}.$.items)

← Back to BMEL Reference