-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support abortion of tool execution #3272
Comments
Would you want to use the same abort signal that we use for the main request? we could add it as an optional parameter to the tools, then you could use it in the tool implementation. alternatively you can use the abort signal from the closure when you create the tool |
I think using the same abort signal I passed to |
Yeah, something like this would be cool :
|
Thanks, good job as always! |
I've gave it a try, and get the following type error:
|
Feature Description
Let's say I have a web search tool, it sends out an HTTP request to do a web search when it's executed.
Now I really wish I had a way to stop search requests in
web_search
when an abort happens, but it seems like there's no way to do it right now.The text was updated successfully, but these errors were encountered: