org.llm4s.llmconnect.model.ToolCall
See theToolCall companion object
A single tool invocation requested by the LLM.
The LLM generates id to correlate this request with its ToolMessage response; the agent framework forwards id unchanged when constructing ToolMessage values, so do not modify it.
arguments is a parsed ujson.Value (typically a JSON object), not a raw string. Use arguments.obj to access fields or pass it directly to org.llm4s.toolapi.ToolRegistry.execute via a org.llm4s.toolapi.ToolCallRequest.
Value parameters
- arguments
-
Parsed JSON arguments; the schema is defined by the tool's org.llm4s.toolapi.Schema.
- id
-
Provider-generated identifier; matched by the corresponding ToolMessage.toolCallId.
- name
-
Name of the tool to invoke; must match a registered org.llm4s.toolapi.ToolFunction.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article