Skip to content

bmel:max-inline-of

Category: Math · Returns: bmel:number

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

Description

Returns the maximum value from two or more inline numeric arguments. Unlike bmel:max-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 largest.

Examples

Larger of input and output tokens
bmel:max-inline-of({invokeAgent:Response Payload}.$.usage.prompt_tokens, {invokeAgent:Response Payload}.$.usage.completion_tokens)
Worst of three latencies
bmel:max-inline-of({invokeAgent:Response Payload}.$.timings.queue_ms, {invokeAgent:Response Payload}.$.timings.model_ms, {invokeAgent:Response Payload}.$.timings.tools_ms)

← Back to BMEL Reference