Socket
Socket
Sign inDemoInstall

langchain-core

Package Overview
Dependencies
16
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

agents.cjs

10

dist/callbacks/base.d.ts

@@ -1,8 +0,8 @@

import { ChainValues } from "../schema/index.js";
import type { BaseMessage } from "../schema/messages.js";
import type { AgentAction, AgentFinish } from "../schema/agent.js";
import type { ChatGenerationChunk, GenerationChunk, LLMResult } from "../schema/output.js";
import type { ChainValues } from "../utils/types.js";
import type { BaseMessage } from "../messages/index.js";
import type { AgentAction, AgentFinish } from "../agents.js";
import type { ChatGenerationChunk, GenerationChunk, LLMResult } from "../outputs.js";
import { Serializable, Serialized, SerializedNotImplemented } from "../load/serializable.js";
import type { SerializedFields } from "../load/map_keys.js";
import { Document } from "../schema/document/document.js";
import { Document } from "../documents.js";
type Error = any;

@@ -9,0 +9,0 @@ /**

@@ -1,9 +0,9 @@

import { AgentAction, AgentFinish } from "../schema/agent.js";
import { ChainValues } from "../schema/index.js";
import { LLMResult } from "../schema/output.js";
import { AgentAction, AgentFinish } from "../agents.js";
import type { ChainValues } from "../utils/types.js";
import { LLMResult } from "../outputs.js";
import { BaseCallbackHandler, CallbackHandlerMethods, HandleLLMNewTokenCallbackFields, NewTokenIndices } from "./base.js";
import { type BaseMessage } from "../schema/messages.js";
import { LangChainTracerFields } from "./tracers/tracer_langchain.js";
import { type BaseMessage } from "../messages/index.js";
import { LangChainTracerFields } from "../tracers/tracer_langchain.js";
import { Serialized } from "../load/serializable.js";
import { Document } from "../schema/document/document.js";
import { Document } from "../documents.js";
type BaseCallbackManagerMethods = {

@@ -10,0 +10,0 @@ [K in keyof CallbackHandlerMethods]?: (...args: Parameters<Required<CallbackHandlerMethods>[K]>) => Promise<unknown>;

import { v4 as uuidv4 } from "uuid";
import { BaseCallbackHandler, } from "./base.js";
import { ConsoleCallbackHandler } from "./tracers/console.js";
import { getTracingCallbackHandler, getTracingV2CallbackHandler, } from "./tracers/initialize.js";
import { getBufferString } from "../schema/messages.js";
import { getEnvironmentVariable } from "../util/env.js";
import { LangChainTracer, } from "./tracers/tracer_langchain.js";
import { ConsoleCallbackHandler } from "../tracers/console.js";
import { getTracingCallbackHandler, getTracingV2CallbackHandler, } from "../tracers/initialize.js";
import { getBufferString } from "../messages/index.js";
import { getEnvironmentVariable } from "../utils/env.js";
import { LangChainTracer, } from "../tracers/tracer_langchain.js";
import { consumeCallback } from "./promises.js";

@@ -9,0 +9,0 @@ export function parseCallbackConfigArg(arg) {

@@ -0,49 +1,39 @@

export * as agents from "../agents.js";
export * as caches from "../caches.js";
export * as callbacks__base from "../callbacks/base.js";
export * as callbacks__manager from "../callbacks/manager.js";
export * as callbacks__promises from "../callbacks/promises.js";
export * as callbacks__tracers__base from "../callbacks/tracers/base.js";
export * as callbacks__tracers__console from "../callbacks/tracers/console.js";
export * as callbacks__tracers__initialize from "../callbacks/tracers/initialize.js";
export * as callbacks__tracers__log_stream from "../callbacks/tracers/log_stream.js";
export * as callbacks__tracers__run_collector from "../callbacks/tracers/run_collector.js";
export * as callbacks__tracers__tracer_langchain_v1 from "../callbacks/tracers/tracer_langchain_v1.js";
export * as callbacks__tracers__tracer_langchain from "../callbacks/tracers/tracer_langchain.js";
export * as chat_model from "../chat_model.js";
export * as llm from "../llm.js";
export * as chat_history from "../chat_history.js";
export * as documents from "../documents.js";
export * as document_transformers from "../document_transformers.js";
export * as embeddings from "../embeddings.js";
export * as example_selectors from "../example_selectors/index.js";
export * as language_models__base from "../language_models/base.js";
export * as language_models__chat_models from "../language_models/chat_models.js";
export * as language_models__llms from "../language_models/llms.js";
export * as load__serializable from "../load/serializable.js";
export * as memory from "../memory.js";
export * as messages from "../messages/index.js";
export * as output_parsers from "../output_parsers/index.js";
export * as outputs from "../outputs.js";
export * as prompts from "../prompts/index.js";
export * as prompts__base from "../prompts/base.js";
export * as prompts__chat from "../prompts/chat.js";
export * as prompts__few_shot from "../prompts/few_shot.js";
export * as prompts__pipeline from "../prompts/pipeline.js";
export * as prompts__serde from "../prompts/serde.js";
export * as prompts__template from "../prompts/template.js";
export * as prompts__example_selector__base from "../prompts/example_selector/base.js";
export * as prompts__example_selector__conditional from "../prompts/example_selector/conditional.js";
export * as prompts__example_selector__length_based from "../prompts/example_selector/length_based.js";
export * as prompts__example_selector__semantic_similarity from "../prompts/example_selector/semantic_similarity.js";
export * as prompt_values from "../prompt_values.js";
export * as runnables from "../runnables/index.js";
export * as schema from "../schema/index.js";
export * as schema__agent from "../schema/agent.js";
export * as schema__cache from "../schema/cache.js";
export * as schema__chat_history from "../schema/chat_history.js";
export * as schema__document from "../schema/document/index.js";
export * as schema__embeddings from "../schema/embeddings.js";
export * as schema__language_model from "../schema/language_model.js";
export * as schema__memory from "../schema/memory.js";
export * as schema__messages from "../schema/messages.js";
export * as schema__output_parser from "../schema/output_parser.js";
export * as schema__output from "../schema/output.js";
export * as schema__prompt_template from "../schema/prompt_template.js";
export * as schema__prompt from "../schema/prompt.js";
export * as schema__retriever from "../schema/retriever.js";
export * as schema__storage from "../schema/storage.js";
export * as schema__vectorstore from "../schema/vectorstore.js";
export * as util__async_caller from "../util/async_caller.js";
export * as util__env from "../util/env.js";
export * as util__hash from "../util/hash.js";
export * as util__json_patch from "../util/json_patch.js";
export * as util__json_schema from "../util/json_schema.js";
export * as util__stream from "../util/stream.js";
export * as util__tiktoken from "../util/tiktoken.js";
export * as util__types from "../util/types.js";
export * as retrievers from "../retrievers.js";
export * as stores from "../stores.js";
export * as tracers__base from "../tracers/base.js";
export * as tracers__console from "../tracers/console.js";
export * as tracers__initialize from "../tracers/initialize.js";
export * as tracers__log_stream from "../tracers/log_stream.js";
export * as tracers__run_collector from "../tracers/run_collector.js";
export * as tracers__tracer_langchain_v1 from "../tracers/tracer_langchain_v1.js";
export * as tracers__tracer_langchain from "../tracers/tracer_langchain.js";
export * as utils__async_caller from "../utils/async_caller.js";
export * as utils__env from "../utils/env.js";
export * as utils__hash from "../utils/hash.js";
export * as utils__json_patch from "../utils/json_patch.js";
export * as utils__json_schema from "../utils/json_schema.js";
export * as utils__stream from "../utils/stream.js";
export * as utils__tiktoken from "../utils/tiktoken.js";
export * as utils__types from "../utils/types.js";
export * as vectorstores from "../vectorstores.js";
// Auto-generated by `scripts/create-entrypoints.js`. Do not edit manually.
export * as agents from "../agents.js";
export * as caches from "../caches.js";
export * as callbacks__base from "../callbacks/base.js";
export * as callbacks__manager from "../callbacks/manager.js";
export * as callbacks__promises from "../callbacks/promises.js";
export * as callbacks__tracers__base from "../callbacks/tracers/base.js";
export * as callbacks__tracers__console from "../callbacks/tracers/console.js";
export * as callbacks__tracers__initialize from "../callbacks/tracers/initialize.js";
export * as callbacks__tracers__log_stream from "../callbacks/tracers/log_stream.js";
export * as callbacks__tracers__run_collector from "../callbacks/tracers/run_collector.js";
export * as callbacks__tracers__tracer_langchain_v1 from "../callbacks/tracers/tracer_langchain_v1.js";
export * as callbacks__tracers__tracer_langchain from "../callbacks/tracers/tracer_langchain.js";
export * as chat_model from "../chat_model.js";
export * as llm from "../llm.js";
export * as chat_history from "../chat_history.js";
export * as documents from "../documents.js";
export * as document_transformers from "../document_transformers.js";
export * as embeddings from "../embeddings.js";
export * as example_selectors from "../example_selectors/index.js";
export * as language_models__base from "../language_models/base.js";
export * as language_models__chat_models from "../language_models/chat_models.js";
export * as language_models__llms from "../language_models/llms.js";
export * as load__serializable from "../load/serializable.js";
export * as memory from "../memory.js";
export * as messages from "../messages/index.js";
export * as output_parsers from "../output_parsers/index.js";
export * as outputs from "../outputs.js";
export * as prompts from "../prompts/index.js";
export * as prompts__base from "../prompts/base.js";
export * as prompts__chat from "../prompts/chat.js";
export * as prompts__few_shot from "../prompts/few_shot.js";
export * as prompts__pipeline from "../prompts/pipeline.js";
export * as prompts__serde from "../prompts/serde.js";
export * as prompts__template from "../prompts/template.js";
export * as prompts__example_selector__base from "../prompts/example_selector/base.js";
export * as prompts__example_selector__conditional from "../prompts/example_selector/conditional.js";
export * as prompts__example_selector__length_based from "../prompts/example_selector/length_based.js";
export * as prompts__example_selector__semantic_similarity from "../prompts/example_selector/semantic_similarity.js";
export * as prompt_values from "../prompt_values.js";
export * as runnables from "../runnables/index.js";
export * as schema from "../schema/index.js";
export * as schema__agent from "../schema/agent.js";
export * as schema__cache from "../schema/cache.js";
export * as schema__chat_history from "../schema/chat_history.js";
export * as schema__document from "../schema/document/index.js";
export * as schema__embeddings from "../schema/embeddings.js";
export * as schema__language_model from "../schema/language_model.js";
export * as schema__memory from "../schema/memory.js";
export * as schema__messages from "../schema/messages.js";
export * as schema__output_parser from "../schema/output_parser.js";
export * as schema__output from "../schema/output.js";
export * as schema__prompt_template from "../schema/prompt_template.js";
export * as schema__prompt from "../schema/prompt.js";
export * as schema__retriever from "../schema/retriever.js";
export * as schema__storage from "../schema/storage.js";
export * as schema__vectorstore from "../schema/vectorstore.js";
export * as util__async_caller from "../util/async_caller.js";
export * as util__env from "../util/env.js";
export * as util__hash from "../util/hash.js";
export * as util__json_patch from "../util/json_patch.js";
export * as util__json_schema from "../util/json_schema.js";
export * as util__stream from "../util/stream.js";
export * as util__tiktoken from "../util/tiktoken.js";
export * as util__types from "../util/types.js";
export * as retrievers from "../retrievers.js";
export * as stores from "../stores.js";
export * as tracers__base from "../tracers/base.js";
export * as tracers__console from "../tracers/console.js";
export * as tracers__initialize from "../tracers/initialize.js";
export * as tracers__log_stream from "../tracers/log_stream.js";
export * as tracers__run_collector from "../tracers/run_collector.js";
export * as tracers__tracer_langchain_v1 from "../tracers/tracer_langchain_v1.js";
export * as tracers__tracer_langchain from "../tracers/tracer_langchain.js";
export * as utils__async_caller from "../utils/async_caller.js";
export * as utils__env from "../utils/env.js";
export * as utils__hash from "../utils/hash.js";
export * as utils__json_patch from "../utils/json_patch.js";
export * as utils__json_schema from "../utils/json_schema.js";
export * as utils__stream from "../utils/stream.js";
export * as utils__tiktoken from "../utils/tiktoken.js";
export * as utils__types from "../utils/types.js";
export * as vectorstores from "../vectorstores.js";

@@ -5,3 +5,3 @@ import { get_lc_unique_name, } from "./serializable.js";

import { keyFromJson, mapKeys } from "./map_keys.js";
import { getEnvironmentVariable } from "../util/env.js";
import { getEnvironmentVariable } from "../utils/env.js";
function combineAliasesAndInvert(constructor) {

@@ -8,0 +8,0 @@ const aliases = {};

@@ -1,32 +0,89 @@

import { HumanMessage } from "../schema/messages.js";
import { InputValues } from "../schema/index.js";
import { BasePromptValue } from "../schema/prompt.js";
import { BasePromptTemplate } from "../schema/prompt_template.js";
import type { StringWithAutocomplete } from "../util/types.js";
import type { InputValues, PartialValues, StringWithAutocomplete } from "../utils/types.js";
import { type BasePromptValue } from "../prompt_values.js";
import { BaseOutputParser } from "../output_parsers/index.js";
import type { SerializedFields } from "../load/map_keys.js";
import { Runnable } from "../runnables/base.js";
import { BaseCallbackConfig } from "../callbacks/manager.js";
import type { SerializedBasePromptTemplate } from "../prompts/serde.js";
export type TypedPromptInputValues<RunInput> = InputValues<StringWithAutocomplete<Extract<keyof RunInput, string>>>;
export type Example = Record<string, string>;
/**
* Represents a prompt value as a string. It extends the BasePromptValue
* class and overrides the toString and toChatMessages methods.
* Input common to all prompt templates.
*/
export declare class StringPromptValue extends BasePromptValue {
lc_namespace: string[];
value: string;
constructor(value: string);
toString(): string;
toChatMessages(): HumanMessage[];
export interface BasePromptTemplateInput<InputVariables extends InputValues = any, PartialVariableName extends string = any> {
/**
* A list of variable names the prompt template expects
*/
inputVariables: Array<Extract<keyof InputVariables, string>>;
/**
* How to parse the output of calling an LLM on this formatted prompt
*/
outputParser?: BaseOutputParser;
/** Partial variables */
partialVariables?: PartialValues<PartialVariableName>;
}
/**
* Base class for string prompt templates. It extends the
* BasePromptTemplate class and overrides the formatPromptValue method to
* return a StringPromptValue.
* Base class for prompt templates. Exposes a format method that returns a
* string prompt given a set of input values.
*/
export declare abstract class BaseStringPromptTemplate<RunInput extends InputValues = any, PartialVariableName extends string = any> extends BasePromptTemplate<RunInput, StringPromptValue, PartialVariableName> {
export declare abstract class BasePromptTemplate<RunInput extends InputValues = any, RunOutput extends BasePromptValue = BasePromptValue, PartialVariableName extends string = any> extends Runnable<RunInput, RunOutput> implements BasePromptTemplateInput {
PromptValueReturnType: RunOutput;
lc_serializable: boolean;
lc_namespace: string[];
get lc_attributes(): SerializedFields | undefined;
inputVariables: Array<Extract<keyof RunInput, string>>;
outputParser?: BaseOutputParser;
partialVariables: PartialValues<PartialVariableName>;
constructor(input: BasePromptTemplateInput);
abstract partial(values: PartialValues): Promise<BasePromptTemplate<RunInput, RunOutput, PartialVariableName>>;
/**
* Formats the prompt given the input values and returns a formatted
* prompt value.
* @param values The input values to format the prompt.
* @returns A Promise that resolves to a formatted prompt value.
* Merges partial variables and user variables.
* @param userVariables The user variables to merge with the partial variables.
* @returns A Promise that resolves to an object containing the merged variables.
*/
formatPromptValue(values: TypedPromptInputValues<RunInput>): Promise<StringPromptValue>;
mergePartialAndUserVariables(userVariables: TypedPromptInputValues<RunInput>): Promise<InputValues<Extract<keyof RunInput, string> | PartialVariableName>>;
/**
* Invokes the prompt template with the given input and options.
* @param input The input to invoke the prompt template with.
* @param options Optional configuration for the callback.
* @returns A Promise that resolves to the output of the prompt template.
*/
invoke(input: RunInput, options?: BaseCallbackConfig): Promise<RunOutput>;
/**
* Format the prompt given the input values.
*
* @param values - A dictionary of arguments to be passed to the prompt template.
* @returns A formatted prompt string.
*
* @example
* ```ts
* prompt.format({ foo: "bar" });
* ```
*/
abstract format(values: TypedPromptInputValues<RunInput>): Promise<string>;
/**
* Format the prompt given the input values and return a formatted prompt value.
* @param values
* @returns A formatted PromptValue.
*/
abstract formatPromptValue(values: TypedPromptInputValues<RunInput>): Promise<RunOutput>;
/**
* Return the string type key uniquely identifying this class of prompt template.
*/
abstract _getPromptType(): string;
/**
* Return a json-like object representing this prompt template.
* @deprecated
*/
serialize(): SerializedBasePromptTemplate;
/**
* @deprecated
* Load a prompt template from a json-like object describing it.
*
* @remarks
* Deserializing needs to be async because templates (e.g. {@link FewShotPromptTemplate}) can
* reference remote resources that we read asynchronously with a web
* request.
*/
static deserialize(data: SerializedBasePromptTemplate): Promise<BasePromptTemplate<InputValues, BasePromptValue, string>>;
}
// Default generic "any" values are for backwards compatibility.
// Replace with "string" when we are comfortable with a breaking change.
import { HumanMessage } from "../schema/messages.js";
import { BasePromptValue } from "../schema/prompt.js";
import { BasePromptTemplate } from "../schema/prompt_template.js";
import { Runnable } from "../runnables/base.js";
/**
* Represents a prompt value as a string. It extends the BasePromptValue
* class and overrides the toString and toChatMessages methods.
* Base class for prompt templates. Exposes a format method that returns a
* string prompt given a set of input values.
*/
export class StringPromptValue extends BasePromptValue {
constructor(value) {
super({ value });
export class BasePromptTemplate extends Runnable {
get lc_attributes() {
return {
partialVariables: undefined, // python doesn't support this yet
};
}
constructor(input) {
super(input);
Object.defineProperty(this, "lc_serializable", {
enumerable: true,
configurable: true,
writable: true,
value: true
});
Object.defineProperty(this, "lc_namespace", {

@@ -17,5 +26,5 @@ enumerable: true,

writable: true,
value: ["langchain", "prompts", "base"]
value: ["langchain", "prompts", this._getPromptType()]
});
Object.defineProperty(this, "value", {
Object.defineProperty(this, "inputVariables", {
enumerable: true,

@@ -26,27 +35,85 @@ configurable: true,

});
this.value = value;
Object.defineProperty(this, "outputParser", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "partialVariables", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
const { inputVariables } = input;
if (inputVariables.includes("stop")) {
throw new Error("Cannot have an input variable named 'stop', as it is used internally, please rename.");
}
Object.assign(this, input);
}
toString() {
return this.value;
/**
* Merges partial variables and user variables.
* @param userVariables The user variables to merge with the partial variables.
* @returns A Promise that resolves to an object containing the merged variables.
*/
async mergePartialAndUserVariables(userVariables) {
const partialVariables = this.partialVariables ?? {};
const partialValues = {};
for (const [key, value] of Object.entries(partialVariables)) {
if (typeof value === "string") {
partialValues[key] = value;
}
else {
partialValues[key] = await value();
}
}
const allKwargs = {
...partialValues,
...userVariables,
};
return allKwargs;
}
toChatMessages() {
return [new HumanMessage(this.value)];
/**
* Invokes the prompt template with the given input and options.
* @param input The input to invoke the prompt template with.
* @param options Optional configuration for the callback.
* @returns A Promise that resolves to the output of the prompt template.
*/
async invoke(input, options) {
return this._callWithConfig((input) => this.formatPromptValue(input), input, { ...options, runType: "prompt" });
}
}
/**
* Base class for string prompt templates. It extends the
* BasePromptTemplate class and overrides the formatPromptValue method to
* return a StringPromptValue.
*/
export class BaseStringPromptTemplate extends BasePromptTemplate {
/**
* Formats the prompt given the input values and returns a formatted
* prompt value.
* @param values The input values to format the prompt.
* @returns A Promise that resolves to a formatted prompt value.
* Return a json-like object representing this prompt template.
* @deprecated
*/
async formatPromptValue(values) {
const formattedPrompt = await this.format(values);
return new StringPromptValue(formattedPrompt);
serialize() {
throw new Error("Use .toJSON() instead");
}
/**
* @deprecated
* Load a prompt template from a json-like object describing it.
*
* @remarks
* Deserializing needs to be async because templates (e.g. {@link FewShotPromptTemplate}) can
* reference remote resources that we read asynchronously with a web
* request.
*/
static async deserialize(data) {
switch (data._type) {
case "prompt": {
const { PromptTemplate } = await import("./prompt.js");
return PromptTemplate.deserialize(data);
}
case undefined: {
const { PromptTemplate } = await import("./prompt.js");
return PromptTemplate.deserialize({ ...data, _type: "prompt" });
}
case "few_shot": {
const { FewShotPromptTemplate } = await import("./few_shot.js");
return FewShotPromptTemplate.deserialize(data);
}
default:
throw new Error(`Invalid prompt type in config: ${data._type}`);
}
}
}
import type { BaseCallbackConfig } from "../callbacks/manager.js";
import { BaseMessage, type BaseMessageLike } from "../schema/messages.js";
import { BasePromptValue } from "../schema/prompt.js";
import { InputValues, PartialValues } from "../schema/index.js";
import { BaseMessage, type BaseMessageLike } from "../messages/index.js";
import { BasePromptValue } from "../prompt_values.js";
import type { InputValues, PartialValues } from "../utils/types.js";
import { Runnable } from "../runnables/base.js";
import { BaseStringPromptTemplate, TypedPromptInputValues } from "./base.js";
import { BasePromptTemplate, type BasePromptTemplateInput } from "../schema/prompt_template.js";
import { BaseStringPromptTemplate } from "./string.js";
import { BasePromptTemplate, type BasePromptTemplateInput, type TypedPromptInputValues } from "./base.js";
import { type ParamsFromFString } from "./prompt.js";

@@ -56,3 +56,3 @@ /**

*/
export interface MessagePlaceholderFields<T extends string> {
export interface MessagesPlaceholderFields<T extends string> {
variableName: T;

@@ -68,3 +68,3 @@ }

constructor(variableName: Extract<keyof RunInput, string>);
constructor(fields: MessagePlaceholderFields<Extract<keyof RunInput, string>>);
constructor(fields: MessagesPlaceholderFields<Extract<keyof RunInput, string>>);
get inputVariables(): Extract<keyof RunInput, string>[];

@@ -71,0 +71,0 @@ validateInputOrThrow(input: Array<unknown>, variableName: Extract<keyof RunInput, string>): input is BaseMessage[];

// Default generic "any" values are for backwards compatibility.
// Replace with "string" when we are comfortable with a breaking change.
import { getBufferString } from "../schema/messages.js";
import { AIMessage, HumanMessage, SystemMessage, BaseMessage, ChatMessage, coerceMessageLikeToMessage, isBaseMessage, } from "../schema/messages.js";
import { BasePromptValue } from "../schema/prompt.js";
import { getBufferString } from "../messages/index.js";
import { AIMessage, HumanMessage, SystemMessage, BaseMessage, ChatMessage, coerceMessageLikeToMessage, isBaseMessage, } from "../messages/index.js";
import { BasePromptValue } from "../prompt_values.js";
import { Runnable } from "../runnables/base.js";
import { BasePromptTemplate, } from "../schema/prompt_template.js";
import { BasePromptTemplate, } from "./base.js";
import { PromptTemplate } from "./prompt.js";

@@ -9,0 +9,0 @@ /**

@@ -1,9 +0,9 @@

import { BaseStringPromptTemplate, type TypedPromptInputValues, type Example } from "./base.js";
import { type BasePromptTemplateInput } from "../schema/prompt_template.js";
import type { BaseExampleSelector } from "./example_selector/base.js";
import { BaseStringPromptTemplate } from "./string.js";
import type { BasePromptTemplateInput, TypedPromptInputValues, Example } from "./base.js";
import type { BaseExampleSelector } from "../example_selectors/base.js";
import { type TemplateFormat } from "./template.js";
import { PromptTemplate } from "./prompt.js";
import type { SerializedFewShotTemplate } from "./serde.js";
import type { InputValues, PartialValues } from "../schema/index.js";
import type { BaseMessage } from "../schema/messages.js";
import type { InputValues, PartialValues } from "../utils/types.js";
import type { BaseMessage } from "../messages/index.js";
import { BaseChatPromptTemplate, type BaseMessagePromptTemplate } from "./chat.js";

@@ -10,0 +10,0 @@ export interface FewShotPromptTemplateInput extends BasePromptTemplateInput<InputValues> {

@@ -1,2 +0,2 @@

import { BaseStringPromptTemplate, } from "./base.js";
import { BaseStringPromptTemplate } from "./string.js";
import { checkValidTemplate, renderTemplate, } from "./template.js";

@@ -3,0 +3,0 @@ import { PromptTemplate } from "./prompt.js";

@@ -0,2 +1,8 @@

export * from "./base.js";
export * from "./chat.js";
export * from "./few_shot.js";
export * from "./pipeline.js";
export * from "./prompt.js";
export * from "./chat.js";
export * from "./serde.js";
export * from "./string.js";
export * from "./template.js";

@@ -0,2 +1,8 @@

export * from "./base.js";
export * from "./chat.js";
export * from "./few_shot.js";
export * from "./pipeline.js";
export * from "./prompt.js";
export * from "./chat.js";
export * from "./serde.js";
export * from "./string.js";
export * from "./template.js";

@@ -1,4 +0,4 @@

import type { InputValues, PartialValues } from "../schema/index.js";
import type { InputValues, PartialValues } from "../utils/types.js";
import type { SerializedBasePromptTemplate } from "./serde.js";
import { BasePromptTemplate, type BasePromptTemplateInput } from "../schema/prompt_template.js";
import { BasePromptTemplate, type BasePromptTemplateInput } from "./base.js";
/**

@@ -5,0 +5,0 @@ * Type that includes the name of the prompt and the prompt itself.

@@ -1,2 +0,2 @@

import { BasePromptTemplate, } from "../schema/prompt_template.js";
import { BasePromptTemplate } from "./base.js";
import { ChatPromptTemplate } from "./chat.js";

@@ -3,0 +3,0 @@ /**

@@ -1,6 +0,6 @@

import { BaseStringPromptTemplate, TypedPromptInputValues } from "./base.js";
import type { BasePromptTemplateInput } from "../schema/prompt_template.js";
import { BaseStringPromptTemplate } from "./string.js";
import type { BasePromptTemplateInput, TypedPromptInputValues } from "./base.js";
import { type TemplateFormat } from "./template.js";
import type { SerializedPromptTemplate } from "./serde.js";
import type { InputValues, PartialValues } from "../schema/index.js";
import type { InputValues, PartialValues } from "../utils/types.js";
/**

@@ -7,0 +7,0 @@ * Inputs to create a {@link PromptTemplate}

// Default generic "any" values are for backwards compatibility.
// Replace with "string" when we are comfortable with a breaking change.
import { BaseStringPromptTemplate } from "./base.js";
import { BaseStringPromptTemplate } from "./string.js";
import { checkValidTemplate, parseTemplate, renderTemplate, } from "./template.js";

@@ -5,0 +5,0 @@ /**

@@ -1,2 +0,1 @@

import type { Example } from "./example_selector/base.js";
import type { TemplateFormat } from "./template.js";

@@ -31,3 +30,3 @@ /**

input_variables: string[];
examples: string | Example[];
examples: string | any[];
example_prompt?: SerializedPromptTemplate;

@@ -34,0 +33,0 @@ example_separator: string;

@@ -1,2 +0,2 @@

import type { InputValues } from "../schema/index.js";
import type { InputValues } from "../utils/types.js";
/**

@@ -3,0 +3,0 @@ * Type that specifies the format of a template. Only

import { CallbackManager, CallbackManagerForChainRun, BaseCallbackConfig } from "../callbacks/manager.js";
import { LogStreamCallbackHandlerInput, RunLogPatch } from "../callbacks/tracers/log_stream.js";
import { LogStreamCallbackHandlerInput, RunLogPatch } from "../tracers/log_stream.js";
import { Serializable } from "../load/serializable.js";
import { IterableReadableStream } from "../util/stream.js";
import { IterableReadableStream } from "../utils/stream.js";
import { RunnableConfig } from "./config.js";

@@ -6,0 +6,0 @@ export type RunnableFunc<RunInput, RunOutput> = (input: RunInput) => RunOutput | Promise<RunOutput>;

import pRetry from "p-retry";
import { CallbackManager, } from "../callbacks/manager.js";
import { LogStreamCallbackHandler, RunLogPatch, } from "../callbacks/tracers/log_stream.js";
import { LogStreamCallbackHandler, RunLogPatch, } from "../tracers/log_stream.js";
import { Serializable } from "../load/serializable.js";
import { IterableReadableStream } from "../util/stream.js";
import { IterableReadableStream } from "../utils/stream.js";
import { getCallbackMangerForConfig } from "./config.js";
import { AsyncCaller } from "../util/async_caller.js";
import { AsyncCaller } from "../utils/async_caller.js";
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -9,0 +9,0 @@ function _coerceToDict(value, defaultKey) {

import { Runnable, type RunnableBatchOptions } from "./base.js";
import { IterableReadableStream } from "../util/stream.js";
import { IterableReadableStream } from "../utils/stream.js";
import type { RunnableConfig } from "./config.js";

@@ -4,0 +4,0 @@ export type RouterInput = {

{
"name": "langchain-core",
"version": "0.0.1",
"version": "0.0.2",
"description": "Typescript bindings for langchain",

@@ -80,2 +80,12 @@ "type": "module",

"exports": {
"./agents": {
"types": "./agents.d.ts",
"import": "./agents.js",
"require": "./agents.cjs"
},
"./caches": {
"types": "./caches.d.ts",
"import": "./caches.js",
"require": "./caches.cjs"
},
"./callbacks/base": {

@@ -96,47 +106,42 @@ "types": "./callbacks/base.d.ts",

},
"./callbacks/tracers/base": {
"types": "./callbacks/tracers/base.d.ts",
"import": "./callbacks/tracers/base.js",
"require": "./callbacks/tracers/base.cjs"
"./chat_history": {
"types": "./chat_history.d.ts",
"import": "./chat_history.js",
"require": "./chat_history.cjs"
},
"./callbacks/tracers/console": {
"types": "./callbacks/tracers/console.d.ts",
"import": "./callbacks/tracers/console.js",
"require": "./callbacks/tracers/console.cjs"
"./documents": {
"types": "./documents.d.ts",
"import": "./documents.js",
"require": "./documents.cjs"
},
"./callbacks/tracers/initialize": {
"types": "./callbacks/tracers/initialize.d.ts",
"import": "./callbacks/tracers/initialize.js",
"require": "./callbacks/tracers/initialize.cjs"
"./document_transformers": {
"types": "./document_transformers.d.ts",
"import": "./document_transformers.js",
"require": "./document_transformers.cjs"
},
"./callbacks/tracers/log_stream": {
"types": "./callbacks/tracers/log_stream.d.ts",
"import": "./callbacks/tracers/log_stream.js",
"require": "./callbacks/tracers/log_stream.cjs"
"./embeddings": {
"types": "./embeddings.d.ts",
"import": "./embeddings.js",
"require": "./embeddings.cjs"
},
"./callbacks/tracers/run_collector": {
"types": "./callbacks/tracers/run_collector.d.ts",
"import": "./callbacks/tracers/run_collector.js",
"require": "./callbacks/tracers/run_collector.cjs"
"./example_selectors": {
"types": "./example_selectors.d.ts",
"import": "./example_selectors.js",
"require": "./example_selectors.cjs"
},
"./callbacks/tracers/tracer_langchain_v1": {
"types": "./callbacks/tracers/tracer_langchain_v1.d.ts",
"import": "./callbacks/tracers/tracer_langchain_v1.js",
"require": "./callbacks/tracers/tracer_langchain_v1.cjs"
"./language_models/base": {
"types": "./language_models/base.d.ts",
"import": "./language_models/base.js",
"require": "./language_models/base.cjs"
},
"./callbacks/tracers/tracer_langchain": {
"types": "./callbacks/tracers/tracer_langchain.d.ts",
"import": "./callbacks/tracers/tracer_langchain.js",
"require": "./callbacks/tracers/tracer_langchain.cjs"
"./language_models/chat_models": {
"types": "./language_models/chat_models.d.ts",
"import": "./language_models/chat_models.js",
"require": "./language_models/chat_models.cjs"
},
"./chat_model": {
"types": "./chat_model.d.ts",
"import": "./chat_model.js",
"require": "./chat_model.cjs"
"./language_models/llms": {
"types": "./language_models/llms.d.ts",
"import": "./language_models/llms.js",
"require": "./language_models/llms.cjs"
},
"./llm": {
"types": "./llm.d.ts",
"import": "./llm.js",
"require": "./llm.cjs"
},
"./load": {

@@ -152,2 +157,22 @@ "types": "./load.d.ts",

},
"./memory": {
"types": "./memory.d.ts",
"import": "./memory.js",
"require": "./memory.cjs"
},
"./messages": {
"types": "./messages.d.ts",
"import": "./messages.js",
"require": "./messages.cjs"
},
"./output_parsers": {
"types": "./output_parsers.d.ts",
"import": "./output_parsers.js",
"require": "./output_parsers.cjs"
},
"./outputs": {
"types": "./outputs.d.ts",
"import": "./outputs.js",
"require": "./outputs.cjs"
},
"./prompts": {

@@ -158,52 +183,7 @@ "types": "./prompts.d.ts",

},
"./prompts/base": {
"types": "./prompts/base.d.ts",
"import": "./prompts/base.js",
"require": "./prompts/base.cjs"
"./prompt_values": {
"types": "./prompt_values.d.ts",
"import": "./prompt_values.js",
"require": "./prompt_values.cjs"
},
"./prompts/chat": {
"types": "./prompts/chat.d.ts",
"import": "./prompts/chat.js",
"require": "./prompts/chat.cjs"
},
"./prompts/few_shot": {
"types": "./prompts/few_shot.d.ts",
"import": "./prompts/few_shot.js",
"require": "./prompts/few_shot.cjs"
},
"./prompts/pipeline": {
"types": "./prompts/pipeline.d.ts",
"import": "./prompts/pipeline.js",
"require": "./prompts/pipeline.cjs"
},
"./prompts/serde": {
"types": "./prompts/serde.d.ts",
"import": "./prompts/serde.js",
"require": "./prompts/serde.cjs"
},
"./prompts/template": {
"types": "./prompts/template.d.ts",
"import": "./prompts/template.js",
"require": "./prompts/template.cjs"
},
"./prompts/example_selector/base": {
"types": "./prompts/example_selector/base.d.ts",
"import": "./prompts/example_selector/base.js",
"require": "./prompts/example_selector/base.cjs"
},
"./prompts/example_selector/conditional": {
"types": "./prompts/example_selector/conditional.d.ts",
"import": "./prompts/example_selector/conditional.js",
"require": "./prompts/example_selector/conditional.cjs"
},
"./prompts/example_selector/length_based": {
"types": "./prompts/example_selector/length_based.d.ts",
"import": "./prompts/example_selector/length_based.js",
"require": "./prompts/example_selector/length_based.cjs"
},
"./prompts/example_selector/semantic_similarity": {
"types": "./prompts/example_selector/semantic_similarity.d.ts",
"import": "./prompts/example_selector/semantic_similarity.js",
"require": "./prompts/example_selector/semantic_similarity.cjs"
},
"./runnables": {

@@ -214,122 +194,92 @@ "types": "./runnables.d.ts",

},
"./schema": {
"types": "./schema.d.ts",
"import": "./schema.js",
"require": "./schema.cjs"
"./retrievers": {
"types": "./retrievers.d.ts",
"import": "./retrievers.js",
"require": "./retrievers.cjs"
},
"./schema/agent": {
"types": "./schema/agent.d.ts",
"import": "./schema/agent.js",
"require": "./schema/agent.cjs"
"./stores": {
"types": "./stores.d.ts",
"import": "./stores.js",
"require": "./stores.cjs"
},
"./schema/cache": {
"types": "./schema/cache.d.ts",
"import": "./schema/cache.js",
"require": "./schema/cache.cjs"
"./tracers/base": {
"types": "./tracers/base.d.ts",
"import": "./tracers/base.js",
"require": "./tracers/base.cjs"
},
"./schema/chat_history": {
"types": "./schema/chat_history.d.ts",
"import": "./schema/chat_history.js",
"require": "./schema/chat_history.cjs"
"./tracers/console": {
"types": "./tracers/console.d.ts",
"import": "./tracers/console.js",
"require": "./tracers/console.cjs"
},
"./schema/document": {
"types": "./schema/document.d.ts",
"import": "./schema/document.js",
"require": "./schema/document.cjs"
"./tracers/initialize": {
"types": "./tracers/initialize.d.ts",
"import": "./tracers/initialize.js",
"require": "./tracers/initialize.cjs"
},
"./schema/embeddings": {
"types": "./schema/embeddings.d.ts",
"import": "./schema/embeddings.js",
"require": "./schema/embeddings.cjs"
"./tracers/log_stream": {
"types": "./tracers/log_stream.d.ts",
"import": "./tracers/log_stream.js",
"require": "./tracers/log_stream.cjs"
},
"./schema/language_model": {
"types": "./schema/language_model.d.ts",
"import": "./schema/language_model.js",
"require": "./schema/language_model.cjs"
"./tracers/run_collector": {
"types": "./tracers/run_collector.d.ts",
"import": "./tracers/run_collector.js",
"require": "./tracers/run_collector.cjs"
},
"./schema/memory": {
"types": "./schema/memory.d.ts",
"import": "./schema/memory.js",
"require": "./schema/memory.cjs"
"./tracers/tracer_langchain_v1": {
"types": "./tracers/tracer_langchain_v1.d.ts",
"import": "./tracers/tracer_langchain_v1.js",
"require": "./tracers/tracer_langchain_v1.cjs"
},
"./schema/messages": {
"types": "./schema/messages.d.ts",
"import": "./schema/messages.js",
"require": "./schema/messages.cjs"
"./tracers/tracer_langchain": {
"types": "./tracers/tracer_langchain.d.ts",
"import": "./tracers/tracer_langchain.js",
"require": "./tracers/tracer_langchain.cjs"
},
"./schema/output_parser": {
"types": "./schema/output_parser.d.ts",
"import": "./schema/output_parser.js",
"require": "./schema/output_parser.cjs"
"./utils/async_caller": {
"types": "./utils/async_caller.d.ts",
"import": "./utils/async_caller.js",
"require": "./utils/async_caller.cjs"
},
"./schema/output": {
"types": "./schema/output.d.ts",
"import": "./schema/output.js",
"require": "./schema/output.cjs"
"./utils/env": {
"types": "./utils/env.d.ts",
"import": "./utils/env.js",
"require": "./utils/env.cjs"
},
"./schema/prompt_template": {
"types": "./schema/prompt_template.d.ts",
"import": "./schema/prompt_template.js",
"require": "./schema/prompt_template.cjs"
"./utils/hash": {
"types": "./utils/hash.d.ts",
"import": "./utils/hash.js",
"require": "./utils/hash.cjs"
},
"./schema/prompt": {
"types": "./schema/prompt.d.ts",
"import": "./schema/prompt.js",
"require": "./schema/prompt.cjs"
"./utils/json_patch": {
"types": "./utils/json_patch.d.ts",
"import": "./utils/json_patch.js",
"require": "./utils/json_patch.cjs"
},
"./schema/retriever": {
"types": "./schema/retriever.d.ts",
"import": "./schema/retriever.js",
"require": "./schema/retriever.cjs"
"./utils/json_schema": {
"types": "./utils/json_schema.d.ts",
"import": "./utils/json_schema.js",
"require": "./utils/json_schema.cjs"
},
"./schema/storage": {
"types": "./schema/storage.d.ts",
"import": "./schema/storage.js",
"require": "./schema/storage.cjs"
"./utils/stream": {
"types": "./utils/stream.d.ts",
"import": "./utils/stream.js",
"require": "./utils/stream.cjs"
},
"./schema/vectorstore": {
"types": "./schema/vectorstore.d.ts",
"import": "./schema/vectorstore.js",
"require": "./schema/vectorstore.cjs"
"./utils/tiktoken": {
"types": "./utils/tiktoken.d.ts",
"import": "./utils/tiktoken.js",
"require": "./utils/tiktoken.cjs"
},
"./util/async_caller": {
"types": "./util/async_caller.d.ts",
"import": "./util/async_caller.js",
"require": "./util/async_caller.cjs"
"./utils/types": {
"types": "./utils/types.d.ts",
"import": "./utils/types.js",
"require": "./utils/types.cjs"
},
"./util/env": {
"types": "./util/env.d.ts",
"import": "./util/env.js",
"require": "./util/env.cjs"
"./vectorstores": {
"types": "./vectorstores.d.ts",
"import": "./vectorstores.js",
"require": "./vectorstores.cjs"
},
"./util/hash": {
"types": "./util/hash.d.ts",
"import": "./util/hash.js",
"require": "./util/hash.cjs"
},
"./util/json_patch": {
"types": "./util/json_patch.d.ts",
"import": "./util/json_patch.js",
"require": "./util/json_patch.cjs"
},
"./util/json_schema": {
"types": "./util/json_schema.d.ts",
"import": "./util/json_schema.js",
"require": "./util/json_schema.cjs"
},
"./util/stream": {
"types": "./util/stream.d.ts",
"import": "./util/stream.js",
"require": "./util/stream.cjs"
},
"./util/tiktoken": {
"types": "./util/tiktoken.d.ts",
"import": "./util/tiktoken.js",
"require": "./util/tiktoken.cjs"
},
"./util/types": {
"types": "./util/types.d.ts",
"import": "./util/types.js",
"require": "./util/types.cjs"
},
"./package.json": "./package.json"

@@ -339,2 +289,8 @@ },

"dist/",
"agents.cjs",
"agents.js",
"agents.d.ts",
"caches.cjs",
"caches.js",
"caches.d.ts",
"callbacks/base.cjs",

@@ -349,29 +305,26 @@ "callbacks/base.js",

"callbacks/promises.d.ts",
"callbacks/tracers/base.cjs",
"callbacks/tracers/base.js",
"callbacks/tracers/base.d.ts",
"callbacks/tracers/console.cjs",
"callbacks/tracers/console.js",
"callbacks/tracers/console.d.ts",
"callbacks/tracers/initialize.cjs",
"callbacks/tracers/initialize.js",
"callbacks/tracers/initialize.d.ts",
"callbacks/tracers/log_stream.cjs",
"callbacks/tracers/log_stream.js",
"callbacks/tracers/log_stream.d.ts",
"callbacks/tracers/run_collector.cjs",
"callbacks/tracers/run_collector.js",
"callbacks/tracers/run_collector.d.ts",
"callbacks/tracers/tracer_langchain_v1.cjs",
"callbacks/tracers/tracer_langchain_v1.js",
"callbacks/tracers/tracer_langchain_v1.d.ts",
"callbacks/tracers/tracer_langchain.cjs",
"callbacks/tracers/tracer_langchain.js",
"callbacks/tracers/tracer_langchain.d.ts",
"chat_model.cjs",
"chat_model.js",
"chat_model.d.ts",
"llm.cjs",
"llm.js",
"llm.d.ts",
"chat_history.cjs",
"chat_history.js",
"chat_history.d.ts",
"documents.cjs",
"documents.js",
"documents.d.ts",
"document_transformers.cjs",
"document_transformers.js",
"document_transformers.d.ts",
"embeddings.cjs",
"embeddings.js",
"embeddings.d.ts",
"example_selectors.cjs",
"example_selectors.js",
"example_selectors.d.ts",
"language_models/base.cjs",
"language_models/base.js",
"language_models/base.d.ts",
"language_models/chat_models.cjs",
"language_models/chat_models.js",
"language_models/chat_models.d.ts",
"language_models/llms.cjs",
"language_models/llms.js",
"language_models/llms.d.ts",
"load.cjs",

@@ -383,110 +336,77 @@ "load.js",

"load/serializable.d.ts",
"memory.cjs",
"memory.js",
"memory.d.ts",
"messages.cjs",
"messages.js",
"messages.d.ts",
"output_parsers.cjs",
"output_parsers.js",
"output_parsers.d.ts",
"outputs.cjs",
"outputs.js",
"outputs.d.ts",
"prompts.cjs",
"prompts.js",
"prompts.d.ts",
"prompts/base.cjs",
"prompts/base.js",
"prompts/base.d.ts",
"prompts/chat.cjs",
"prompts/chat.js",
"prompts/chat.d.ts",
"prompts/few_shot.cjs",
"prompts/few_shot.js",
"prompts/few_shot.d.ts",
"prompts/pipeline.cjs",
"prompts/pipeline.js",
"prompts/pipeline.d.ts",
"prompts/serde.cjs",
"prompts/serde.js",
"prompts/serde.d.ts",
"prompts/template.cjs",
"prompts/template.js",
"prompts/template.d.ts",
"prompts/example_selector/base.cjs",
"prompts/example_selector/base.js",
"prompts/example_selector/base.d.ts",
"prompts/example_selector/conditional.cjs",
"prompts/example_selector/conditional.js",
"prompts/example_selector/conditional.d.ts",
"prompts/example_selector/length_based.cjs",
"prompts/example_selector/length_based.js",
"prompts/example_selector/length_based.d.ts",
"prompts/example_selector/semantic_similarity.cjs",
"prompts/example_selector/semantic_similarity.js",
"prompts/example_selector/semantic_similarity.d.ts",
"prompt_values.cjs",
"prompt_values.js",
"prompt_values.d.ts",
"runnables.cjs",
"runnables.js",
"runnables.d.ts",
"schema.cjs",
"schema.js",
"schema.d.ts",
"schema/agent.cjs",
"schema/agent.js",
"schema/agent.d.ts",
"schema/cache.cjs",
"schema/cache.js",
"schema/cache.d.ts",
"schema/chat_history.cjs",
"schema/chat_history.js",
"schema/chat_history.d.ts",
"schema/document.cjs",
"schema/document.js",
"schema/document.d.ts",
"schema/embeddings.cjs",
"schema/embeddings.js",
"schema/embeddings.d.ts",
"schema/language_model.cjs",
"schema/language_model.js",
"schema/language_model.d.ts",
"schema/memory.cjs",
"schema/memory.js",
"schema/memory.d.ts",
"schema/messages.cjs",
"schema/messages.js",
"schema/messages.d.ts",
"schema/output_parser.cjs",
"schema/output_parser.js",
"schema/output_parser.d.ts",
"schema/output.cjs",
"schema/output.js",
"schema/output.d.ts",
"schema/prompt_template.cjs",
"schema/prompt_template.js",
"schema/prompt_template.d.ts",
"schema/prompt.cjs",
"schema/prompt.js",
"schema/prompt.d.ts",
"schema/retriever.cjs",
"schema/retriever.js",
"schema/retriever.d.ts",
"schema/storage.cjs",
"schema/storage.js",
"schema/storage.d.ts",
"schema/vectorstore.cjs",
"schema/vectorstore.js",
"schema/vectorstore.d.ts",
"util/async_caller.cjs",
"util/async_caller.js",
"util/async_caller.d.ts",
"util/env.cjs",
"util/env.js",
"util/env.d.ts",
"util/hash.cjs",
"util/hash.js",
"util/hash.d.ts",
"util/json_patch.cjs",
"util/json_patch.js",
"util/json_patch.d.ts",
"util/json_schema.cjs",
"util/json_schema.js",
"util/json_schema.d.ts",
"util/stream.cjs",
"util/stream.js",
"util/stream.d.ts",
"util/tiktoken.cjs",
"util/tiktoken.js",
"util/tiktoken.d.ts",
"util/types.cjs",
"util/types.js",
"util/types.d.ts",
"retrievers.cjs",
"retrievers.js",
"retrievers.d.ts",
"stores.cjs",
"stores.js",
"stores.d.ts",
"tracers/base.cjs",
"tracers/base.js",
"tracers/base.d.ts",
"tracers/console.cjs",
"tracers/console.js",
"tracers/console.d.ts",
"tracers/initialize.cjs",
"tracers/initialize.js",
"tracers/initialize.d.ts",
"tracers/log_stream.cjs",
"tracers/log_stream.js",
"tracers/log_stream.d.ts",
"tracers/run_collector.cjs",
"tracers/run_collector.js",
"tracers/run_collector.d.ts",
"tracers/tracer_langchain_v1.cjs",
"tracers/tracer_langchain_v1.js",
"tracers/tracer_langchain_v1.d.ts",
"tracers/tracer_langchain.cjs",
"tracers/tracer_langchain.js",
"tracers/tracer_langchain.d.ts",
"utils/async_caller.cjs",
"utils/async_caller.js",
"utils/async_caller.d.ts",
"utils/env.cjs",
"utils/env.js",
"utils/env.d.ts",
"utils/hash.cjs",
"utils/hash.js",
"utils/hash.d.ts",
"utils/json_patch.cjs",
"utils/json_patch.js",
"utils/json_patch.d.ts",
"utils/json_schema.cjs",
"utils/json_schema.js",
"utils/json_schema.d.ts",
"utils/stream.cjs",
"utils/stream.js",
"utils/stream.d.ts",
"utils/tiktoken.cjs",
"utils/tiktoken.js",
"utils/tiktoken.d.ts",
"utils/types.cjs",
"utils/types.js",
"utils/types.d.ts",
"vectorstores.cjs",
"vectorstores.js",
"vectorstores.d.ts",
"index.cjs",

@@ -493,0 +413,0 @@ "index.js",

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 not supported yet

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 not supported yet

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 not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc