| Name | Type | Description |
|---|---|---|
prompts* | list[str] | List of string prompts. |
stop | list[str] | None | Default: NoneStop words to use when generating. Model output is cut off at the first occurrence of any of these substrings. |
callbacks | Callbacks | list[Callbacks] | None | Default: None |
tags | list[str] | list[list[str]] | None | Default: None |
metadata | dict[str, Any] | list[dict[str, Any]] | None | Default: None |
run_name | str | list[str] | None | Default: None |
run_id | uuid.UUID | list[uuid.UUID | None] | None | Default: None |
**kwargs | Any | Default: {} |
Asynchronously pass a sequence of prompts to a model and return generations.
This method should make use of batched calls for models that expose a batched API.
Use this method when you want to:
Callbacks to pass through.
Used for executing additional functionality, such as logging or streaming, throughout generation.
List of tags to associate with each prompt. If provided, the length of the list must match the length of the prompts list.
List of metadata dictionaries to associate with each prompt. If provided, the length of the list must match the length of the prompts list.
List of run names to associate with each prompt. If provided, the length of the list must match the length of the prompts list.
List of run IDs to associate with each prompt. If provided, the length of the list must match the length of the prompts list.
Arbitrary additional keyword arguments.
These are usually passed to the model provider API call.