语音代理函数调用指南:实时数据查询
是的,时限为两小时,进行中的查找不会保持会话开启。在 1 小时 55 分钟时,你会收到一条带有 MAXIMUM_SESSION_LENGTH_APPROACHING 的 Warning;在两小时上限时,则会收到一条带有 MAXIMUM_SESSION_LENGTH_REACHED 的 Error。
原始摘录
Yes, at two hours, and an in-flight lookup won't hold the session open. You get a Warning with MAXIMUM_SESSION_LENGTH_APPROACHING at 1 hour 55 minutes, then an Error with MAXIMUM_SESSION_LENGTH_REACHED at the two-hour limit .
上下文
KeepAlive 无法延长该时限,且文档未涵盖关闭时处于待处理状态的 FunctionCallRequest。完成或放弃它,然后通过 agent.context 重新连接。
原始上下文
KeepAlive doesn't extend it, and the docs don't cover a pending FunctionCallRequest at close. Finish or abandon it, then reconnect with agent.context .