Skip to content

feat(llm): support structured output in AnthropicLLM via response_format#530

Open
SAY-5 wants to merge 1 commit into
neo4j:mainfrom
SAY-5:feat/anthropic-structured-output
Open

feat(llm): support structured output in AnthropicLLM via response_format#530
SAY-5 wants to merge 1 commit into
neo4j:mainfrom
SAY-5:feat/anthropic-structured-output

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 19, 2026

Description

Closes #493. AnthropicLLM.invoke/ainvoke previously raised NotImplementedError for response_format; this adds structured output support so AnthropicLLM works alongside OpenAILLM and VertexAILLM. A Pydantic model is converted to a JSON schema and a passthrough dict is also accepted, both forwarded as Anthropic's output_config; behavior is unchanged when response_format is omitted. The issue is labelled help wanted and good first issue by the maintainers, and the request is "to add structured output support for AnthropicLLM alongside OpenAILLM and VertexLLM providers".

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Project configuration change

Complexity

Complexity: Low

How Has This Been Tested?

  • Unit tests
  • E2E tests
  • Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • Unit tests have been updated
  • E2E tests have been updated
  • Examples have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed
  • CHANGELOG.md updated if appropriate

@SAY-5 SAY-5 requested a review from a team as a code owner May 19, 2026 07: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.

[FEATURE]: Add Anthropic's Structured Output feature

1 participant