Create a chat prompt template from a variety of message formats.
from_messages_and_schema(
cls,
messages: Sequence[MessageLikeRepresentation],
schema: dict | type,
**kwargs: Any = {}
) -> ChatPromptTemplate| Name | Type | Description |
|---|---|---|
messages* | Sequence[MessageLikeRepresentation] | Sequence of message representations. A message can be represented using the following formats:
|
schema* | dict | type | A dictionary representation of function call, or a Pydantic model. |
**kwargs | Any | Default: {}Any additional kwargs to pass through to
|