ToolCallRequest

org.llm4s.toolapi.ToolCallRequest
See theToolCallRequest companion object
@Stable
final case class ToolCallRequest

Carries the name and parsed JSON arguments for a single tool invocation.

Produced by the agent framework from org.llm4s.llmconnect.model.ToolCall values in the LLM response. arguments is a pre-parsed ujson.Value (not a raw JSON string), so tool implementations receive structured data directly.

Value parameters

arguments

Parsed JSON arguments; typically a JSON object whose fields correspond to the tool's declared Schema.

functionName

Name of the tool to invoke; matched against ToolFunction.name in ToolRegistry.execute.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withArguments(arguments: Value): ToolCallRequest

Replace the parsed JSON arguments.

Replace the parsed JSON arguments.

Attributes

def withFunctionName(functionName: String): ToolCallRequest

Replace the name of the tool to invoke.

Replace the name of the tool to invoke.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product