thesurlydev / spring-ai-collab

An agent framework using Spring AI
Apache License 2.0
38 stars 11 forks source link

How to Pass Output from One Task to the Next in SequentialFlow? #5

Open a616101 opened 1 week ago

a616101 commented 1 week ago

Hi, I noticed there's a SequentialFlow class in the code. Following the usage patterns for this class, I've created multiple tasks, and it seems that they execute in sequence as expected. However, I’m unsure how to pass the result of the first task (or its tool) as an input parameter to the next task. Could you advise on the best way to achieve this?

thesurlydev commented 1 week ago

@a616101 This feature still needs to be implemented. Note that much of this framework was created in the early days of Spring AI (pre-1.0.0) and I paused adding more features until Spring AI was further along. That being said, I'm happy to accept pull requests :)