Skip to content

✨ pass text context to chained model - #231

Merged
ianardee merged 1 commit into
mainfrom
text-context
Nov 24, 2026
Merged

ianardee merged 1 commit into
mainfrom
text-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 are reported for the optional chained-extraction text context change.

No open issues 🎉

What changed in this PR

Adds optional text context for extraction models chained from V2 Classification, Crop, and Split products, while preserving existing constructor calls.

Changes:

  • Introduces shared parameters that serialize non-null context as extraction_text_context.
  • Exposes the option on all three utility products and adds serialization and type-validation tests.
  • Adds agent workflow guidance and ignores .junie files.
File Description
tests/​V2/​ClientOptions/​BaseClassificationProductParametersTest.php Tests context serialization, empty and null values, and rejection of non-string input.
src/​V2/​Product/​Split/​Params/​SplitParameters.php Adds optional chained-extraction context to Split parameters.
src/​V2/​Product/​Crop/​Params/​CropParameters.php Adds optional chained-extraction context to Crop parameters.
src/​V2/​Product/​Classification/​Params/​ClassificationParameters.php Adds optional chained-extraction context to Classification parameters.
src/​V2/​ClientOptions/​BaseClassificationProductParameters.php Centralizes context storage and request serialization.
AGENTS.md Documents release and Git workflow guidance for agents.
.gitignore Ignores .junie tooling files.

Review effort: Balanced

@ianardee
ianardee merged commit ab80321 into main Nov 24, 2026
142 of 149 checks passed
@ianardee
ianardee deleted the text-context branch November 24, 2026 15:46
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