Skip to content

feat(agent): add the ability to stop a turn and end the agent loop#203

Merged
meowgorithm merged 1 commit intomainfrom
stopturn
Apr 15, 2026
Merged

feat(agent): add the ability to stop a turn and end the agent loop#203
meowgorithm merged 1 commit intomainfrom
stopturn

Conversation

@meowgorithm
Copy link
Copy Markdown
Member

This revision adds the ability for to stop a turn and end the agent loop. Our practical reason for adding this is to give Crush the ability to stop a turn via a hook (see: charmbracelet/crush#2598).

resp := fantasy.NewTextErrorResponse("permission denied: this action is not allowed")
resp.StopTurn = true

@meowgorithm meowgorithm merged commit 61bc0b2 into main Apr 15, 2026
17 checks passed
@meowgorithm meowgorithm deleted the stopturn branch April 15, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants