dry-branch-55698
09/12/2025, 12:30 AMtall-airline-16756
09/12/2025, 12:30 AMtall-airline-16756
09/12/2025, 12:30 AMlk agent delete
command to stop the agent permanently. Just a heads-up, this action can’t be undone, so you’d need to recreate the agent if you want to use it again later.
• Restart the agent: The lk agent restart
command lets you temporarily interrupt and then resume the agent’s operation. While this doesn’t fully stop the agent, it might be a useful workaround for your needs.
• Stop specific responses: If your goal is to prevent the agent from generating more replies during a session, you could programmatically raise a StopResponse
exception in your agent code. This approach won’t affect the overall service.
If you have any other questions or a particular scenario you’re working with, please don’t hesitate to share! I’m here to help you find the best solution.
Sources: cmd/lk/agent.go | Docs::Agents