DeepEvalEx.Schemas.ToolCall (DeepEvalEx v0.1.0)

View Source

Represents a tool call made by an LLM.

Used for evaluating agentic LLM behaviors where the model invokes external tools or functions.

Fields

  • :name - The name of the tool called (required)
  • :description - Description of the tool
  • :reasoning - The LLM's reasoning for calling this tool
  • :input_parameters - Parameters passed to the tool
  • :output - The result returned by the tool

Examples

tool_call = %DeepEvalEx.Schemas.ToolCall{
  name: "search_web",
  input_parameters: %{"query" => "weather in Paris"},
  output: "Current weather in Paris: 18°C, partly cloudy"
}

Summary

Types

t()

@type t() :: %DeepEvalEx.Schemas.ToolCall{
  description: String.t() | nil,
  input_parameters: map() | nil,
  name: String.t(),
  output: any(),
  reasoning: String.t() | nil
}