View Source LlmComposer.Message (llm_composer v0.5.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() | nil,
  metadata: map(),
  type: binary() | atom()
}

Functions

Link to this function

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

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

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