sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

[FEATURE] Ability to cancel agent futures

Open 0bx opened this issue 6 months ago • 4 comments

Problem Statement

Is there a way to cancel all futures of the Agent class in response to KeyboardInterrupt events? Seems like after runing the agent("promtp") the main thread is blocked and responds after certain workflow phases only.

Proposed Solution

No response

Use Case

This is concerning developing CLI based agents and using Ollama models that take some time to respond.

Alternatives Solutions

No response

Additional Context

No response

0bx avatar Jul 20 '25 09:07 0bx