I want to have constant flows, which are always called in any circumstances, without reasoning about whether to execute those flows or not, I don’t want to instruct the agent in the prompt to call those methods, I want them to be called at every time the exact order.
As an example: I want to have a structured output from my first task, then I want to pass only a specific field of that structured output to my second sequential task instead of all the fields or the entire output of the first task, so I need a little script that will take the first tasks’ output and return only a specific field from it. If I can put a script like this between those two tasks, I can control the input of the second task as desired. Also, I don’t want to create two separate crews with those two tasks because I want those two tasks to be able to communicate with each other through their respective agents, so they should be in the same crew.
Can somebody help me, how can I achieve this? Basically, I want to integrate simple Python scripts to my workflow, without using agentic reasoning for deterministic flow orders.