toJson method
Implementation
@override
Object toJson(AGptRunToolCall object) {
if(object is GptRunCodeInterpreterToolCall) {
return object.toJson();
}
if(object is GptRunRetrievalToolCall) {
return object.toJson();
}
if(object is GptRunFunctionToolCall) {
return object.toJson();
}
throw UnimplementedError();
}