Skip to content

v0.3.1

Choose a tag to compare

@apstndb apstndb released this 20 Jul 09:14
e2312f8

Highlights

Typed GA AnswerQuery support

Client.AnswerQuery now provides typed access to the GA v1 grounded-answer endpoint. The response models include UTF-8 byte-indexed citations and document references that reuse the package's existing Document and DocumentChunk types.

The method rejects nil or blank requests and malformed top-level null responses while preserving API errors for errors.As inspection through the existing request transport.

Partial batch retrieval and document views

BatchGetDocumentsPartial fetches input names in API-sized chunks, preserves input order and duplicate occurrences, and reports document-specific failures positionally without discarding successful results. Fatal request errors retain already completed results and leave later entries explicitly unprocessed.

WithDocumentView selects the API's BASIC, FULL, or CONTENT document views. Existing BatchGetDocuments and BatchGetDocumentsAll signatures and behavior are unchanged.

Compatibility

This release is additive and does not contain breaking API changes.