PromptVault.Message behaviour (PromptVault v0.1.0)
View SourceBehaviour for message types in PromptVault.
All message types must implement this behaviour to provide consistent access to role, raw content, rendered output, and template engine information.
Summary
Callbacks
Returns the raw content of the message.
Renders the message with the given assigns, returning iodata.
Returns the role of the message as an atom.
Returns the template engine used by this message, or nil if none.
Types
@type t() :: term()
Callbacks
Returns the raw content of the message.
Renders the message with the given assigns, returning iodata.
Returns the role of the message as an atom.
Returns the template engine used by this message, or nil if none.