Skip to content

Commit 036f9f5

Browse files
committed
Set inferenceSource property to beta
1 parent 661c733 commit 036f9f5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

common/api-review/ai.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export { Date_2 as Date }
256256
// @public
257257
export interface EnhancedGenerateContentResponse extends GenerateContentResponse {
258258
functionCalls: () => FunctionCall[] | undefined;
259-
// Warning: (ae-incompatible-release-tags) The symbol "inferenceSource" is marked as @public, but its signature references "InferenceSource" which is marked as @beta
259+
// @beta
260260
inferenceSource?: InferenceSource;
261261
inlineDataParts: () => InlineDataPart[] | undefined;
262262
text: () => string;

docs-devsite/ai.enhancedgeneratecontentresponse.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface EnhancedGenerateContentResponse extends GenerateContentResponse
2424
| Property | Type | Description |
2525
| --- | --- | --- |
2626
| [functionCalls](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsefunctioncalls) | () =&gt; [FunctionCall](./ai.functioncall.md#functioncall_interface)<!-- -->\[\] \| undefined | Aggregates and returns every [FunctionCall](./ai.functioncall.md#functioncall_interface) from the first candidate of [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!-- -->. |
27-
| [inferenceSource](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponseinferencesource) | [InferenceSource](./ai.md#inferencesource) | Indicates whether inference happened on-device or in-cloud. |
27+
| [inferenceSource](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponseinferencesource) | [InferenceSource](./ai.md#inferencesource) | <b><i>(Public Preview)</i></b> Indicates whether inference happened on-device or in-cloud. |
2828
| [inlineDataParts](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponseinlinedataparts) | () =&gt; [InlineDataPart](./ai.inlinedatapart.md#inlinedatapart_interface)<!-- -->\[\] \| undefined | Aggregates and returns every [InlineDataPart](./ai.inlinedatapart.md#inlinedatapart_interface) from the first candidate of [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!-- -->. |
2929
| [text](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsetext) | () =&gt; string | Returns the text string from the response, if available. Throws if the prompt or candidate was blocked. |
3030
| [thoughtSummary](./ai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsethoughtsummary) | () =&gt; string \| undefined | Aggregates and returns every [TextPart](./ai.textpart.md#textpart_interface) with their <code>thought</code> property set to <code>true</code> from the first candidate of [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!-- -->. |
@@ -41,6 +41,9 @@ functionCalls: () => FunctionCall[] | undefined;
4141
4242
## EnhancedGenerateContentResponse.inferenceSource
4343
44+
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
45+
>
46+
4447
Indicates whether inference happened on-device or in-cloud.
4548
4649
<b>Signature:</b>

packages/ai/src/types/responses.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export interface EnhancedGenerateContentResponse
9191
thoughtSummary: () => string | undefined;
9292
/**
9393
* Indicates whether inference happened on-device or in-cloud.
94+
*
95+
* @beta
9496
*/
9597
inferenceSource?: InferenceSource;
9698
}

0 commit comments

Comments
 (0)