Skip to content

mapAgentToImProxyItem

ai_agents 行与已解析的 apiModel 映射为 IM 代理轻量配置。

函数签名

typescript
function mapAgentToImProxyItemIfEligible(
  a: AiAgentRowForImProxyMap,
  resolvedApiModel: string | null | undefined,
): ImProxyAgentListItem | null

工作原理

智能体未启用或 apiModel 为空时返回 null