UNPKG

@langchain/core

Version:
1 lines 3.34 kB
{"version":3,"file":"structured.d.ts","names":["ChatPromptValueInterface","RunnableLike","Runnable","RunnableConfig","InputValues","BaseMessagePromptTemplateLike","ChatPromptTemplate","ChatPromptTemplateInput","StructuredPromptInput","RunInput","PartialVariableName","Record","StructuredPrompt","NewRunOutput","Error","Exclude"],"sources":["../../src/prompts/structured.d.ts"],"sourcesContent":["import { ChatPromptValueInterface } from \"../prompt_values.js\";\nimport { RunnableLike, Runnable } from \"../runnables/base.js\";\nimport { RunnableConfig } from \"../runnables/config.js\";\nimport { InputValues } from \"../utils/types/index.js\";\nimport { BaseMessagePromptTemplateLike, ChatPromptTemplate, ChatPromptTemplateInput } from \"./chat.js\";\n/**\n * Interface for the input of a ChatPromptTemplate.\n */\nexport interface StructuredPromptInput<RunInput extends InputValues = any, PartialVariableName extends string = any> extends ChatPromptTemplateInput<RunInput, PartialVariableName> {\n schema: Record<string, any>;\n method?: \"jsonMode\" | \"jsonSchema\" | \"functionMode\";\n}\nexport declare class StructuredPrompt<RunInput extends InputValues = any, PartialVariableName extends string = any> extends ChatPromptTemplate<RunInput, PartialVariableName> implements StructuredPromptInput<RunInput, PartialVariableName> {\n schema: Record<string, any>;\n method?: \"jsonMode\" | \"jsonSchema\" | \"functionMode\";\n lc_namespace: string[];\n get lc_aliases(): Record<string, string>;\n constructor(input: StructuredPromptInput<RunInput, PartialVariableName>);\n pipe<NewRunOutput>(coerceable: RunnableLike<ChatPromptValueInterface, NewRunOutput>): Runnable<RunInput, Exclude<NewRunOutput, Error>, RunnableConfig>;\n static fromMessagesAndSchema<RunInput extends InputValues = any>(promptMessages: (ChatPromptTemplate<InputValues, string> | BaseMessagePromptTemplateLike)[], schema: StructuredPromptInput[\"schema\"], method?: \"jsonMode\" | \"jsonSchema\" | \"functionMode\"): ChatPromptTemplate<RunInput, any>;\n}\n//# sourceMappingURL=structured.d.ts.map"],"mappings":";;;;;;;;;;;AAQiBQ,UAAAA,qBAAqBC,CAAA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