Class GPTFunctionCallDetails
- java.lang.Object
 - 
- com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
 
 
- 
public class GPTFunctionCallDetails extends Object
Represents the a call of a function used as a tool in the chat completion request. 
- 
- 
Constructor Summary
Constructors Constructor Description GPTFunctionCallDetails(String name, String arguments)Creates the object 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetArguments()A JSON for the arguments the function is called with.StringgetName()The name of the function to be called.inthashCode()GPTFunctionCallDetailsmergeDelta(GPTFunctionCallDetails function)StringtoString()String representation for debugging. 
 - 
 
- 
- 
Constructor Detail
- 
GPTFunctionCallDetails
public GPTFunctionCallDetails(String name, String arguments)
Creates the object- Parameters:
 name- The name of the function to be called. This must be unique and can only contain a-z, A-Z, 0-9, underscores, and dashes.arguments- A JSON for the arguments the function is called with.
 
 - 
 
- 
Method Detail
- 
getName
public String getName()
The name of the function to be called. This must be unique and can only contain a-z, A-Z, 0-9, underscores, and dashes. 
- 
getArguments
public String getArguments()
A JSON for the arguments the function is called with. 
- 
toString
public String toString()
String representation for debugging. 
- 
mergeDelta
public GPTFunctionCallDetails mergeDelta(@Nullable GPTFunctionCallDetails function)
 
 - 
 
 -