MistralClient.Models.ToolCall (mistralex_ai v0.1.0)

View Source

Represents a tool/function call.

Summary

Functions

Create a tool call from a map.

Convert a tool call to a map.

Types

t()

@type t() :: %MistralClient.Models.ToolCall{
  function: ToolCallFunction.t(),
  id: String.t(),
  type: String.t()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create a tool call from a map.

to_map(tool_call)

@spec to_map(t()) :: map()

Convert a tool call to a map.