Mojentic.LLM.Tools.ToolCallOutcome (Mojentic v1.5.0)

Copy Markdown View Source

Outcome of executing a single tool call.

Discriminated by :ok?true means the tool returned a result, false means the tool returned an error tuple or raised.

Summary

Types

t()

@type t() :: %Mojentic.LLM.Tools.ToolCallOutcome{
  duration_ms: number(),
  error: term() | nil,
  id: String.t(),
  name: String.t(),
  ok?: boolean(),
  result: term() | nil
}