Vinicius Brasil
5bd10ee2c4
Add script/code block action to FlowDefinition ( #6197 )
...
* Add script/code blocks to FlowDefinition
Let a Flow method run trusted inline Python with `call: script`. The code
is compiled once into a generated function and receives the runtime
values as arguments.
```yaml
methods:
normalize:
start: true
do:
call: script
code: |
import math
state["rounded"] = math.ceil(state["raw_score"])
return f"rounded:{state['rounded']}"
```
Even though this shares the same surface of tools (custom code), I
decided to make it opt-in for now, using
`CREWAI_ALLOW_FLOW_SCRIPT_EXECUTION=1`.
* Address code review comments
2026-06-17 18:38:41 -07:00
..
2026-05-26 10:23:33 -07:00
2026-06-14 04:19:48 -03:00
2026-06-03 11:53:16 -07:00
2026-06-17 12:14:50 -03:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-06-10 18:39:05 -07:00
2026-05-28 09:38:10 -07:00
2026-05-26 10:23:33 -07:00
2026-06-14 04:19:48 -03:00
2026-06-14 04:19:48 -03:00
2026-05-27 13:38:25 -07:00
2026-06-17 12:14:50 -03:00
2025-11-29 16:55:24 -05:00
2026-06-16 18:45:26 -03:00
2026-06-14 04:19:48 -03:00
2026-05-26 10:23:33 -07:00
2026-05-28 09:38:10 -07:00
2026-02-13 21:34:37 -03:00
2026-05-04 18:42:12 +08:00
2026-06-15 09:34:01 -07:00
2026-06-02 17:14:51 -07:00
2026-06-03 11:53:16 -07:00
2026-06-16 11:00:07 -07:00
2025-10-20 14:10:19 -07:00
2026-03-15 18:33:17 -07:00
2026-06-14 04:19:48 -03:00
2026-05-26 10:23:33 -07:00
2026-05-06 20:46:46 +08:00
2026-06-17 18:38:41 -07:00
2026-01-22 17:44:03 -08:00
2026-05-27 13:20:53 -07:00
2025-10-20 14:10:19 -07:00
2026-06-17 12:14:50 -03:00
2026-05-26 10:23:33 -07:00
2026-06-10 16:12:28 -07:00
2026-05-26 10:23:33 -07:00
2026-06-10 16:49:16 -07:00
2026-05-26 10:23:33 -07:00
2026-06-17 18:38:41 -07:00
2026-06-17 18:38:41 -07:00
2026-05-26 10:23:33 -07:00
2026-01-23 15:13:25 -05:00
2026-06-08 21:14:13 -05:00
2026-05-26 10:23:33 -07:00
2025-10-20 14:10:19 -07:00
2026-06-12 12:55:22 -04:00
2026-06-11 14:18:49 -07:00
2026-06-11 14:18:49 -07:00
2026-04-28 14:57:49 +08:00
2025-10-20 14:10:19 -07:00
2026-06-14 04:19:48 -03:00
2026-06-14 04:19:48 -03:00
2025-10-20 14:10:19 -07:00
2026-06-05 07:23:38 -04:00
2026-06-14 04:19:48 -03:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2026-05-26 10:23:33 -07:00
2026-06-14 04:19:48 -03:00
2026-05-26 10:23:33 -07:00
2026-05-26 10:23:33 -07:00
2026-05-26 10:23:33 -07:00
2026-04-01 18:08:37 -03:00