话题 / 语音代理的会话时限

观点转述

两小时会话时限强制生效,无论是否存在进行中的查询

语音代理会话在两小时后过期;进行中的函数调用不会延长会话,系统在 1h 55m 发出 MAXIMUM_SESSION_LENGTH_APPROACHING,在 2h 发出 MAXIMUM_SESSION_LENGTH_REACHED。

观点背后的信息

译文仅辅助阅读;核查观点请以原始摘录为准。

语音代理函数调用指南:实时数据查询

是的,时限为两小时,进行中的查找不会保持会话开启。在 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 .