@langchain/google-common
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -8,3 +8,3 @@ import { type BaseMessage } from "@langchain/core/messages"; | ||
import type { z } from "zod"; | ||
import { Runnable } from "@langchain/core/runnables"; | ||
import { Runnable, RunnableToolLike } from "@langchain/core/runnables"; | ||
import { AsyncCaller } from "@langchain/core/utils/async_caller"; | ||
@@ -59,3 +59,3 @@ import { StructuredToolInterface } from "@langchain/core/tools"; | ||
get platform(): GooglePlatformType; | ||
bindTools(tools: (StructuredToolInterface | Record<string, unknown> | ToolDefinition)[], kwargs?: Partial<GoogleAIBaseLanguageModelCallOptions>): Runnable<BaseLanguageModelInput, AIMessageChunk, GoogleAIBaseLanguageModelCallOptions>; | ||
bindTools(tools: (StructuredToolInterface | Record<string, unknown> | ToolDefinition | RunnableToolLike)[], kwargs?: Partial<GoogleAIBaseLanguageModelCallOptions>): Runnable<BaseLanguageModelInput, AIMessageChunk, GoogleAIBaseLanguageModelCallOptions>; | ||
_llmType(): string; | ||
@@ -62,0 +62,0 @@ /** |
@@ -463,2 +463,3 @@ import { v4 as uuidv4 } from "uuid"; | ||
index: i, | ||
type: "tool_call_chunk", | ||
})); | ||
@@ -508,2 +509,3 @@ let usageMetadata; | ||
id: tool.id, | ||
type: "tool_call", | ||
}); | ||
@@ -518,2 +520,3 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
error: e.message, | ||
type: "invalid_tool_call", | ||
}); | ||
@@ -550,4 +553,4 @@ } | ||
if (params.temperature && | ||
(params.temperature < 0 || params.temperature > 1)) { | ||
throw new Error("`temperature` must be in the range of [0.0,1.0]"); | ||
(params.temperature < 0 || params.temperature > 2)) { | ||
throw new Error("`temperature` must be in the range of [0.0,2.0]"); | ||
} | ||
@@ -554,0 +557,0 @@ if (params.topP && (params.topP < 0 || params.topP > 1)) { |
{ | ||
"name": "@langchain/google-common", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Core types and classes for Google services.", | ||
@@ -43,4 +43,4 @@ "type": "module", | ||
"dependencies": { | ||
"@langchain/core": ">=0.2.9 <0.3.0", | ||
"uuid": "^9.0.0", | ||
"@langchain/core": ">=0.2.16 <0.3.0", | ||
"uuid": "^10.0.0", | ||
"zod-to-json-schema": "^3.22.4" | ||
@@ -47,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
195515
5150
- Removeduuid@9.0.1(transitive)
Updateduuid@^10.0.0