Skip to content

bmel:sizeof

Category: JSON · Returns: bmel:integer

Signature
bmel:sizeof(content: bmel:any)

Description

Calculates the byte size of the serialized representation of the given content.

Arguments

Parameter Type Required Description
content bmel:any The content to measure the byte size of.

Examples

Bytes of the messages sent to the model
bmel:sizeof({invokeAgent:Request Payload}.$.messages)
Bytes of the structured output
bmel:sizeof({invokeAgent:Response Payload}.$.output)
Attachments larger than 1 MB
bmel:sizeof({invokeAgent:Request Payload}.$.attachments) > 1048576

← Back to BMEL Reference