Conversation
Contributor
Author
|
Superseded by the Stainless-generated release PR #193, which includes this SDK update. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Search.Contents.FetchTesting
go test . -run TestSearchContentgo vet ./...Note
Medium Risk
Breaking change to
Fetch's signature and behavior (typed response vs error-only), plus updated semantics for browser-backed retrieval and billing that integrators must follow.Overview
Enables deferred search result content retrieval in the Go SDK:
Search.Contents.Fetchnow unmarshals and returns*Response(contents,search_id, usage, warnings) instead of only signaling success witherror. New generated types includeResponse,ResponseContent, andResponseContentError.This replaces the previous stub that documented a 404-only placeholder. Callers must update to handle the new return value (
res, err := ...).api.mddocuments theResponsetype and updated method signature; the integration test discards the response with_.Search content option and result field docs are refreshed across
search.goandsearchcontent.goto match the API: retained provider content vs browser fetch forsource(auto/provider/browser),max_age_hourssemantics, temporary browser provisioning and 429 partial behavior forsource=auto, and clarifiedcache_status/fetched_at/ usagecontent_fetcheswording.Reviewed by Cursor Bugbot for commit 3b32fce. Configure here.