Skip to content

docs(rfd): Add RFD 068 forced tool retry without reasoning#485

Merged
JeanMertz merged 1 commit intomainfrom
prr56
Mar 26, 2026
Merged

docs(rfd): Add RFD 068 forced tool retry without reasoning#485
JeanMertz merged 1 commit intomainfrom
prr56

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

Adds RFD 068, which proposes a mechanism to automatically retry a forced tool call with reasoning disabled when the model ignores a soft-force directive.

Anthropic's API doesn't support tool_choice with extended thinking enabled. JP works around this with a soft-force via a system prompt, but the model occasionally ignores it and responds with text. The RFD designs a turn-loop-level retry that keeps the conversation context intact, disables reasoning for the second attempt, and applies the original tool_choice so the real API parameter is honoured.

Adds RFD 068, which proposes a mechanism to automatically retry a forced
tool call with reasoning disabled when the model ignores a soft-force
directive.

Anthropic's API doesn't support `tool_choice` with extended thinking
enabled. JP works around this with a soft-force via a system prompt, but
the model occasionally ignores it and responds with text. The RFD
designs a turn-loop-level retry that keeps the conversation context
intact, disables reasoning for the second attempt, and applies the
original `tool_choice` so the real API parameter is honoured.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit f4fad50 into main Mar 26, 2026
12 checks passed
@JeanMertz JeanMertz deleted the prr56 branch March 26, 2026 23:35
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.

1 participant