v0.3.1
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.