Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions docs/dyn/deepreview_v1.documents.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2>Instance Methods</h2>
<p class="firstline">Deletes a document and its stored content. If `force` is set to `true`, any associated reviews are also deleted.</p>
<p class="toc_element">
<code><a href="#estimateReviewCost">estimateReviewCost(document, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Estimates what a review of a document would cost on the caller's Gemini API key. The estimate comes from what past reviews with the same model, depth, and thinking level cost, adjusted to this document's size and repriced at the Gemini API's current list prices. It covers one review attempt that runs to completion, and doesn't include retries after errors.</p>
<p class="firstline">Estimates what a review of a document would cost and how long it will take on the caller's Gemini API key. The USD cost range comes from what comparable past reviews with the same model, depth, and thinking level cost, adjusted to this document's size, repriced at the Gemini API's current list prices, and including explicit context cache creation and storage fees when supported. It covers one review run to completion and doesn't include retries after errors. Structural guidance (document token count, estimated model calls, explicit context caching support, and tier-split turnaround durations) is populated whenever the document can be measured, even when too few comparable past reviews exist to compute USD cost percentiles.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves document metadata. The returned document includes its `latest_review_summary` when a review exists.</p>
Expand Down Expand Up @@ -125,7 +125,7 @@ <h3>Method Details</h3>

<div class="method">
<code class="details" id="estimateReviewCost">estimateReviewCost(document, body=None, x__xgafv=None)</code>
<pre>Estimates what a review of a document would cost on the caller&#x27;s Gemini API key. The estimate comes from what past reviews with the same model, depth, and thinking level cost, adjusted to this document&#x27;s size and repriced at the Gemini API&#x27;s current list prices. It covers one review attempt that runs to completion, and doesn&#x27;t include retries after errors.
<pre>Estimates what a review of a document would cost and how long it will take on the caller&#x27;s Gemini API key. The USD cost range comes from what comparable past reviews with the same model, depth, and thinking level cost, adjusted to this document&#x27;s size, repriced at the Gemini API&#x27;s current list prices, and including explicit context cache creation and storage fees when supported. It covers one review run to completion and doesn&#x27;t include retries after errors. Structural guidance (document token count, estimated model calls, explicit context caching support, and tier-split turnaround durations) is populated whenever the document can be measured, even when too few comparable past reviews exist to compute USD cost percentiles.

Args:
document: string, Required. The document to review. (required)
Expand Down Expand Up @@ -275,7 +275,10 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # Response message for estimating what a review would cost. When the cost can&#x27;t be estimated, for example because too few past reviews used the same model, depth, and thinking level, the costs are unset and `past_review_count` is 0.
{ # Response message for estimating what a review would cost and how long it will take on the caller&#x27;s Gemini API key. Structural guidance fields (`document_token_count`, `estimated_model_calls`, `paid_tier1_estimated_duration`, `paid_tier2_plus_estimated_duration`, and `explicit_caching_supported`) are populated whenever the document can be measured and PAT is configured, even when too few past reviews exist (or the model has no listed price) to compute USD cost percentiles. When USD cost can&#x27;t be estimated, `low_cost`, `median_cost`, and `high_cost` are unset and `past_review_count` is 0.
&quot;documentTokenCount&quot;: &quot;A String&quot;, # Output only. Estimated size of the document in tokens (matching the stored `Document.estimated_tokens` used by submission gates when available).
&quot;estimatedModelCalls&quot;: 42, # Output only. Planned PAT workflow topology model call budget for the configured depth and enabled modules (including dynamic prompt-writer calls when enabled and 3 progress slots for citation checking; actual citation verification runs additional per-reference lookups).
&quot;explicitCachingSupported&quot;: True or False, # Output only. Whether explicit context caching applies on Paid Tier Gemini API keys for the configured model and document size, and is reflected in the cost estimate (false when post-launch BYOK analytics show explicit caching is falling back inline; Free-Tier keys do not create explicit caches).
&quot;highCost&quot;: { # Represents an amount of money with its currency type. # The 95th percentile of what comparable past reviews would cost for this document.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Expand All @@ -291,6 +294,14 @@ <h3>Method Details</h3>
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
&quot;paidTier1EstimatedDuration&quot;: { # Estimated wall-clock duration range for a review run. # Output only. Estimated wall-clock turnaround range on a Paid Tier 1 Gemini API key (bounded by Paid Tier 1&#x27;s 1M-2M tokens/min ceilings and retry/spend throttle backoff; single-attempt worker runs cap at 55 minutes until multi-slice continuations are enabled).
&quot;maxDuration&quot;: &quot;A String&quot;, # Output only. Upper bound of the estimated review duration.
&quot;minDuration&quot;: &quot;A String&quot;, # Output only. Lower bound of the estimated review duration.
},
&quot;paidTier2PlusEstimatedDuration&quot;: { # Estimated wall-clock duration range for a review run. # Output only. Estimated wall-clock turnaround range on a Paid Tier 2 or Paid Tier 3 Gemini API key (unconstrained up to worker concurrency).
&quot;maxDuration&quot;: &quot;A String&quot;, # Output only. Upper bound of the estimated review duration.
&quot;minDuration&quot;: &quot;A String&quot;, # Output only. Lower bound of the estimated review duration.
},
&quot;pastReviewCount&quot;: 42, # Number of past reviews the estimate is based on.
}</pre>
</div>
Expand Down
5 changes: 3 additions & 2 deletions docs/dyn/deepreview_v1.v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # Singleton resource representing the authenticated caller&#x27;s review quota limits and sliding-window usage.
{ # Singleton resource representing the authenticated caller&#x27;s review quota limits, sliding-window usage, and non-expiring bonus credits.
&quot;bonusReviewCount&quot;: 42, # Output only. Remaining non-expiring bonus free-tier review credits. Bonus credits are consumed only after the rolling 7-day weekly allowance is exhausted and are included in `remaining_review_count`.
&quot;customLimitEnabled&quot;: True or False, # Output only. Whether a custom per-user quota override is active for this user.
&quot;maxReviewCountPerWeek&quot;: 42, # Output only. Maximum free-tier reviews allowed per rolling 7-day window.
&quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the singleton user quota (`userQuota`).
&quot;nextAvailableTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the next review quota slot becomes available if `remaining_review_count` is 0; unset when quota is currently available.
&quot;remainingReviewCount&quot;: 42, # Output only. Remaining free-tier reviews available in the current rolling 7-day window (`max(0, max_review_count_per_week - used_review_count)`).
&quot;remainingReviewCount&quot;: 42, # Output only. Total remaining free-tier reviews currently available, combining the remaining rolling 7-day weekly allowance and any non-expiring bonus credits (`max(0, max_review_count_per_week - used_review_count) + bonus_review_count`).
&quot;usedReviewCount&quot;: 42, # Output only. Number of free-tier reviews used in the past 7 days.
}</pre>
</div>
Expand Down
Loading
Loading