Claudio.A2A.Message (Claudio v0.5.0)
View SourceA2A Message — a communication turn between a client and remote agent.
Examples
alias Claudio.A2A.{Message, Part}
message = Message.new(:user, [Part.text("Search for Elixir libraries")])
# With task context
message = Message.new(:user, [Part.text("Continue searching")])
|> Message.set_task_id("task-123")
Summary
Functions
Create a new message with a role and parts.
Set the context ID for grouping related tasks.
Set metadata on the message.
Set the task ID for multi-turn conversations.
Types
@type role() :: :user | :agent
Functions
@spec new(role(), [Claudio.A2A.Part.t()]) :: t()
Create a new message with a role and parts.
Set the context ID for grouping related tasks.
Set metadata on the message.
Set the task ID for multi-turn conversations.