org.llm4s.llmconnect.serialization

Members list

Type members

Classlikes

OpenRouter-specific tool call deserializer.

OpenRouter-specific tool call deserializer.

Handles OpenRouter's double-nested array structure where tool calls are encoded as an array of arrays, rather than the flat array used by most providers.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Standard tool call deserializer for most LLM providers (OpenAI, Anthropic, etc.).

Standard tool call deserializer for most LLM providers (OpenAI, Anthropic, etc.).

Expects a flat JSON array of tool call objects, each containing an id and a function object with name and arguments fields.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

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

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

Supertypes
class Object
trait Matchable
class Any
Known subtypes