Claude Platform Docs
  • 消息
  • 托管智能体
  • 管理

Search...
⌘K
第一步
概览快速入门在控制台中构建原型
定义您的智能体
智能体设置工具MCP 连接器权限策略智能体技能
配置智能体环境
云环境设置云沙箱参考
将工作委派给智能体
启动会话会话操作会话事件流订阅 Webhook定义结果使用保管库进行身份验证
管理智能体上下文
访问 GitHub附加和下载文件
高级编排
多智能体会话计划部署
参考
托管智能体参考
处理文件
Files APIPDF 支持
技能
概览最佳实践企业技能
MCP
远程 MCP 服务器
云平台上的 Claude
AWS 上的 Claude Platform

Log in
在控制台中构建原型
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Claude Platform Docs

Solutions

  • AI agents
  • Code modernization
  • Coding
  • Customer support
  • Education
  • Financial services
  • Government
  • Life sciences

Partners

  • Claude on AWS
  • Claude on Google Cloud

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Company

  • Anthropic
  • Careers
  • Economic Futures
  • Research
  • News
  • Responsible Scaling Policy
  • Security and compliance
  • Transparency

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Help and security

  • Availability
  • Status
  • Support
  • Discord

Terms and policies

  • Privacy policy
  • Responsible disclosure policy
  • Terms of service: Commercial
  • Terms of service: Consumer
  • Usage policy
托管智能体/第一步

在 Console 中构建原型

在 Console 中以可视化方式创建和测试智能体,无需编写 API 调用。

Console 提供了用于创建和配置智能体的可视化界面。它让您能够在编写代码之前以交互方式迭代配置。



所有 Managed Agents API 请求都需要 managed-agents-2026-04-01 beta 标头。SDK 会自动设置该 beta 标头。

如何构建智能体

可视化界面会引导您完成智能体定义的每个字段:

  • 模型和系统提示: 选择一个模型,并在全宽编辑器中编写系统提示。
  • MCP 服务器: 通过 URL 添加远程 MCP 服务器,并对您的智能体进行身份验证,使其能够代表您执行操作。
  • 工具: 使用预构建的智能体工具集和 MCP 工具扩展智能体的能力。
  • 技能: 从您组织的技能库中附加 Anthropic 技能或自定义技能。

在您进行配置时,Console 会显示等效的 API 请求,以便您在满意后将其复制到代码中。

测试智能体

Console 包含一个内联会话运行器。配置好智能体后,您可以直接启动测试会话、发送消息,并在不离开页面的情况下观察事件流。这是检查您的系统提示和工具选择是否产生预期行为的最快方式。

从原型到代码

当您的智能体按预期工作后:

  1. 从 Console 中复制智能体 ID 和环境 ID。
  2. 在创建会话时在代码中引用它们:
ant beta:sessions create \
  --agent agent_01J8XkN5uT3vHpLqRfWdY2 \
  --environment-id env_01K2mPsT7hNwR4jXuLvCqD8 \
  --title "My first session"

Was this page helpful?

  • 如何构建智能体
  • 测试智能体
  • 从原型到代码