Static
extractExtracts the role of a generic message and maps it to a Google Vertex AI chat author.
The chat message to extract the role from.
The role of the message mapped to a Google Vertex AI chat author.
Static
fromCreates a new Google Vertex AI chat message from a base message.
The base message to convert.
The model to use for conversion.
A new Google Vertex AI chat message.
Static
mapMaps a message type to a Google Vertex AI chat author.
The message to map.
The model to use for mapping.
The message type mapped to a Google Vertex AI chat author.
Represents a chat message in the Google Vertex AI chat model.