Skip to content

Add reason_code to Finish Conversation#134

Merged
Catchpowle merged 1 commit into
mainfrom
public-api-finish-reason-code
Jul 21, 2026
Merged

Add reason_code to Finish Conversation#134
Catchpowle merged 1 commit into
mainfrom
public-api-finish-reason-code

Conversation

@Catchpowle

Copy link
Copy Markdown
Contributor

Adds an optional reason_code field to FinishParams so callers of finish_conversation can pass a validated reason code (customer-ended-chat or customer-unresponsive) when finishing a conversation, alongside the existing free-text reason and timestamp. The field is keyword/optional with a default of None and is omitted from the JSON request body when unset, so existing calls are unaffected. Includes unit tests covering the new field being threaded into the body and omitted when unset.

Mirrors platform change gradientlabs-ai/wearegradient#30159 and docs gradientlabs-ai/docs#236.

🤖 Generated with Claude Code

Add an optional reason_code field to FinishParams so callers can pass a
validated reason code (customer-ended-chat, customer-unresponsive) when
finishing a conversation, alongside the existing free-text reason. It is
omitted from the request body when unset.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Catchpowle
Catchpowle merged commit 47df53e into main Jul 21, 2026
1 check passed
@Catchpowle
Catchpowle deleted the public-api-finish-reason-code branch July 21, 2026 13:30
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