Skip to content

bmel:min-inline-of

Category: Math · Returns: bmel:number

Signature
bmel:min-inline-of(values...: bmel:number)

Description

Returns the minimum value from two or more inline numeric arguments. Unlike bmel:min-of which operates on an array source, this function accepts individual scalar values directly — useful for comparing a fixed set of fields without needing a typed array column.

Variadic function

Accepts a variable number of arguments of the same type.

Arguments

Parameter Type Required Description
values ... bmel:number Two or more numeric values to compare. Returns the smallest.

Examples

Smaller of input and output tokens
bmel:min-inline-of({invokeAgent:Response Payload}.$.usage.prompt_tokens, {invokeAgent:Response Payload}.$.usage.completion_tokens)
Lowest of three quality scores
bmel:min-inline-of({invokeAgent:Response Payload}.$.scores.relevance, {invokeAgent:Response Payload}.$.scores.accuracy, {invokeAgent:Response Payload}.$.scores.tone)

← Back to BMEL Reference