Passing data between tasks and debugging

I’m a little confused what is passed between tasks and how to refer to the data in subsequent tasks. I read up on context but I’m not sure if I need to refer to it in my prompt ({context}) or just use natural language to refer to it?

Lets say task one returns a list of “research topics” and task 2 is supposed to select from that list, what is the best way in task 2 to refer to the list? Also how can I debug what is being passed at runtime to task 2?

The output of task 1 is the input of task 2. You refer to it in natural language. In your example, if the output of task 1 is a JSON object with research topics, in task 2 you say something like “Write summaries of the research topics in the JSON object.”

To debug what’s being passed in, set an output_file on the tasks and manually inspect the contents. I don’t think you can do it any other way right now.