Zep.Thread.Message (Zep v1.0.0)

Copy Markdown View Source

Operations on individual thread messages, addressed by message uuid (as opposed to Zep.Thread.add_messages/4, which appends to a thread).

Summary

Functions

Updates an existing message's :content, :role, :metadata, or :created_at by its message_uuid.

Functions

update(client_or_opts, message_uuid, opts \\ [])

@spec update(Zep.Client.t() | keyword(), String.t(), keyword()) ::
  {:ok, Zep.Schemas.Message.t()} | {:error, term()}

Updates an existing message's :content, :role, :metadata, or :created_at by its message_uuid.

Useful for attaching metadata after the fact - e.g. sentiment analysis results or a processing status - without re-ingesting the message.