ADK for TypeScript: API Reference
System
Light
Dark
Search…
Preparing search index...
isBaseAgent
Function isBaseAgent
isBaseAgent
(
obj
:
unknown
)
:
obj
is
BaseAgent
<
BaseAgentConfig
>
使用类型检查(type guard)来确认某个对象是否为 BaseAgent 的实例。
参数
obj
:
unknown
需要检查的对象。
返回值
obj
是
BaseAgent
<
BaseAgentConfig
>
如果该对象是 BaseAgent 的实例,则返回 True;否则返回 False。
ADK for TypeScript: API Reference - v2.5.0
Loading...
使用类型检查(type guard)来确认某个对象是否为 BaseAgent 的实例。