Package io.dapr.client.domain
Class ConversationToolCallsOfFunction
java.lang.Object
io.dapr.client.domain.ConversationToolCallsOfFunction
Represents a function call within a tool call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the arguments to call the function with, as generated by the model in JSON format.getName()Gets the name of the function to call.
-
Constructor Details
-
ConversationToolCallsOfFunction
Constructor.- Parameters:
name- the name of the function to callarguments- the arguments to call the function with, as generated by the model in JSON format
-
-
Method Details
-
getName
Gets the name of the function to call.- Returns:
- the function name
-
getArguments
Gets the arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.- Returns:
- the function arguments in JSON format
-