View Source Anthropic.Messages.Message (anthropic_community v0.5.0)
A message returned by the Anthropic Messages API — the {:ok, message} result of
Anthropic.Messages.create/2 or the final fold of Anthropic.Messages.stream/2.
Summary
Functions
Converts this message into a plain map suitable for the messages request param, for
continuing a conversation (tool-use loop, multi-turn chat).
True if this message is asking the caller to run tools.
All tool_use content blocks in this message, in order.
Types
Functions
Converts this message into a plain map suitable for the messages request param, for
continuing a conversation (tool-use loop, multi-turn chat).
True if this message is asking the caller to run tools.
@spec tool_uses(t()) :: [Anthropic.Messages.Content.ToolUse.t()]
All tool_use content blocks in this message, in order.