Base class for all prompt templates, returning a prompt.
A list of the names of the variables whose values are required as inputs to the prompt.
A list of the names of the variables for placeholder or MessagePlaceholder that
are optional.
These variables are auto inferred from the prompt and user need not provide them.
A dictionary of the types of the variables the prompt template expects.
If not provided, all variables are assumed to be strings.
How to parse the output of calling an LLM on this formatted prompt.
A dictionary of the partial variables the prompt template carries.
Partial variables populate the template so that you don't need to pass them in every time you call the prompt.
Metadata to be used for tracing.
Tags to be used for tracing.
Return the output type of the prompt.
Validate variable names do not include restricted names.
Get the namespace of the LangChain object.
Return True as this class is serializable.
Get the input schema for the prompt.
Invoke the prompt.
Async invoke the prompt.
Create PromptValue.
Async create PromptValue.
Return a partial of the prompt template.
Format the prompt with the inputs.
Async format the prompt with the inputs.
Return dictionary representation of prompt.
Save the prompt.
Get a JSON schema that represents the input to the Runnable.
Get a JSON schema that represents the output of the Runnable.
The type of config this Runnable accepts specified as a Pydantic model.
Get a JSON schema that represents the config of the Runnable.
Return a list of prompts used by this Runnable.
Pipe Runnable objects.
Pick keys from the output dict of this Runnable.
Merge the Dict input with the output produced by the mapping argument.
Run invoke in parallel on a list of inputs.
Run ainvoke in parallel on a list of inputs.
Stream all output from a Runnable, as reported to the callback system.
Generate a stream of events.
Bind arguments to a Runnable, returning a new Runnable.
Bind lifecycle listeners to a Runnable, returning a new Runnable.
Bind async lifecycle listeners to a Runnable.
Bind input and output types to a Runnable, returning a new Runnable.
Create a new Runnable that retries the original Runnable on exceptions.
Map a function to multiple iterables.
Add fallbacks to a Runnable, returning a new Runnable.
Create a BaseTool from a Runnable.