ToolCallDeserializer

org.llm4s.llmconnect.serialization.ToolCallDeserializer

Abstraction for deserializing tool calls from different LLM provider response formats.

Each provider may encode tool calls differently in its JSON responses. Implementations convert the provider-specific JSON structure into a uniform Vector[ToolCall].

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def deserializeToolCalls(toolCallsJson: Value): Vector[ToolCall]

Parse a JSON value containing tool calls into a uniform sequence.

Parse a JSON value containing tool calls into a uniform sequence.

Value parameters

toolCallsJson

the raw JSON value from the provider's response

Attributes

Returns

parsed tool calls with id, function name, and arguments