Browse Source

上传结束交货功能

weicu
liwei1dao 1 year ago
parent
commit
0756037be4
  1. 8
      local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift

8
local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift

@ -1344,11 +1344,17 @@ class ChatApiStreamCallback: StreamCallback {
os_log("收到函数调用: %{public}@", log: agentService.logger, type: .info, name) os_log("收到函数调用: %{public}@", log: agentService.logger, type: .info, name)
print("onFunctionCall=functionCall\(functionCall)") print("onFunctionCall=functionCall\(functionCall)")
if (name == "exit_interaction") {
agentService.stopRecognition()
}
try agentService.sendEvent(name: "function_call", data: [ try agentService.sendEvent(name: "function_call", data: [
"name": name, "name": name,
"arguments": functionCall "arguments": functionCall
]) ])
}catch{ }catch{
print("liwei--------------- AI Call onFunctionCall 异常: \(error)") print("liwei--------------- AI Call onFunctionCall 异常: \(error)")
} }
@ -1523,7 +1529,7 @@ class AudioPlayer {
} }
func playStopSound() { func playStopSound() {
// playSound(named: "stop", fileType: "mp3") playSound(named: "stop", fileType: "mp3")
} }
func playCallingSound() { func playCallingSound() {

Loading…
Cancel
Save