Skip to content

Add ability to immediately terminate agent #2208

@malhotra5

Description

@malhotra5

Today we expose an API conversation.pause to stop the agent. However, this will wait for the agent to wrap up its work (mid llm response, tool call, etc) before returning control. This can take up to minutes nowadays (e.g when the LLM is performing a long reasoning for one llm response)

We want to expose an API conversation.interrupt to stop the agent immediately. It should return control immediately and cancel any mid-fight LLM completions or tool executions

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions