m365-agents-ts
使用 TypeScript 构建 Microsoft 365 智能体
开发者需要适用于 Teams 和 Copilot Studio 的 Microsoft 365 智能体可靠模式。此技能提供用于路由、托管、流式传输以及 Copilot Studio 集成的 TypeScript 示例。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "m365-agents-ts" from https://skillstore.io/skills/sickn33-m365-agents-ts.md and its manifest at https://skillstore.io/api/skills/sickn33-m365-agents-ts/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“m365-agents-ts”。 为使用 TypeScript 的 Teams 规划一个 Microsoft 365 智能体启动项目。
预期结果:
一份简洁的构建计划,涵盖包、托管选择、路由处理程序、配置需求,以及编码前的文档检查。
正在使用“m365-agents-ts”。 审查 Teams 智能体的流式响应处理程序。
预期结果:
一次聚焦的审查,涵盖进度更新、敏感度标签、流完成、错误处理和安全的 Azure OpenAI 配置。
正在使用“m365-agents-ts”。 选择 Copilot Studio 集成方法。
预期结果:
直接客户端和 WebChat 选项的比较,包括设置需求、令牌处理、用户体验和部署注意事项。
安全审计
安全Static analysis mainly flagged Markdown code fences, documentation links, and environment variable examples in SKILL.md. No prompt injection, credential exfiltration, or malicious automation intent was found. The skill is documentation-oriented, but authors should keep stronger warnings around secrets and production validation.
风险因素
⚙️ 外部命令 (15)
🌐 网络访问 (7)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/sickn33-m365-agents-ts/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-m365-agents-ts?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-m365-agents-ts?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-m365-agents-ts/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-m365-agents-ts.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). m365-agents-ts security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-m365-agents-ts/audits/4BibTeX 引用
@techreport{sickn33-sickn33-m365-agents-ts-2026,
author = {sickn33},
title = {m365-agents-ts security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/sickn33-m365-agents-ts/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "m365-agents-ts security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/sickn33-m365-agents-ts/audits/4"
identifiers:
- type: other
value: "skillstore:sickn33-m365-agents-ts:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
创建 Teams 智能体启动项目
使用托管和路由示例,为 Teams 或 Microsoft 365 规划一个基础 TypeScript 智能体。
规划 Copilot Studio 集成
在连接现有 Copilot Studio 智能体之前,比较直接客户端和 WebChat 模式。
添加流式回答
使用流式响应模式,设计带有状态更新的长时间运行 Azure OpenAI 响应。
试试这些提示
为使用 AgentApplication 和 Express 托管的 Microsoft 365 智能体创建一个 TypeScript 启动计划。包括所需包和主要文件。
帮我为 Teams 智能体设计消息和会话更新处理程序。保持每个处理程序聚焦,并解释所需的 TurnContext 用法。
为 Microsoft 365 智能体中的 Azure OpenAI 设计流式响应流程。包括标签、进度更新和最终流清理。
审查我的 Microsoft 365 Agents SDK 设计是否已达到生产就绪状态。检查身份验证、环境变量、日志记录、错误处理和 Copilot Studio 集成。
最佳实践
- 在生成最终代码之前,验证当前 Microsoft SDK 签名。
- 将机密保存在托管存储或环境变量中,并在启动时进行验证。
- 在生产部署前添加身份验证、负载验证和脱敏日志记录。
避免
- 不要将真实 API 密钥、客户端密钥或 bearer tokens 粘贴到提示或源文件中。
- 不要将这些代码片段视为完整的生产安全模型。
- 未经审查和脱敏,不要记录 invoke 负载或 Copilot 回复。