Skip to content

✨ pass text context to chained model - #367

Merged
ianardee merged 1 commit into
mainfrom
extraction-context
Nov 25, 2026
Merged

ianardee merged 1 commit into
mainfrom
extraction-context

Conversation

@ianardee

Copy link
Copy Markdown
Collaborator

Description

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the optional extraction text context changes.

No open issues 🎉

What changed in this PR

This PR lets the Java SDK’s classification, crop, and split products pass optional text context to a chained extraction model, while preserving existing constructors.

Changes:

  • Adds shared parameter and builder support for extraction_text_context.
  • Adds tests verifying that context is included when provided and omitted when unset.
  • Updates contributor guidance and removes trailing whitespace from Javadoc comments.
File Description
src/​test/​java/​com/​mindee/​v2/​product/​SplitTest.java Tests split parameters with and without extraction context.
src/​test/​java/​com/​mindee/​v2/​product/​CropTest.java Tests crop parameters with and without extraction context.
src/​test/​java/​com/​mindee/​v2/​product/​ClassificationTest.java Tests classification parameters with and without extraction context.
src/​main/​java/​com/​mindee/​v2/​product/​split/​params/​SplitParameters.java Adds extraction context through shared parameters and builder support.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedSimpleField.java Removes trailing whitespace from Javadoc.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedObjectField.java Removes trailing whitespace from Javadoc.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedListField.java Removes trailing whitespace from Javadoc.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​ragdocuments/​AnnotatedDynamicField.java Removes trailing whitespace from Javadoc.
src/​main/​java/​com/​mindee/​v2/​product/​crop/​params/​CropParameters.java Adds extraction context through shared parameters and builder support.
src/​main/​java/​com/​mindee/​v2/​product/​classification/​params/​ClassificationParameters.java Adds extraction context through shared parameters and builder support.
src/​main/​java/​com/​mindee/​v2/​clientoptions/​BaseClassificationProductParameters.java Defines shared context storage, builder setter, and request serialization.
AGENTS.md Adds code-conversion, linting, and builder-based testing guidance.

Review effort: Balanced

@ianardee
ianardee merged commit e711456 into main Nov 25, 2026
21 of 25 checks passed
@ianardee
ianardee deleted the extraction-context branch November 25, 2026 08:26
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