Skip to content

[FEATURE] Agent Framework: Support cancelling asynchronously executing agent #3885

Open
@pyek-bot

Description

@pyek-bot

Is your feature request related to a problem?
Agents can be executed asynchronously by providing async=True during agent execute. This runs the agent asynchronously in a task. This task needs to be polled for status of the execution.

Request: Support cancellation of an executing task

Use case: As agent execution steps are visible via the memory layer, if the agent is moving in the wrong direction to solve the task, I would like to cancel it to save on tokens/resources.

Recommend: Provide API to cancel task

This can be extended to support cancelling any running task and not just limited to the agent framework

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

On-deck

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions