@google/generative-ai
Advanced tools
Comparing version 0.14.0 to 0.14.1
# @google/generative-ai | ||
## 0.14.1 | ||
### Patch Changes | ||
- 0c23bb3: Add `CodeExecutionTool` to `Tool` type. | ||
## 0.14.0 | ||
@@ -4,0 +10,0 @@ |
@@ -983,3 +983,3 @@ /** | ||
*/ | ||
export declare type Tool = FunctionDeclarationsTool; | ||
export declare type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
@@ -986,0 +986,0 @@ /** |
@@ -284,3 +284,3 @@ 'use strict'; | ||
*/ | ||
const PACKAGE_VERSION = "0.14.0"; | ||
const PACKAGE_VERSION = "0.14.1"; | ||
const PACKAGE_LOG_HEADER = "genai-js"; | ||
@@ -287,0 +287,0 @@ var Task; |
@@ -72,3 +72,3 @@ 'use strict'; | ||
*/ | ||
const PACKAGE_VERSION = "0.14.0"; | ||
const PACKAGE_VERSION = "0.14.1"; | ||
const PACKAGE_LOG_HEADER = "genai-js"; | ||
@@ -75,0 +75,0 @@ var Task; |
@@ -126,2 +126,14 @@ /** | ||
/** | ||
* Enables the model to execute code as part of generation. | ||
* @public | ||
*/ | ||
export declare interface CodeExecutionTool { | ||
/** | ||
* Provide an empty object to enable code execution. This field may have | ||
* subfields added in the future. | ||
*/ | ||
codeExecution: {}; | ||
} | ||
/** | ||
* Content type for both prompts and response candidates. | ||
@@ -681,3 +693,3 @@ * @public | ||
*/ | ||
export declare type Tool = FunctionDeclarationsTool; | ||
export declare type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
@@ -684,0 +696,0 @@ /** |
@@ -177,3 +177,3 @@ /** | ||
*/ | ||
export declare type Tool = FunctionDeclarationsTool; | ||
export declare type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
/** | ||
@@ -180,0 +180,0 @@ * Enables the model to execute code as part of generation. |
@@ -20,4 +20,4 @@ /** | ||
export * from "./shared"; | ||
export { RequestOptions, Tool } from "../../types/requests"; | ||
export { RequestOptions, Tool, CodeExecutionTool } from "../../types/requests"; | ||
export * from "../../types/content"; | ||
export { FunctionCallingMode } from "../../types/enums"; |
@@ -177,3 +177,3 @@ /** | ||
*/ | ||
export declare type Tool = FunctionDeclarationsTool; | ||
export declare type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
/** | ||
@@ -180,0 +180,0 @@ * Enables the model to execute code as part of generation. |
@@ -20,4 +20,4 @@ /** | ||
export * from "./shared"; | ||
export { RequestOptions, Tool } from "../../types/requests"; | ||
export { RequestOptions, Tool, CodeExecutionTool } from "../../types/requests"; | ||
export * from "../../types/content"; | ||
export { FunctionCallingMode } from "../../types/enums"; |
{ | ||
"name": "@google/generative-ai", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "Google AI JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -93,2 +93,7 @@ ## API Report File for "@google/generative-ai" | ||
// @public | ||
export interface CodeExecutionTool { | ||
codeExecution: {}; | ||
} | ||
// @public | ||
export interface Content { | ||
@@ -466,3 +471,3 @@ // (undocumented) | ||
// @public | ||
export type Tool = FunctionDeclarationsTool; | ||
export type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
@@ -469,0 +474,0 @@ // @public |
@@ -716,3 +716,3 @@ ## API Report File for "@google/generative-ai" | ||
// @public | ||
export type Tool = FunctionDeclarationsTool; | ||
export type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
@@ -719,0 +719,0 @@ // @public |
@@ -196,3 +196,3 @@ /** | ||
*/ | ||
export declare type Tool = FunctionDeclarationsTool; | ||
export declare type Tool = FunctionDeclarationsTool | CodeExecutionTool; | ||
@@ -199,0 +199,0 @@ /** |
@@ -22,4 +22,4 @@ /** | ||
export { RequestOptions, Tool } from "../../types/requests"; | ||
export { RequestOptions, Tool, CodeExecutionTool } from "../../types/requests"; | ||
export * from "../../types/content"; | ||
export { FunctionCallingMode } from "../../types/enums"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1535085
33398