org.llm4s.llmconnect.serialization
Members list
Type members
Classlikes
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. It is strict: a call that does not have that shape, or whose arguments are not JSON, fails with an exception, which the client's Try around its response parsing turns into a Left. Arguments nested more than 512 levels deep fail the same way, before they are parsed: they are model output, and a value that deep overflows the stack of whatever renders it next (#1562).
Attributes
- Supertypes
- 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 Objecttrait Matchableclass Any
- Known subtypes
-
object StandardToolCallDeserializer