Tags to add to the run trace.
Pydantic V2 lifecycle hook called automatically after __init__.
If verbose is None, set it.
Not implemented on this class.
Return the ordered IDs of the tokens in a text.
Get the number of tokens present in the text.
Get the number of tokens in the messages.
The name of the Runnable. Used for debugging and tracing.
Input type.
The type of input this Runnable accepts specified as a Pydantic model.
Output schema.
List configurable fields for this Runnable.
Get the name of the Runnable.
Get a Pydantic model that can be used to validate input to the Runnable.
Get a JSON schema that represents the input to the Runnable.
Get a Pydantic model that can be used to validate output to the Runnable.
Base LLM abstract interface.
It should take in a prompt and return a string.
Get a JSON schema that represents the output of the Runnable.