You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Warning: (ae-incompatible-release-tags) The symbol "Tool" is marked as @public, but its signature references "CodeExecutionTool" which is marked as @beta
1377
1389
// Warning: (ae-incompatible-release-tags) The symbol "Tool" is marked as @public, but its signature references "URLContextTool" which is marked as @beta
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,7 @@ The Firebase AI Web SDK.
176
176
|[POSSIBLE\_ROLES](./ai.md#possible_roles)| Possible roles. |
177
177
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
178
178
|[SchemaType](./ai.md#schematype)| Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/)|
179
+
|[ThinkingLevel](./ai.md#thinkinglevel)| A preset that controls the model's "thinking" process. Use <code>ThinkingLevel.LOW</code> for faster responses on less complex tasks, and <code>ThinkingLevel.HIGH</code> for better reasoning on more complex tasks. |
179
180
|[URLRetrievalStatus](./ai.md#urlretrievalstatus)| <b><i>(Public Preview)</i></b> The status of a URL retrieval. |
180
181
181
182
## Type Aliases
@@ -208,6 +209,7 @@ The Firebase AI Web SDK.
208
209
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
209
210
|[Role](./ai.md#role)| Role is the producer of the content. |
210
211
|[SchemaType](./ai.md#schematype)| Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/)|
212
+
|[ThinkingLevel](./ai.md#thinkinglevel)| A preset that controls the model's "thinking" process. Use <code>ThinkingLevel.LOW</code> for faster responses on less complex tasks, and <code>ThinkingLevel.HIGH</code> for better reasoning on more complex tasks. |
211
213
|[Tool](./ai.md#tool)| Defines a tool that model can call to access external knowledge. |
212
214
|[TypedSchema](./ai.md#typedschema)| A type that includes all specific Schema types. |
213
215
|[URLRetrievalStatus](./ai.md#urlretrievalstatus)| <b><i>(Public Preview)</i></b> The status of a URL retrieval. |
@@ -827,6 +829,21 @@ SchemaType: {
827
829
}
828
830
```
829
831
832
+
## ThinkingLevel
833
+
834
+
A preset that controls the model's "thinking" process. Use `ThinkingLevel.LOW` for faster responses on less complex tasks, and `ThinkingLevel.HIGH` for better reasoning on more complex tasks.
835
+
836
+
<b>Signature:</b>
837
+
838
+
```typescript
839
+
ThinkingLevel: {
840
+
MINIMAL: string;
841
+
LOW: string;
842
+
MEDIUM: string;
843
+
HIGH: string;
844
+
}
845
+
```
846
+
830
847
## URLRetrievalStatus
831
848
832
849
> 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.
@@ -1142,6 +1159,16 @@ Contains the list of OpenAPI data types as defined by the [OpenAPI specification
A preset that controls the model's "thinking" process. Use `ThinkingLevel.LOW` for faster responses on less complex tasks, and `ThinkingLevel.HIGH` for better reasoning on more complex tasks.
0 commit comments