ADK for TypeScript: API Reference
System
Light
Dark
Search…
Preparing search index...
findEventByLastFunctionResponseId
函数:findEventByLastFunctionResponseId
findEventByLastFunctionResponseId
(
events
:
Event
[]
)
:
Event
|
null
它以相反的顺序遍历这些事件,并返回包含函数调用的那个事件。
functionCall.id
匹配……
functionResponse.id
从会话中的上一个事件开始计算。
参数
事件
:
事件
[]
返回值
事件
|
null
ADK for TypeScript: API Reference - v2.5.0
Loading...
它以相反的顺序遍历这些事件,并返回包含函数调用的那个事件。 functionCall.id 匹配…… functionResponse.id 从会话中的上一个事件开始计算。