360 Secure SkillHub
360 安全技能中心

Polsia Agent SDK

提供在 Polsia 平台上构建自主 AI 功能的开发规范:所有产品 AI 调用须经 Polsia API 代理并仅使用平台凭证,禁止直接调用模型厂商接口;区分 runAgent 与 chat 的适用场景,列出可用 MCP,以及无需配置的 save_data、send_email 工具。

agentlevier
agentlevier
热度 16.02
最近更新 2026-06-16 06:35:20
分类:开发依赖:第三方 API / MCP 服务 / 内部调用大模型应用场景:API 集成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add polsia-agent-sdk
Metadata
name
agent-sdk
description
Build autonomous AI features using the Polsia Agent API only; never call model providers directly for product AI.

Agent SDK

Build AI agents that work autonomously for end users. Use the Polsia API proxy for ALL AI features — never call model providers directly.

Key Rules

  • NEVER call anthropic.messages.create() or openai.chat.completions.create() for AI features
  • ONLY use POLSIA_API_URL with POLSIA_API_KEY
  • Use runAgent() for autonomous tasks needing real-time data or tools
  • Use chat() for simple prompt-response patterns

Available MCPs

gmail, github, slack, google_calendar, google_sheets

Auto-Mounted Tools (no config needed)

  • save_data({ type, data }) — stores to agent_data table
  • send_email({ to, subject, body }) — sends from {slug}@polsia.app