agents-get-started

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

get-started

快速入门

Walk a developer from zero to a running agent on AWS.
引导开发者从零开始在AWS上搭建并运行一个agent。

When to use

适用场景

  • Developer wants to build an agent on AWS and doesn't know where to start
  • Developer wants to create a new AgentCore project
  • Developer is choosing between frameworks (Strands, LangGraph, GoogleADK, OpenAI Agents)
  • Developer just ran
    agentcore create
    and wants to know what to do next
Do NOT use for:
  • Environment/prerequisite issues (CLI not found, credentials broken) → use
    agents-debug
  • Adding capabilities to an existing project (memory, tools, policies) → use
    agents-build
    or
    agents-connect
  • Migrating an existing Bedrock Agent → use
    agents-build
    (loads
    references/migrate.md
    )
  • 开发者想要在AWS上构建agent,但不知从何入手
  • 开发者想要创建新的AgentCore项目
  • 开发者正在选择框架(Strands、LangGraph、GoogleADK、OpenAI Agents)
  • 开发者刚执行完
    agentcore create
    ,想了解后续操作
请勿用于以下场景:
  • 环境/前置条件问题(CLI未找到、凭证失效)→ 使用
    agents-debug
  • 为现有项目添加功能(内存、工具、策略)→ 使用
    agents-build
    agents-connect
  • 迁移现有Bedrock Agent → 使用
    agents-build
    (加载
    references/migrate.md

Input

输入

$ARGUMENTS
can be:
  • A framework preference: "using LangGraph", "with Strands"
  • A protocol: "MCP server", "A2A"
  • A description of what the agent should do: "a customer support agent"
  • Empty — the skill will guide framework selection
$ARGUMENTS
可以是:
  • 框架偏好:"using LangGraph"、"with Strands"
  • 协议:"MCP server"、"A2A"
  • agent功能描述:"a customer support agent"
  • 空值——本技能会引导开发者选择框架

Process

流程

Step 0: Verify CLI version

步骤0:验证CLI版本

bash
agentcore --version
This skill requires v0.9.0 or later.
If the version is older:
Your AgentCore CLI is out of date (found vX.Y.Z, need v0.9.0+).
Offer to run the update:
agentcore update
. After the update completes, re-check the version to confirm it's ≥0.9.0 before continuing. Preserve any context the developer already provided (framework preference, project name, what they want to build) so they don't have to repeat themselves.
If
agentcore
is not found:
The AgentCore CLI isn't installed. Run
npm install -g @aws/agentcore
(requires Node.js 20+). If you're having trouble with installation, I can run the
agents-debug
skill (which loads
references/doctor.md
) to diagnose your environment.
bash
agentcore --version
本技能需要v0.9.0或更高版本。
如果版本较旧:
你的AgentCore CLI版本已过期(当前版本vX.Y.Z,需要v0.9.0+)。
提供更新命令:
agentcore update
。更新完成后,重新检查版本确认≥0.9.0再继续。保留开发者已提供的所有上下文信息(框架偏好、项目名称、想要构建的功能),避免让他们重复输入。
如果未找到
agentcore
未安装AgentCore CLI。请执行
npm install -g @aws/agentcore
(需要Node.js 20+)。 如果安装遇到问题,我可以运行
agents-debug
技能(加载
references/doctor.md
)来诊断你的环境。

Step 1: Determine intent — exploring or ready to create?

步骤1:确定意图——是探索还是准备创建?

Before jumping into framework selection, figure out where the developer is:
Ask the developer: "Are you exploring options (comparing frameworks, understanding what AgentCore does) or ready to create a project?"
  • Exploring → Go to Step 2 (framework comparison). Present the options, answer questions, and wait. Do not construct a
    create
    command until they signal they're ready.
  • Ready to create → Skip to Step 3 (create the project). If they already specified a framework, skip Step 2 entirely.
  • Already has a project → Look for
    agentcore/agentcore.json
    in the current directory. If found, read it and skip to Step 5 (what to do next). Don't re-scaffold.
If the developer's intent is clear from
$ARGUMENTS
(e.g., "create a Strands agent called MyBot"), skip straight to Step 3.
在进入框架选择之前,先明确开发者所处的阶段:
询问开发者:“你是在探索选项(对比框架、了解AgentCore功能)还是准备创建项目?”
  • 探索 → 进入步骤2(框架对比)。展示选项、解答问题并等待。直到开发者表示准备就绪,再构建
    create
    命令。
  • 准备创建 → 跳过步骤2,直接进入步骤3(创建项目)。如果开发者已指定框架,则完全跳过步骤2。
  • 已有项目 → 检查当前目录是否存在
    agentcore/agentcore.json
    。如果找到,读取该文件并跳至步骤5(后续操作)。请勿重新搭建脚手架。
如果从
$ARGUMENTS
中可明确开发者的意图(例如:“create a Strands agent called MyBot”),则直接跳至步骤3。

Step 2: Framework selection

步骤2:框架选择

Check conversation context first. If the developer already discussed frameworks earlier in this conversation (e.g., from a previous skill invocation), don't re-present the full table. Summarize what was discussed and ask if they've decided, or if anything changed.
If this is the first time discussing frameworks, present the options:
Supported frameworks (CLI-scaffolded, Python):
FrameworkCLI valueBest for
Strands
Strands
AWS-native, simplest path, best AgentCore integration
LangGraph
LangChain_LangGraph
Complex graph-based workflows, existing LangChain investment
Google ADK
GoogleADK
Teams already using Google's agent toolkit
OpenAI Agents
OpenAIAgents
Teams already using OpenAI's agent SDK
Ask the developer to choose. Present the options and wait for their selection. Don't assume a default unless they explicitly say they have no preference.
Note on naming: The CLI flag value is the exact string to pass to
--framework
. In prose use the shorter names.
Default recommendation (only when the developer says "no preference" or "you pick"): Strands — AWS-native framework with the tightest AgentCore integration and the most samples/docs.
Key decision points to surface:
  • "Do you have existing agent code in LangGraph or OpenAI Agents?" → use that framework
  • "Do you need complex graph-based workflows with conditional branching?" → LangGraph
  • "Starting fresh with no preference?" → Strands
优先检查对话上下文。如果开发者在本次对话中已讨论过框架(例如之前调用过其他技能),无需重复展示完整表格。总结之前的讨论内容,询问开发者是否已做出决定,或是否有变化。
如果是首次讨论框架,展示以下选项:
支持的框架(CLI脚手架,Python):
框架CLI参数值适用场景
Strands
Strands
AWS原生、最简路径、与AgentCore集成度最高
LangGraph
LangChain_LangGraph
复杂的基于图的工作流、已有LangChain投入
Google ADK
GoogleADK
团队已在使用Google的agent工具包
OpenAI Agents
OpenAIAgents
团队已在使用OpenAI的agent SDK
请开发者选择。展示选项并等待开发者选择。除非开发者明确表示无偏好,否则不要默认选择某一框架。
命名说明: CLI标志值是传递给
--framework
的精确字符串。在描述性文本中使用简称即可。
默认推荐(仅当开发者表示“无偏好”或“你来选”时):Strands——AWS原生框架,与AgentCore集成度最高,拥有最丰富的示例和文档。
关键决策要点:
  • “你已有LangGraph或OpenAI Agents的agent代码吗?” → 使用对应框架
  • “你需要带有条件分支的复杂图工作流吗?” → LangGraph
  • “从零开始且无偏好?” → Strands

Framework not listed?

未列出的框架?

If the developer asks about a framework not in the table above, handle it:
They ask aboutWhat to say
CrewAI, AutoGen, Semantic KernelNot scaffolded by the CLI, but you can use them via the BYO Container path (below). AgentCore Runtime is framework-agnostic — any code that implements the HTTP contract works.
Anthropic SDK / Claude Agent SDKThis is a model SDK, not an agent framework. You can use it inside any framework (Strands, LangGraph, etc.) or standalone. For standalone use, wrap it in a container with the Runtime contract.
Claude Code / Cursor / CopilotThese are IDE tools, not agent frameworks. They're where you write agent code, not what you deploy. Pick a framework from the table above for the agent itself.
LangChain (without LangGraph)LangChain is a library, LangGraph is the agent framework built on it. The CLI scaffolds LangGraph. If you're using plain LangChain chains, the BYO Container path works.
Custom / homegrown frameworkBYO Container path — see below.
BYO Container path (any framework, any language):
For frameworks or languages not scaffolded by the CLI, AgentCore Runtime accepts any container that implements the HTTP contract (
POST /invocations
,
GET /ping
). The workflow:
  1. agentcore create --name <ProjectName> --defaults
    to scaffold the project structure
  2. agentcore add agent --type byo --build Container --language <Language> --code-location <path>
    to register your code
  3. Write a
    Dockerfile
    that builds and runs your agent
  4. agentcore deploy
    handles ECR push, CDK infra, and runtime creation
Language-specific notes:
LanguageRecommended path
Java (Spring Boot)Spring AI SDK for AgentCore — handles the Runtime contract, SSE streaming, and health checks. Use
--language Other --build Container
.
JavaScript / TypeScriptImplement the Runtime contract in Express/Fastify/etc. Use
--language TypeScript --build Container
.
Go, Rust, .NET, otherImplement the Runtime HTTP contract. Use
--language Other --build Container
.
The rest of this skill (deploy, status, logs, invoke) applies once the container builds correctly.
如果开发者询问表格中未列出的框架,按以下方式处理:
开发者询问回复内容
CrewAI、AutoGen、Semantic KernelCLI未提供脚手架支持,但你可以通过BYO容器路径(见下文)使用它们。AgentCore Runtime是框架无关的——任何实现HTTP协议的代码均可运行。
Anthropic SDK / Claude Agent SDK这是模型SDK,而非agent框架。你可以在任意框架(Strands、LangGraph等)中使用它,或单独使用。单独使用时,将其封装在符合Runtime协议的容器中即可。
Claude Code / Cursor / Copilot这些是IDE工具,而非agent框架。它们是你编写agent代码的工具,而非部署的框架。请从表格中选择一个框架来构建agent本身。
LangChain(不含LangGraph)LangChain是一个库,LangGraph是基于它构建的agent框架。CLI提供LangGraph的脚手架支持。如果你使用纯LangChain链,BYO容器路径适用。
自定义/自研框架使用BYO容器路径——见下文。
BYO容器路径(任意框架、任意语言):
对于CLI未提供脚手架支持的框架或语言,AgentCore Runtime接受任何实现HTTP协议(
POST /invocations
GET /ping
)的容器。工作流程如下:
  1. 执行
    agentcore create --name <ProjectName> --defaults
    搭建项目结构
  2. 执行
    agentcore add agent --type byo --build Container --language <Language> --code-location <path>
    注册你的代码
  3. 编写
    Dockerfile
    来构建并运行你的agent
  4. agentcore deploy
    负责ECR推送、CDK基础设施部署和Runtime创建
语言特定说明:
语言推荐路径
Java(Spring Boot)Spring AI SDK for AgentCore——处理Runtime协议、SSE流和健康检查。使用
--language Other --build Container
JavaScript / TypeScript在Express/Fastify等框架中实现Runtime协议。使用
--language TypeScript --build Container
Go、Rust、.NET及其他实现Runtime HTTP协议。使用
--language Other --build Container
容器构建完成后,本技能的其余部分(部署、状态、日志、调用)均适用。

Framework vs. model provider — a common confusion

框架与模型提供商——常见混淆点

The framework is how your agent orchestrates (Strands, LangGraph, etc.). The model provider is which LLM it calls (Bedrock, Anthropic, OpenAI, Gemini). These are independent choices:
  • Strands + Bedrock (default) — AWS-native everything
  • Strands + Anthropic — Strands orchestration, direct Anthropic API for the model
  • LangGraph + Bedrock — LangGraph orchestration, Bedrock for the model
  • OpenAI Agents + OpenAI — OpenAI everything
If the developer says "I want to use Claude" they mean the model provider (Bedrock or Anthropic), not the framework. If they say "I want to use LangGraph" they mean the framework.
框架是agent的编排方式(Strands、LangGraph等)。模型提供商是agent调用的LLM(Bedrock、Anthropic、OpenAI、Gemini)。二者是独立选择:
  • Strands + Bedrock(默认)——全AWS原生
  • Strands + Anthropic——Strands编排,直接调用Anthropic API获取模型
  • LangGraph + Bedrock——LangGraph编排,使用Bedrock模型
  • OpenAI Agents + OpenAI——全OpenAI栈
如果开发者说“我想使用Claude”,他们指的是模型提供商(Bedrock或Anthropic),而非框架。如果他们说“我想使用LangGraph”,他们指的是框架。

Step 3: Create the project

步骤3:创建项目

Build the
agentcore create
command based on the developer's choices.
Before constructing the command — validate the project name. The CLI fails late: if the name is invalid, you'll see the error after walking through prompts or building the full command. Save the round-trip and check these rules up front. Reject the name and ask for a new one if any rule fails:
  • Length ≤ 23 characters (this is shorter than most developers assume —
    MyCustomerSupportAgent
    is 22 chars and fits;
    CustomerSupportChatbot
    is 22 and fits;
    MyCustomerSupportBotApp
    is 23 and just fits;
    MyCustomerSupportChatBot
    is 24 and fails)
  • Alphanumeric only — no hyphens, underscores, dots, or spaces
  • Must start with a letter
Say the count back out loud when close to the limit: "That name is 24 characters — the CLI caps project names at 23. Want to shorten it to
<suggestion>
?" Do not run the command with an invalid name on the assumption that the CLI error message will be clear — it isn't always, and the developer's mental model will be wrong for subsequent commands.
Construct the command, then present it for confirmation before the developer runs it. Show the full command with all flags and explain what each choice means. Wait for the developer to confirm or adjust before proceeding.
Example presentation:
Here's the command I'd recommend based on what you've told me:
bash
agentcore create --name MyAgent --framework Strands --model-provider Bedrock --build CodeZip --memory none
This creates a Strands agent using Bedrock models, deployed as a code zip (no Docker needed). Memory can be added later.
Want to run this, or change anything?
Do NOT execute the command automatically — present it and wait.
Minimal (defaults — Strands, Bedrock, CodeZip, no memory):
bash
agentcore create --name <ProjectName> --defaults
With specific options:
bash
agentcore create \
  --name <ProjectName> \
  --framework <Framework> \
  --model-provider Bedrock \
  --build CodeZip \
  --memory none
Flag reference:
FlagValuesDefault
--name
alphanumeric, max 23 charsprompted
--framework
Strands
,
LangChain_LangGraph
,
GoogleADK
,
OpenAIAgents
prompted
--protocol
HTTP
,
MCP
,
A2A
HTTP
--build
CodeZip
,
Container
CodeZip
--model-provider
Bedrock
,
Anthropic
,
OpenAI
,
Gemini
prompted
--memory
none
,
shortTerm
,
longAndShortTerm
prompted
--network-mode
PUBLIC
,
VPC
PUBLIC
--dry-run
preview without creating
Guidance on choices:
  • Protocol: Use
    HTTP
    unless the developer specifically needs MCP tool serving or A2A agent-to-agent communication
  • Build: Use
    CodeZip
    unless the developer needs custom system dependencies (CodeZip is faster to deploy and doesn't require Docker locally)
  • Model provider: Use
    Bedrock
    unless the developer has a specific reason for another provider (Bedrock doesn't require managing API keys)
  • Memory: Start with
    none
    — memory can be added later via
    agents-build
    (loads
    references/memory.md
    ) when the developer needs it
根据开发者的选择构建
agentcore create
命令。
构建命令前——验证项目名称。CLI的错误反馈较晚:如果名称无效,你会在完成提示或构建完整命令后才看到错误。提前检查以下规则,避免来回沟通。如果名称违反任何规则,拒绝该名称并要求开发者提供新名称:
  • 长度≤23个字符(比大多数开发者预期的短——
    MyCustomerSupportAgent
    是22个字符,符合要求;
    CustomerSupportChatbot
    是22个字符,符合要求;
    MyCustomerSupportBotApp
    是23个字符,刚好符合;
    MyCustomerSupportChatBot
    是24个字符,不符合
  • 仅包含字母数字——无连字符、下划线、点或空格
  • 必须以字母开头
当名称接近限制时,告知字符数:“该名称有24个字符——CLI限制项目名称最多23个字符。是否缩短为
<建议名称>
?” 不要假设CLI的错误提示足够清晰而使用无效名称执行命令——实际情况并非总是如此,且会导致开发者后续命令的认知偏差。
构建命令后,在开发者执行前先展示并确认。显示完整命令及所有标志,并解释每个选择的含义。等待开发者确认或调整后再继续。
示例展示:
根据你告知的信息,我推荐以下命令:
bash
agentcore create --name MyAgent --framework Strands --model-provider Bedrock --build CodeZip --memory none
该命令会创建一个使用Bedrock模型的Strands agent,以代码包形式部署(无需Docker)。内存可后续添加。
要执行这个命令,还是需要调整参数?
请勿自动执行命令——展示命令并等待。
最简版本(默认值——Strands、Bedrock、CodeZip、无内存):
bash
agentcore create --name <ProjectName> --defaults
带特定选项的版本:
bash
agentcore create \
  --name <ProjectName> \
  --framework <Framework> \
  --model-provider Bedrock \
  --build CodeZip \
  --memory none
标志参考:
标志可选值默认值
--name
字母数字,最多23个字符提示输入
--framework
Strands
LangChain_LangGraph
GoogleADK
OpenAIAgents
提示选择
--protocol
HTTP
MCP
A2A
HTTP
--build
CodeZip
Container
CodeZip
--model-provider
Bedrock
Anthropic
OpenAI
Gemini
提示选择
--memory
none
shortTerm
longAndShortTerm
提示选择
--network-mode
PUBLIC
VPC
PUBLIC
--dry-run
——预览创建过程但不实际创建
选择指导:
  • 协议: 除非开发者明确需要MCP工具服务或A2A agent间通信,否则使用
    HTTP
  • 构建方式: 除非开发者需要自定义系统依赖,否则使用
    CodeZip
    (部署更快,无需本地Docker)
  • 模型提供商: 除非开发者有特定理由选择其他提供商,否则使用
    Bedrock
    (无需管理API密钥)
  • 内存:
    none
    开始——当开发者需要时,可通过
    agents-build
    (加载
    references/memory.md
    )添加内存

Step 4: Explain what was created

步骤4:解释创建内容

After the project exists, read
agentcore/agentcore.json
and the generated code to explain the project structure.
The layout below reflects CLI v0.9.x. If the CLI version is different, run
tree <ProjectName>/ -L 3
to see the actual generated structure and explain from there.
<ProjectName>/
├── agentcore/
│   ├── agentcore.json      ← Project config (agents, resources)
│   ├── aws-targets.json    ← AWS account + region
│   ├── .env.local          ← Local environment variables (gitignored)
│   └── cdk/                ← CDK infrastructure (auto-managed, don't edit)
└── app/
    └── <AgentName>/
        ├── main.py          ← Your agent code — this is where you build
        ├── mcp_client/      ← Pre-wired example MCP client (see note below)
        └── pyproject.toml   ← Python dependencies
Key files to highlight:
  • app/<AgentName>/main.py
    — the agent's entry point. This is where the developer adds tools, system prompts, and logic.
  • agentcore/agentcore.json
    — the project config. Resources are added here via
    agentcore add
    commands.
  • agentcore/.env.local
    — local environment variables. After deploy, resource IDs are written here for local dev.
Heads-up on the scaffolded MCP client.
main.py
imports
get_streamable_http_mcp_client()
from
mcp_client/client.py
and appends it to
tools
. In a fresh project, this client points at a public example MCP endpoint — so
agentcore dev
works immediately. Two things to flag:
  1. It will become a silent no-op if you repoint it at a gateway that isn't deployed yet. The common path is to swap the example endpoint for
    os.getenv("AGENTCORE_GATEWAY_<NAME>_URL")
    . That env var is only populated after
    agentcore deploy
    . If the developer repoints and runs
    agentcore dev
    before deploying,
    get_streamable_http_mcp_client()
    returns a client with a
    None
    URL and the agent starts with zero MCP tools — no error, no warning. See the "Local dev gap" section in
    agents-connect
    for the guard pattern:
    if not GATEWAY_URL: tools = []
    .
  2. If the developer doesn't need MCP tools at all, remove the
    mcp_clients
    list and the loop that appends it to
    tools
    . The scaffold includes it as a convenience, not a requirement.
The reference client code in
agents-connect
(Path A) shows the correct pattern for gateway-backed MCP clients once deploy has run.
项目创建完成后,读取
agentcore/agentcore.json
和生成的代码,解释项目结构。
以下布局对应CLI v0.9.x版本。如果CLI版本不同,执行
tree <ProjectName>/ -L 3
查看实际生成的结构并据此解释。
<ProjectName>/
├── agentcore/
│   ├── agentcore.json      ← 项目配置文件(agents、资源)
│   ├── aws-targets.json    ← AWS账户+区域配置
│   ├── .env.local          ← 本地环境变量(已加入git忽略)
│   └── cdk/                ← CDK基础设施(自动管理,请勿编辑)
└── app/
    └── <AgentName>/
        ├── main.py          ← agent代码入口——你将在此处构建功能
        ├── mcp_client/      ← 预配置的MCP客户端示例(见下文说明)
        └── pyproject.toml   ← Python依赖配置
重点文件说明:
  • app/<AgentName>/main.py
    ——agent的入口文件。开发者在此添加工具、系统提示和逻辑。
  • agentcore/agentcore.json
    ——项目配置文件。通过
    agentcore add
    命令添加的资源会在此处记录。
  • agentcore/.env.local
    ——本地环境变量文件。部署完成后,资源ID会写入此处用于本地开发。
关于脚手架生成的MCP客户端的提示
main.py
mcp_client/client.py
导入
get_streamable_http_mcp_client()
并将其添加到
tools
列表中。在新项目中,该客户端指向一个公开的示例MCP端点——因此
agentcore dev
可立即运行。需要注意两点:
  1. 如果将其指向尚未部署的网关,它会静默失效。常见做法是将示例端点替换为
    os.getenv("AGENTCORE_GATEWAY_<NAME>_URL")
    。该环境变量仅在
    agentcore deploy
    后才会生成。如果开发者在部署前修改并运行
    agentcore dev
    get_streamable_http_mcp_client()
    会返回一个URL为
    None
    的客户端,agent启动时将没有MCP工具——无错误、无警告。请查看
    agents-connect
    中的“本地开发缺口”部分获取防护模式:
    if not GATEWAY_URL: tools = []
  2. 如果开发者完全不需要MCP工具,请移除
    mcp_clients
    列表及其添加到
    tools
    的循环。脚手架包含此内容是为了方便,而非强制要求。
agents-connect
中的参考客户端代码(路径A)展示了部署完成后,基于网关的MCP客户端的正确使用模式。

Step 5: Local development

步骤5:本地开发

bash
agentcore dev
This starts a local dev server. The developer can interact with their agent immediately.
Port the dev server binds to (important if you're scripting
curl
calls or testing from another process):
ProtocolDefault port
HTTP
8080
MCP
8000
A2A
9000
The CLI prints the bound port and URL on startup — always read the actual value from the CLI output rather than hardcoding. If the default port is already in use, the CLI auto-increments (e.g., 8080 → 8081 → 8082), so a second dev session or a lingering process from a previous run can shift your port without warning. Use
agentcore dev --port <N>
to pin it, or grep
ps
/ check the CLI banner if invocations start failing with connection-refused or exit-code-7 errors.
Important limitations to mention:
  • Memory is not available in
    agentcore dev
    — it requires a deploy
  • Gateway URLs are not available locally — they require a deploy
  • The local server uses the model provider configured in the project
bash
agentcore dev
该命令启动本地开发服务器。开发者可立即与他们的agent交互。
开发服务器绑定的端口(如果编写
curl
脚本或从其他进程测试,这一点很重要):
协议默认端口
HTTP
8080
MCP
8000
A2A
9000
CLI启动时会打印绑定的端口和URL——请始终从CLI输出中读取实际值,而非硬编码。如果默认端口已被占用,CLI会自动递增(例如:8080 → 8081 → 8082),因此第二个开发会话或之前运行的残留进程可能会导致端口变化而无提示。如果调用开始出现连接拒绝或退出码7错误,请使用
agentcore dev --port <N>
固定端口,或通过
ps
命令/查看CLI banner检查端口。
需要提及的重要限制:
  • agentcore dev
    不支持内存功能——需要部署后才能使用
  • 网关URL在本地不可用——需要部署后才能使用
  • 本地服务器使用项目中配置的模型提供商

Step 6: First deploy

步骤6:首次部署

When the developer is ready to deploy:
bash
agentcore deploy
This will:
  1. Show a preview of AWS resources to be created
  2. Ask for confirmation
  3. Build and deploy via CDK
First deploy takes 3-5 minutes. Subsequent deploys are faster.
After deploy, show them how to invoke:
bash
agentcore invoke "Hello, what can you do?"
And how to check status:
bash
agentcore status
当开发者准备部署时:
bash
agentcore deploy
该命令会:
  1. 展示即将创建的AWS资源预览
  2. 请求确认
  3. 通过CDK构建并部署
首次部署需要3-5分钟。后续部署会更快。
部署完成后,展示如何调用:
bash
agentcore invoke "Hello, what can you do?"
以及如何检查状态:
bash
agentcore status

Step 7: What's next

步骤7:下一步操作

Based on what the developer said they want to build, suggest the logical next skill:
Developer intentNext skillCommand hint
"How do I call it from my app?"
agents-build
agentcore fetch access
"I want it to remember things"
agents-build
agentcore add memory
"I want it to call external APIs"
agents-connect
agentcore add gateway
"I want to restrict what it can do"
agents-connect
agentcore add policy-engine
"I want to measure quality"
agents-optimize
agentcore add evaluator
"I want to go to production"
agents-harden
production readiness checklist
"I want multiple agents working together"
agents-build
agentcore create --protocol A2A
"I need it in a VPC"
agents-build
agentcore create --network-mode VPC
Don't overwhelm — suggest one or two next steps based on what the developer actually asked for.
根据开发者表示的构建目标,推荐合理的后续技能:
开发者意图后续技能命令提示
“如何从我的应用中调用它?”
agents-build
agentcore fetch access
“我想让它记住信息”
agents-build
agentcore add memory
“我想让它调用外部API”
agents-connect
agentcore add gateway
“我想限制它的操作范围”
agents-connect
agentcore add policy-engine
“我想衡量它的质量”
agents-optimize
agentcore add evaluator
“我想将它投入生产”
agents-harden
生产就绪检查清单
“我想让多个agent协同工作”
agents-build
agentcore create --protocol A2A
“我需要将它部署在VPC中”
agents-build
agentcore create --network-mode VPC
不要提供过多选项——根据开发者实际需求推荐1-2个下一步操作。

Example walkthroughs

示例演练

For task-framed prompts (e.g., "build a customer support agent"), load the matching example reference:
Developer taskReference
Customer support, chatbot, answer policy questions
references/example-support-agent.md
More examples can be added to this skill's references directory as common patterns emerge.
对于任务类提示(例如:“build a customer support agent”),加载对应的示例参考文档:
开发者任务参考文档
客户支持、聊天机器人、回答政策问题
references/example-support-agent.md
随着常见模式的出现,可在本技能的参考目录中添加更多示例。

Output

输出

  • A clear path from "I want to build an agent" to a running deployed agent
  • The
    agentcore create
    command tailored to their choices
  • An explanation of the generated project structure
  • Concrete next steps based on their intent
  • 从“我想构建一个agent”到agent部署运行的清晰路径
  • 根据开发者选择定制的
    agentcore create
    命令
  • 生成项目结构的解释
  • 根据开发者意图提供的具体下一步操作

Quality criteria

质量标准

  • The
    agentcore create
    command uses only valid flags from CLI v0.9.1
  • Framework recommendation is based on the developer's context, not a generic default
  • The developer understands what each generated file does
  • Next steps are specific to what the developer wants to build, not a generic list of all features
  • agentcore create
    命令仅使用CLI v0.9.1中的有效标志
  • 框架推荐基于开发者的上下文,而非通用默认值
  • 开发者理解每个生成文件的作用
  • 下一步操作是针对开发者的构建目标,而非所有功能的通用列表