Skip to content

Update params - #280

Open
ianardee wants to merge 3 commits into
mainfrom
update-params
Open

ianardee wants to merge 3 commits into
mainfrom
update-params

Conversation

@ianardee

@ianardee ianardee commented Nov 6, 2026

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.

🟡 Changes recommended

Enqueue requests fail because the multipart hash uses symbol field names and incorrectly structures file uploads; string-named tuples with a three-element file tuple are required.

1 open issue
What changed in this PR

This PR standardizes V2 search and extraction parameters as symbol-keyed hashes and updates the HTTP enqueue path to consume the shared request_parameters interface.

Changes:

  • Replace product form-data mutation with parameter hashes.
  • Align search parameters, type signatures, and documentation with symbol keys.
  • Add tests for search and extraction parameter serialization.
File Description
spec/​v2/​search/​rag_document_search_spec.rb Tests RAG document request parameters.
spec/​v2/​search/​model_search_spec.rb Tests model search request parameters.
spec/​v2/​product/​extraction/​extraction_parameter_spec.rb Tests extraction parameter serialization.
sig/​mindee/​v2/​search/​rag_documents/​rag_document_search_parameters.rbs Declares symbol-keyed search parameters.
sig/​mindee/​v2/​search/​models/​model_search_parameters.rbs Declares symbol-keyed model parameters.
sig/​mindee/​v2/​product/​extraction/​params/​extraction_parameters.rbs Replaces the form-data method signature.
sig/​mindee/​v2/​http/​mindee_api_v2.rbs Updates the request-parameter interface.
sig/​mindee/​v2/​client_options/​base_search_parameters.rbs Updates the base search return type.
sig/​mindee/​v2/​client_options/​base_product_parameters.rbs Declares the new product parameter method.
lib/​mindee/​v2/​search/​rag_documents/​rag_document_search_parameters.rb Uses symbol keys for document filters.
lib/​mindee/​v2/​search/​models/​model_search_parameters.rb Uses symbol keys for model filters.
lib/​mindee/​v2/​product/​extraction/​params/​extraction_parameters.rb Returns extraction options as a hash.
lib/​mindee/​v2/​http/​mindee_api_v2.rb Builds enqueue data from parameter hashes.
lib/​mindee/​v2/​client_options/​base_search_parameters.rb Uses symbol keys for pagination.
lib/​mindee/​v2/​client_options/​base_product_parameters.rb Returns shared product parameters as a hash.

Review effort: Balanced

Comment thread lib/mindee/v2/http/mindee_api_v2.rb Resolved

This branch has not been deployed

No deployments
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