Stream events from this chat model.
Async variant of stream_events. See stream_events for full docs.
Pass a sequence of prompts to the model and return model generations.
Asynchronously pass a sequence of prompts to a model and return generations.
Return a dictionary of the LLM.
Bind kwargs to this chat model, returning a typed _ChatModelBinding.
Bind tools to the model.
Model wrapper that returns outputs formatted to match the given schema.
Whether to cache the response.
Whether to print out response text.
Callbacks to add to the run trace.
Tags to add to the run trace.
Metadata to add to the run trace.
Optional encoder to use for counting tokens.
Get the input type for this Runnable.
The name of the Runnable. Used for debugging and tracing.
Input type.
Output 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.
Fake chat model for testing purposes.
Return the ordered IDs of the tokens in a text.
Get a JSON schema that represents the output of the Runnable.