Skip to content

Conversation

@thisisnic
Copy link
Contributor

Fixes #899 - optional types (required = FALSE) in structured data extraction would return explanatory text instead of NULL when the requested information was not available in the conversation, when using Claude.

It's >90% Claude but with lots of updated instructions from me to get to this version, and some tweaks.

@thisisnic
Copy link
Contributor Author

I ran the tests for the Claude provider specifically locally, and they passed. This PR fails on CI when re-rendering vignettes which require both Claude and OpenAI as I don't have an OpenAI API key so couldn't update the cassette locally.

@thisisnic thisisnic marked this pull request as draft December 5, 2025 11:04
@thisisnic
Copy link
Contributor Author

Converting to draft as it returns NULL in some cases where NA would be better

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.

Structured output - Claude's handling of optional required=FALSE types always returns a string if value is unknown

1 participant