Skip to content

Commit b29f2a5

Browse files
committed
test: update asset snapshot tests for AGENTS.md changes
1 parent ed194a9 commit b29f2a5

1 file changed

Lines changed: 38 additions & 5 deletions

File tree

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,17 +2752,39 @@ exports[`Assets Directory Snapshots > Root-level assets > AGENTS.md should match
27522752
This directory stores:
27532753
27542754
- Template assets for agents written in different Languages, SDKs and having different configurations
2755+
- Container templates (\`container/python/\`) with \`Dockerfile\` and \`.dockerignore\` for Container build agents
27552756
2756-
The rendering logic is rooted in the \`AgentEnvSpec\` and must ALWAYS respect the configuration in the Spec
2757+
### Directory Layout
2758+
2759+
\`\`\`
2760+
assets/
2761+
├── python/ # Framework templates (one per SDK)
2762+
│ ├── strands/
2763+
│ ├── langchain_langgraph/
2764+
│ ├── crewai/
2765+
│ ├── googleadk/
2766+
│ ├── openaiagents/
2767+
│ └── autogen/
2768+
├── container/ # Container build templates
2769+
│ └── python/
2770+
│ ├── Dockerfile
2771+
│ └── dockerignore.template
2772+
└── agents/ # AGENTS.md vended to user projects
2773+
\`\`\`
2774+
2775+
The rendering logic is rooted in the \`AgentEnvSpec\` and must ALWAYS respect the configuration in the Spec.
2776+
2777+
For Container builds, \`BaseRenderer.render()\` automatically copies the \`container/<language>/\` templates (Dockerfile,
2778+
.dockerignore) into the agent directory when \`buildType === 'Container'\`.
27572779
27582780
## Guidance for template changes
27592781
27602782
- Always make sure the templates are as close to working code as possible
27612783
- AVOID as much as possible using any conditionals within the templates
27622784
2763-
# How to use the assets in this directory
2785+
## How to use the assets in this directory
27642786
2765-
- These assets are rendered by the CLI's template renderer in \`packages/agentcore-cli/src/templates\`.
2787+
- These assets are rendered by the CLI's template renderer in \`src/cli/templates/\`.
27662788
"
27672789
`;
27682790
@@ -2912,21 +2934,32 @@ file maps to a JSON config file and includes validation constraints as comments.
29122934
29132935
### Common Enum Values
29142936
2915-
- **BuildType**: \`'CodeZip'\`
2937+
- **BuildType**: \`'CodeZip'\` | \`'Container'\`
29162938
- **NetworkMode**: \`'PUBLIC'\`
29172939
- **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\`
29182940
- **MemoryStrategyType**: \`'SEMANTIC'\` | \`'SUMMARIZATION'\` | \`'USER_PREFERENCE'\`
29192941
2942+
### Build Types
2943+
2944+
- **CodeZip**: Python source is packaged as a zip artifact and deployed directly to AgentCore Runtime.
2945+
- **Container**: Agent code is built as a Docker container image. Requires a \`Dockerfile\` in the agent's \`codeLocation\`
2946+
directory. At deploy time, the source is uploaded to S3, built in CodeBuild (ARM64), pushed to a per-agent ECR
2947+
repository, and the container URI is provided to the AgentCore Runtime. For local development (\`agentcore dev\`), the
2948+
container is built and run locally with volume-mounted hot-reload.
2949+
29202950
### Supported Frameworks (for template agents)
29212951
29222952
- **Strands** - Works with Bedrock, Anthropic, OpenAI, Gemini
29232953
- **LangChain_LangGraph** - Works with Bedrock, Anthropic, OpenAI, Gemini
2954+
- **CrewAI** - Works with Bedrock, Anthropic, OpenAI, Gemini
29242955
- **GoogleADK** - Gemini only
29252956
- **OpenAIAgents** - OpenAI only
2957+
- **AutoGen** - Works with Bedrock, Anthropic, OpenAI, Gemini
29262958
29272959
### Specific Context
29282960
2929-
Directory pathing to local projects is required for runtimes. Only Python offers a zip based direct code deploy option.
2961+
Directory pathing to local projects is required for runtimes. Both CodeZip (Python zip) and Container (Docker image)
2962+
deployment options are available.
29302963
29312964
## Deployment
29322965

0 commit comments

Comments
 (0)