A message returned by the model.
Summary
Functions
True if the response contains no tool calls and no text.
Concatenate all TextPart contents of the response.
All ToolCall parts in order.
Types
@type part() :: ExAgent.Message.Part.Text.t() | ExAgent.Message.Part.ToolCall.t() | ExAgent.Message.Part.Thinking.t()
@type t() :: %ExAgent.Message.Response{ finish_reason: atom() | nil, model_name: String.t() | nil, parts: [part()], timestamp: DateTime.t() | nil, usage: ExAgent.Message.Usage.t() | nil }
Functions
True if the response contains no tool calls and no text.
Concatenate all TextPart contents of the response.
@spec tool_calls(t()) :: [ExAgent.Message.Part.ToolCall.t()]
All ToolCall parts in order.