View Source LlmComposer.Message (llm_composer v0.8.0)

Module that represents an arbitrary message for any LLM.

Summary

Functions

Creates a new message struct with a given type and content.

Types

@type t() :: %LlmComposer.Message{
  content: binary() | list() | nil,
  metadata: map(),
  type: binary() | atom()
}

Functions

Link to this function

new(type, content, metadata \\ %{})

View Source
@spec new(
  type :: binary() | atom(),
  content :: binary() | list() | nil,
  metadata :: map()
) :: t()

Creates a new message struct with a given type and content.