from_messages_and_schema(
cls,
messages: Sequence[MessageLikeRepresentation],
schema: dict | type,
**| 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: {} |
Create a chat prompt template from a variety of message formats.
Any additional kwargs to pass through to
ChatModel.with_structured_output(schema, **kwargs).