MessageUpdate

org.llm4s.agent.graph.toolloop.MessageUpdate

An operation on the message history, applied to the committed value in commit order.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Append(message: StoredMessage)
final case class EditToolCall(messageId: String, toolCallId: String, arguments: Value)

Replaces one tool call's arguments in an assistant message - an edited approval. An operation rather than a whole-message Replace, so two edits to calls of one message in the same superstep both apply instead of the later overwriting the earlier.

Replaces one tool call's arguments in an assistant message - an edited approval. An operation rather than a whole-message Replace, so two edits to calls of one message in the same superstep both apply instead of the later overwriting the earlier.

Attributes

final case class RemoveThrough(id: String)
final case class RemoveTurn(id: String)

Removes the message id and every message after it: a turn's writes - the user input, the assistant messages, the tool calls and results, and the answer all come after the turn's user message. An output guardrail's Block commits it for the blocked turn, so no blocked content is kept and the next turn continues from the history before it. RemoveThrough is the opposite cut, dropping history up to a message.

Removes the message id and every message after it: a turn's writes - the user input, the assistant messages, the tool calls and results, and the answer all come after the turn's user message. An output guardrail's Block commits it for the blocked turn, so no blocked content is kept and the next turn continues from the history before it. RemoveThrough is the opposite cut, dropping history up to a message.

Attributes

final case class Replace(id: String, message: StoredMessage)