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

Deepgram Learn ·

一份关于语音代理函数调用的指南,涵盖其直接回答能力、基于2013年研究得出的延迟容忍阈值、工具数量增加导致函数选择准确率下降的现象,以及两小时固定会话时限(含警告与错误信号)。 阅读 4 条观点,查看支持证据与原始来源。

理解这篇

4 个要点

综合解读

  1. 函数调用支持直接回答,避免转接电话

    函数调用使语音代理能够直接回答‘我的订单在哪里?’之类的问题,而非将呼叫者转接给人类座席。

    支持这项说法 1

    函数调用使语音代理能直接回答‘我的订单在哪里?’,而非将呼叫者转接给人工处理该问题。

    Jose Nicholas Francisco · 段落 1

    原始摘录
    Function calling is how a voice agent answers "where's my order?" instead of transferring the caller to someone who can.
    上下文

    入站电话语音代理模式下的一次订单状态查询需经历两次往返、三次函数调用,并针对每种可能的失败路径生成一句语音反馈。

    原始上下文

    One order-status lookup on the inbound telephony agent pattern takes two round trips, three function calls, and a spoken line for every way it can fail.

    回到原文语境 →
  2. 感知意愿在600–800毫秒静默后显著下降

    根据罗伯茨(Roberts)与弗朗西斯(Francis)2013年关于‘间隔容忍度’的研究,感知意愿评分在静默达600毫秒时即明显下降,并在700–800毫秒区间达到统计显著性。

    支持这项说法 1

    在罗伯茨(Roberts)与弗朗西斯(Francis)2013年开展的经典‘间隔容忍度’研究中,受试者对意愿的主观评分在600毫秒处明显下降,该差异在700–800毫秒区间内达到统计显著性。

    Jose Nicholas Francisco · 段落 22

    原始摘录
    Ratings of perceived willingness drop off noticeably at 600ms in the classic 2013 gap-tolerance study from Roberts and Francis, and the difference turns statistically significant between 700 and 800ms.
    上下文

    ‘死寂’指主叫方在您的处理器执行任务期间听到的静音;这种静音会迅速损害用户体验。InjectAgentMessage 是参考模式中用于填补该静音的机制。

    原始上下文

    Dead air is what the caller hears while your handler works, and it costs you fast. InjectAgentMessage is what covers that silence in the reference pattern.

    回到原文语境 →
  3. 工具数从10增至100,选择准确率由98%降至88%

    HumanMCP研究发现:函数选择准确率随可用工具数量增加而下降——使用10个工具时为98%,增至100个工具时降至88%。

    支持这项说法 1

    HumanMCP 研究测得,在 10 个工具时为 98%,到 100 个工具时下降至 88%。

    Jose Nicholas Francisco · 段落 72

    原始摘录
    The HumanMCP study measured a drop from 98% at 10 tools to 88% at 100.
    上下文

    当工具集规模扩大时,选择准确率会下降。应逐个添加函数,并在每次添加后重新检查选择准确率。一个查找、三条失败行和一个填充函数即可构成完整的首次发布版本。

    原始上下文

    When the toolset grows, selection accuracy falls. Add functions one at a time and re-check selection accuracy after each. One lookup, three failure lines, and a filler function make a complete first release.

    回到原文语境 →
  4. 两小时会话时限强制生效,无论是否存在进行中的查询

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

    支持这项说法 1

    是的,时限为两小时,进行中的查找不会保持会话开启。在 1 小时 55 分钟时,你会收到一条带有 MAXIMUM_SESSION_LENGTH_APPROACHING 的 Warning;在两小时上限时,则会收到一条带有 MAXIMUM_SESSION_LENGTH_REACHED 的 Error。

    Jose Nicholas Francisco · 段落 83

    原始摘录
    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 .

    回到原文语境 →

关键段落4

带明确归属与语境的原文片段。打开原始文本核查出处。

函数选择准确率

工具数从10增至100,选择准确率由98%降至88%

HumanMCP 研究测得,在 10 个工具时为 98%,到 100 个工具时下降至 88%。

原始摘录
The HumanMCP study measured a drop from 98% at 10 tools to 88% at 100.
上下文

当工具集规模扩大时,选择准确率会下降。应逐个添加函数,并在每次添加后重新检查选择准确率。一个查找、三条失败行和一个填充函数即可构成完整的首次发布版本。

原始上下文

When the toolset grows, selection accuracy falls. Add functions one at a time and re-check selection accuracy after each. One lookup, three failure lines, and a filler function make a complete first release.

语音代理函数调用

函数调用支持直接回答,避免转接电话

函数调用使语音代理能直接回答‘我的订单在哪里?’,而非将呼叫者转接给人工处理该问题。

原始摘录
Function calling is how a voice agent answers "where's my order?" instead of transferring the caller to someone who can.
上下文

入站电话语音代理模式下的一次订单状态查询需经历两次往返、三次函数调用,并针对每种可能的失败路径生成一句语音反馈。

原始上下文

One order-status lookup on the inbound telephony agent pattern takes two round trips, three function calls, and a spoken line for every way it can fail.

语音交互中的延迟容忍度

感知意愿在600–800毫秒静默后显著下降

在罗伯茨(Roberts)与弗朗西斯(Francis)2013年开展的经典‘间隔容忍度’研究中,受试者对意愿的主观评分在600毫秒处明显下降,该差异在700–800毫秒区间内达到统计显著性。

原始摘录
Ratings of perceived willingness drop off noticeably at 600ms in the classic 2013 gap-tolerance study from Roberts and Francis, and the difference turns statistically significant between 700 and 800ms.
上下文

‘死寂’指主叫方在您的处理器执行任务期间听到的静音;这种静音会迅速损害用户体验。InjectAgentMessage 是参考模式中用于填补该静音的机制。

原始上下文

Dead air is what the caller hears while your handler works, and it costs you fast. InjectAgentMessage is what covers that silence in the reference pattern.

语音代理的会话时限

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

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

来源与研究方法

这些观点均关联原始来源。转述已明确标注,不作为逐字原话展示。

打开转录或来源材料 (在新标签页中打开)报告问题

继续了解这些人物的观点