AgentSea.Response (agentsea_core v0.1.0)

Copy Markdown

A normalized provider response.

Summary

Types

stop_reason()

@type stop_reason() :: :stop | :tool_use | :length | :error

t()

@type t() :: %AgentSea.Response{
  content: String.t(),
  raw: term(),
  stop_reason: stop_reason(),
  tool_calls: [AgentSea.ToolCall.t()],
  usage: %{input_tokens: non_neg_integer(), output_tokens: non_neg_integer()}
}