View Source Ollamex.ChatMessage (Ollamex v0.2.0)

Defines the struct used to store data of a chat message and provides helper functions to create a list of chat messages using the pipeline operator.

Summary

Functions

Append a message (%Ollamex.ChatMessage{}) to a list of existing ones.

Create the first message (%Ollamex.ChatMessage{}) in a list.

Functions

Link to this function

append(cm, role, content, images \\ [])

View Source (since 0.1.0)

Append a message (%Ollamex.ChatMessage{}) to a list of existing ones.

Link to this function

create(role, content, images \\ [])

View Source (since 0.1.0)

Create the first message (%Ollamex.ChatMessage{}) in a list.