360 Secure SkillHub
360 安全技能中心

integrate-atlas-chat

该 Skill 仅在用户明确要求应用内嵌入聊天、且宿主侧栏方案不可用时,指导开发者用 useAtlasChat 接入 Cognite Atlas Agent,并附带基于 Pyodide 的 Python 工具执行、会话与校验代码;默认引导到侧栏集成方案。

cognitedata
热度 14.58
最近更新 2026-10-19 03:38:01
分类:开发依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:API 集成 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cognitedata/builder-skills/integrate-atlas-chat
Metadata
name
integrate-atlas-chat
description
Exception path. Use integrate-fusion-agent for Atlas/chat/agent. Only when the user explicitly requires in-app useAtlasChat and connectToHostApp cannot provide the EOS sidebar (standalone app, always rejects). Triggers: useAtlasChat, in-app atlas chat, embedded chat, vendored atlas-agent. Not for generic "add a chat".
allowed-tools
Read, Glob, Grep, Edit, Write, Bash
metadata
{"argument-hint":"[agent-external-id]"}

Integrate Atlas Agent Chat (exception path)

Stop. Use integrate-fusion-agent (Atlas / EOS sidebar) unless all of:

  1. The user asked for an in-app / embedded chat — not "add Atlas" / "add a chat"
  2. The host Atlas sidebar cannot work. There is no manifest field for this. Probe the app:
    • @cognite/app-sdk + connectToHostApp / useHostApp resolving inside Fusion/EOS → sidebar works; do not continue
    • Standalone-only (host connect always rejects; app is never loaded in Fusion) → in-app chat is allowed
    • If unsure, ask. Default to the sidebar.
  3. The user accepted this as the non-standard path

Then follow https://docs.cognite.com/cdf/flows/guides/ai_agent_integration and wire useAtlasChat for $ARGUMENTS. Keep the product UI; do not replace the app with a chat view.

Do not map send() / chat completions over DMS rows. If per-item completions are required: 5 per user action, ceiling 50, cache by space:externalId:lastUpdatedTime. See integrate-fusion-agent.