mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-15 16:03:02 +00:00
* test: improve global chat eval parity * test: add human-style global chat evals
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"workspace": {
|
|
"flows": [
|
|
{
|
|
"path": "f/evals/global/process_invoice",
|
|
"summary": "Process an invoice subtotal",
|
|
"description": "Calculates invoice totals from a subtotal.",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"subtotal": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": ["subtotal"]
|
|
},
|
|
"value": {
|
|
"modules": [
|
|
{
|
|
"id": "calculate_total",
|
|
"summary": "Calculate total from subtotal",
|
|
"value": {
|
|
"type": "rawscript",
|
|
"language": "bun",
|
|
"content": "export async function main(subtotal: number) {\n return { subtotal, total: subtotal }\n}\n",
|
|
"input_transforms": {
|
|
"subtotal": {
|
|
"type": "javascript",
|
|
"expr": "flow_input.subtotal"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|