How would we add progress to a long-running tool call #97
Replies: 4 comments 3 replies
-
I think it’s still designed to run within a single agent step but I could be wrong, not totally sure what’s possible. Want to give a little more detail of the control flow you have in mind or use case? 🤔 cc @peterkeppert |
Beta Was this translation helpful? Give feedback.
-
This is correct, present intended purpose of background task is to display progress of activities between user's request and the following AI response. I assumed that all such background tasks have to complete before the AI produces an answer, because their result is a required input for answering. However, I am also curious about the use case. |
Beta Was this translation helpful? Give feedback.
-
Use case is I have tool calls that can take a few minutes and have a few large steps - think for example scraping a web site with multiple pages with some post-processing afterwards (e.g. extracting information). It would be good to let the user know we're at step 2/5, etc... |
Beta Was this translation helpful? Give feedback.
-
I think this hasn't been added yet, so I'll create an issue to support Tool Calls with steps or sub-tasks. |
Beta Was this translation helpful? Give feedback.
-
With the new Background Task support, where you can have a long-running task updating progress, I am wondering what's the right way to do the same with a long-running Tool call with multiple steps?
Beta Was this translation helpful? Give feedback.
All reactions