Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@langchain/google-common

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/google-common - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

4

dist/chat_models.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc