360 Secure SkillHub
360 安全技能中心

Polsia Agent SDK

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

分类:开发
agentlevier
agentlevier
热度 16.33
最近更新 2026-06-16 06:35:20

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add agentlevier/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