Class ConversationToolCallsOfFunction

java.lang.Object
io.dapr.client.domain.ConversationToolCallsOfFunction

public class ConversationToolCallsOfFunction extends Object
Represents a function call within a tool call.
  • Constructor Details

    • ConversationToolCallsOfFunction

      public ConversationToolCallsOfFunction(String name, String arguments)
      Constructor.
      Parameters:
      name - the name of the function to call
      arguments - the arguments to call the function with, as generated by the model in JSON format
  • Method Details

    • getName

      public String getName()
      Gets the name of the function to call.
      Returns:
      the function name
    • getArguments

      public String 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