|
|
|
@ -589,7 +589,7 @@ class ChatApiService(private val context: android.content.Context? = null) : Cor |
|
|
|
val functionName = firstToolCall.name |
|
|
|
val argumentsJson = firstToolCall.arguments |
|
|
|
var isError = false |
|
|
|
val errorText = "" |
|
|
|
var errorText = "" |
|
|
|
val result = if (_mcpClient?.hasToolWithName(functionName) == true) { |
|
|
|
// 解析参数,如果参数为空JSON对象,使用空Map |
|
|
|
val arguments = if (argumentsJson == "{}") { |
|
|
|
|