@aws/agentcore 1.0.0-rc.1 → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +251 -11
- package/dist/assets/cdk/README.md +42 -19
- package/dist/assets/cdk/bin/cdk.ts +22 -173
- package/dist/assets/cdk/lib/cdk-stack.ts +18 -80
- package/dist/assets/cdk/package.json +3 -10
- package/dist/assets/cdk/tsconfig.json +1 -1
- package/dist/assets/evaluators/python-lambda/README.md +5 -1
- package/dist/assets/templates/a2a-python-strands/pyproject.toml +1 -1
- package/dist/assets/templates/agent-python-langchain/README.md +4 -3
- package/dist/assets/templates/agent-python-langchain/main.py +7 -11
- package/dist/assets/templates/agent-python-strands/README.md +16 -2
- package/dist/assets/templates/agent-python-strands/main.py +40 -81
- package/dist/assets/templates/agent-python-strands/memory/session.py +1 -5
- package/dist/assets/templates/agent-python-strands/model/load.py +4 -4
- package/dist/assets/templates/agent-python-strands/parse.py +41 -0
- package/dist/assets/templates/agent-typescript-strands/README.md +23 -2
- package/dist/assets/templates/agent-typescript-strands/main.ts +4 -13
- package/dist/assets/templates/agent-typescript-strands/memory/memory.ts +1 -12
- package/dist/assets/templates/agent-typescript-strands/package.json.template +0 -1
- package/dist/assets/templates/agui-python-strands/pyproject.toml +1 -1
- package/dist/assets/templates/export-harness-python/model/load.py +3 -3
- package/dist/assets/templates/harness/harness.yaml +157 -0
- package/dist/main.js +524 -132
- package/package.json +6 -4
- package/dist/assets/cdk/.prettierrc +0 -8
- package/dist/assets/cdk/jest.config.js +0 -9
- package/dist/assets/cdk/npmignore.template +0 -6
- package/dist/assets/cdk/test/cdk.test.ts +0 -120
- package/dist/assets/evaluators/autoevals-lambda/README.md +0 -23
- package/dist/assets/evaluators/autoevals-lambda/execution-role-policy.json +0 -15
- package/dist/assets/evaluators/autoevals-lambda/lambda_function.py +0 -37
- package/dist/assets/evaluators/autoevals-lambda/pyproject.toml +0 -23
- package/dist/assets/evaluators/deepeval-lambda/README.md +0 -23
- package/dist/assets/evaluators/deepeval-lambda/execution-role-policy.json +0 -15
- package/dist/assets/evaluators/deepeval-lambda/lambda_function.py +0 -29
- package/dist/assets/evaluators/deepeval-lambda/pyproject.toml +0 -22
- package/dist/assets/templates/agent-typescript-strands/mcp_client/client.ts +0 -11
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Optional settings are shown with example values.
|
|
2
|
+
|
|
3
|
+
{{yaml.name}}
|
|
4
|
+
|
|
5
|
+
# Instructions come from system-prompt.md unless systemPrompt is set inline.
|
|
6
|
+
# systemPrompt: You are a helpful assistant.
|
|
7
|
+
|
|
8
|
+
# Model
|
|
9
|
+
{{yaml.model}}
|
|
10
|
+
{{#if modelMaxTokensExample}}
|
|
11
|
+
# Output tokens per model call, rather than across the whole invocation.
|
|
12
|
+
# maxTokens: 4096
|
|
13
|
+
{{/if}}
|
|
14
|
+
|
|
15
|
+
# Tools
|
|
16
|
+
# Code Interpreter and Browser use built-in resources when no ARN is specified.
|
|
17
|
+
# awsIam uses the harness execution role, which must allow Gateway invocation.
|
|
18
|
+
# https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html
|
|
19
|
+
{{#if tools.length}}
|
|
20
|
+
{{yaml.tools}}
|
|
21
|
+
{{else}}
|
|
22
|
+
# tools:
|
|
23
|
+
# - name: code_interpreter
|
|
24
|
+
# type: agentcore_code_interpreter
|
|
25
|
+
# - name: browser
|
|
26
|
+
# type: agentcore_browser
|
|
27
|
+
# - name: research
|
|
28
|
+
# type: remote_mcp
|
|
29
|
+
# config:
|
|
30
|
+
# remoteMcp:
|
|
31
|
+
# url: https://mcp.example.com/mcp
|
|
32
|
+
# - name: company_tools
|
|
33
|
+
# type: agentcore_gateway
|
|
34
|
+
# config:
|
|
35
|
+
# agentCoreGateway:
|
|
36
|
+
# gatewayArn: arn:aws:bedrock-agentcore:us-west-2:123456789012:gateway/example-1234567890
|
|
37
|
+
# outboundAuth:
|
|
38
|
+
# awsIam: {}
|
|
39
|
+
{{/if}}
|
|
40
|
+
|
|
41
|
+
# Tool patterns: @<server-name>/<tool-name> or @builtin.
|
|
42
|
+
# This controls agent tool selection, not IAM permissions.
|
|
43
|
+
{{#if yaml.allowedTools}}
|
|
44
|
+
{{yaml.allowedTools}}
|
|
45
|
+
{{else}}
|
|
46
|
+
# allowedTools:
|
|
47
|
+
# - "@builtin"
|
|
48
|
+
# - "@research/search"
|
|
49
|
+
{{/if}}
|
|
50
|
+
|
|
51
|
+
# Skill path sources refer to files already present in the runtime container.
|
|
52
|
+
{{#if skills.length}}
|
|
53
|
+
{{yaml.skills}}
|
|
54
|
+
{{else}}
|
|
55
|
+
# skills:
|
|
56
|
+
# - s3Uri: s3://your-skills-bucket/skills/research/
|
|
57
|
+
# - gitUrl: https://github.com/your-org/agent-skills.git
|
|
58
|
+
# path: skills/research
|
|
59
|
+
# - path: /opt/skills/research
|
|
60
|
+
{{/if}}
|
|
61
|
+
|
|
62
|
+
# Memory
|
|
63
|
+
# https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory.html
|
|
64
|
+
# Alternatives: existing (name or ARN), disabled.
|
|
65
|
+
{{yaml.memory}}
|
|
66
|
+
{{#if (eq memory.mode "managed")}}
|
|
67
|
+
{{#if (or memoryExamples.strategies memoryExamples.eventExpiryDuration)}}
|
|
68
|
+
# Managed-memory settings. Absent values use service defaults.
|
|
69
|
+
# Event retention is in days.
|
|
70
|
+
{{#if memoryExamples.strategies}}
|
|
71
|
+
# strategies:
|
|
72
|
+
# - SEMANTIC
|
|
73
|
+
# - SUMMARIZATION
|
|
74
|
+
{{/if}}
|
|
75
|
+
{{#if memoryExamples.eventExpiryDuration}}
|
|
76
|
+
# eventExpiryDuration: 30
|
|
77
|
+
{{/if}}
|
|
78
|
+
{{/if}}
|
|
79
|
+
{{/if}}
|
|
80
|
+
{{#if (or memoryExamples.name memoryExamples.arn)}}
|
|
81
|
+
# Existing-memory reference: project resource name or external ARN.
|
|
82
|
+
{{#if memoryExamples.name}}
|
|
83
|
+
# name: ConversationMemory
|
|
84
|
+
{{/if}}
|
|
85
|
+
{{#if memoryExamples.arn}}
|
|
86
|
+
# arn: arn:aws:bedrock-agentcore:us-west-2:123456789012:memory/example-1234567890
|
|
87
|
+
{{/if}}
|
|
88
|
+
{{/if}}
|
|
89
|
+
|
|
90
|
+
# Execution limits apply per invocation, across all model calls.
|
|
91
|
+
{{#if yaml.maxIterations}}
|
|
92
|
+
{{yaml.maxIterations}}
|
|
93
|
+
{{else}}
|
|
94
|
+
# maxIterations: 15
|
|
95
|
+
{{/if}}
|
|
96
|
+
{{#if yaml.maxTokens}}
|
|
97
|
+
{{yaml.maxTokens}}
|
|
98
|
+
{{else}}
|
|
99
|
+
# maxTokens: 20000
|
|
100
|
+
{{/if}}
|
|
101
|
+
{{#if yaml.timeoutSeconds}}
|
|
102
|
+
{{yaml.timeoutSeconds}}
|
|
103
|
+
{{else}}
|
|
104
|
+
# timeoutSeconds: 300
|
|
105
|
+
{{/if}}
|
|
106
|
+
|
|
107
|
+
# Truncation changes the context sent to the model, not the saved memory.
|
|
108
|
+
{{#if yaml.truncation}}
|
|
109
|
+
{{yaml.truncation}}
|
|
110
|
+
{{else}}
|
|
111
|
+
# truncation:
|
|
112
|
+
# strategy: sliding_window
|
|
113
|
+
# config:
|
|
114
|
+
# slidingWindow:
|
|
115
|
+
# messagesCount: 40
|
|
116
|
+
{{/if}}
|
|
117
|
+
|
|
118
|
+
# dockerfile and containerUri are mutually exclusive. With neither set, the
|
|
119
|
+
# service-provided environment is used. Dockerfile paths are relative to this directory.
|
|
120
|
+
{{#if yaml.dockerfile}}
|
|
121
|
+
{{yaml.dockerfile}}
|
|
122
|
+
{{else}}
|
|
123
|
+
# dockerfile: Dockerfile
|
|
124
|
+
{{/if}}
|
|
125
|
+
{{#if yaml.containerUri}}
|
|
126
|
+
{{yaml.containerUri}}
|
|
127
|
+
{{else}}
|
|
128
|
+
# containerUri: 123456789012.dkr.ecr.us-west-2.amazonaws.com/my-harness:latest
|
|
129
|
+
{{/if}}
|
|
130
|
+
|
|
131
|
+
# Environment values are stored in plaintext.
|
|
132
|
+
{{#if yaml.environmentVariables}}
|
|
133
|
+
{{yaml.environmentVariables}}
|
|
134
|
+
{{else}}
|
|
135
|
+
# environmentVariables:
|
|
136
|
+
# LOG_LEVEL: info
|
|
137
|
+
{{/if}}
|
|
138
|
+
|
|
139
|
+
# Deployment creates a role when executionRoleArn is absent.
|
|
140
|
+
{{#if yaml.executionRoleArn}}
|
|
141
|
+
{{yaml.executionRoleArn}}
|
|
142
|
+
{{else}}
|
|
143
|
+
# executionRoleArn: arn:aws:iam::123456789012:role/MyHarnessRole
|
|
144
|
+
{{/if}}
|
|
145
|
+
|
|
146
|
+
# Tags
|
|
147
|
+
{{#if yaml.tags}}
|
|
148
|
+
{{yaml.tags}}
|
|
149
|
+
{{else}}
|
|
150
|
+
# tags:
|
|
151
|
+
# team: support
|
|
152
|
+
# environment: development
|
|
153
|
+
{{/if}}
|
|
154
|
+
{{#each additionalSettings}}
|
|
155
|
+
|
|
156
|
+
{{this}}
|
|
157
|
+
{{/each}}
|