agentrun-sdk 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

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.

Potentially problematic release.


This version of agentrun-sdk might be problematic. Click here for more details.

@@ -0,0 +1,44 @@
1
+ FROM public.ecr.aws/docker/library/python:{{ python_version }}-slim
2
+ WORKDIR /app
3
+
4
+ {% if dependencies_file %}
5
+ {% if dependencies_install_path %}
6
+ COPY {{ dependencies_install_path }} {{ dependencies_install_path }}
7
+ # Install from pyproject.toml directory
8
+ RUN pip install {{ dependencies_install_path }}
9
+ {% else %}
10
+ COPY {{ dependencies_file }} {{ dependencies_file }}
11
+ # Install from requirements file
12
+ RUN pip install -r {{ dependencies_file }}
13
+ {% endif %}
14
+ {% endif %}
15
+
16
+ {% if observability_enabled %}
17
+ RUN pip install aws-opentelemetry-distro>=0.10.0
18
+ {% endif %}
19
+
20
+ # Set AWS region environment variable
21
+ {% if aws_region %}
22
+ ENV AWS_REGION={{ aws_region }}
23
+ ENV AWS_DEFAULT_REGION={{ aws_region }}
24
+ {% endif %}
25
+
26
+ # Signal that this is running in Docker for host binding logic
27
+ ENV DOCKER_CONTAINER=1
28
+
29
+ # Create non-root user
30
+ RUN useradd -m -u 1000 bedrock_agentcore
31
+ USER bedrock_agentcore
32
+
33
+ EXPOSE 8080
34
+ EXPOSE 8000
35
+
36
+ # Copy entire project (respecting .dockerignore)
37
+ COPY . .
38
+
39
+ # Use the full module path
40
+ {% if observability_enabled %}
41
+ CMD ["opentelemetry-instrument", "python", "-m", "{{ agent_module_path }}"]
42
+ {% else %}
43
+ CMD ["python", "-m", "{{ agent_module_path }}"]
44
+ {% endif %}
@@ -0,0 +1,68 @@
1
+ # Build artifacts
2
+ build/
3
+ dist/
4
+ *.egg-info/
5
+ *.egg
6
+
7
+ # Python cache
8
+ __pycache__/
9
+ __pycache__*
10
+ *.py[cod]
11
+ *$py.class
12
+ *.so
13
+ .Python
14
+
15
+ # Virtual environments
16
+ .venv/
17
+ .env
18
+ venv/
19
+ env/
20
+ ENV/
21
+
22
+ # Testing
23
+ .pytest_cache/
24
+ .coverage
25
+ .coverage*
26
+ htmlcov/
27
+ .tox/
28
+ *.cover
29
+ .hypothesis/
30
+ .mypy_cache/
31
+ .ruff_cache/
32
+
33
+ # Development
34
+ *.log
35
+ *.bak
36
+ *.swp
37
+ *.swo
38
+ *~
39
+ .DS_Store
40
+
41
+ # IDEs
42
+ .vscode/
43
+ .idea/
44
+
45
+ # Version control
46
+ .git/
47
+ .gitignore
48
+ .gitattributes
49
+
50
+ # Documentation
51
+ docs/
52
+ *.md
53
+ !README.md
54
+
55
+ # CI/CD
56
+ .github/
57
+ .gitlab-ci.yml
58
+ .travis.yml
59
+
60
+ # Project specific
61
+ tests/
62
+
63
+ # Bedrock AgentCore specific - keep config but exclude runtime files
64
+ .bedrock_agentcore.yaml
65
+ .dockerignore
66
+
67
+ # Keep wheelhouse for offline installations
68
+ # wheelhouse/
@@ -0,0 +1,99 @@
1
+ {
2
+ "Version": "2012-10-17",
3
+ "Statement": [
4
+ {
5
+ "Sid": "ECRImageAccess",
6
+ "Effect": "Allow",
7
+ "Action": [
8
+ "ecr:BatchGetImage",
9
+ "ecr:GetDownloadUrlForLayer"
10
+ ],
11
+ "Resource": [
12
+ "arn:aws:ecr:{{ region }}:{{ account_id }}:repository/*"
13
+ ]
14
+ },
15
+ {
16
+ "Effect": "Allow",
17
+ "Action": [
18
+ "logs:DescribeLogStreams",
19
+ "logs:CreateLogGroup"
20
+ ],
21
+ "Resource": [
22
+ "arn:aws:logs:{{ region }}:{{ account_id }}:log-group:/aws/bedrock-agentcore/runtimes/*"
23
+ ]
24
+ },
25
+ {
26
+ "Effect": "Allow",
27
+ "Action": [
28
+ "logs:DescribeLogGroups"
29
+ ],
30
+ "Resource": [
31
+ "arn:aws:logs:{{ region }}:{{ account_id }}:log-group:*"
32
+ ]
33
+ },
34
+ {
35
+ "Effect": "Allow",
36
+ "Action": [
37
+ "logs:CreateLogStream",
38
+ "logs:PutLogEvents"
39
+ ],
40
+ "Resource": [
41
+ "arn:aws:logs:{{ region }}:{{ account_id }}:log-group:/aws/bedrock-agentcore/runtimes/*:log-stream:*"
42
+ ]
43
+ },
44
+ {
45
+ "Sid": "ECRTokenAccess",
46
+ "Effect": "Allow",
47
+ "Action": [
48
+ "ecr:GetAuthorizationToken"
49
+ ],
50
+ "Resource": "*"
51
+ },
52
+ {
53
+ "Effect": "Allow",
54
+ "Action": [
55
+ "xray:PutTraceSegments",
56
+ "xray:PutTelemetryRecords",
57
+ "xray:GetSamplingRules",
58
+ "xray:GetSamplingTargets"
59
+ ],
60
+ "Resource": ["*"]
61
+ },
62
+ {
63
+ "Effect": "Allow",
64
+ "Resource": "*",
65
+ "Action": "cloudwatch:PutMetricData",
66
+ "Condition": {
67
+ "StringEquals": {
68
+ "cloudwatch:namespace": "bedrock-agentcore"
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "Sid": "GetAgentAccessToken",
74
+ "Effect": "Allow",
75
+ "Action": [
76
+ "bedrock-agentcore:GetWorkloadAccessToken",
77
+ "bedrock-agentcore:GetWorkloadAccessTokenForJWT",
78
+ "bedrock-agentcore:GetWorkloadAccessTokenForUserId"
79
+ ],
80
+ "Resource": [
81
+ "arn:aws:bedrock-agentcore:{{ region }}:{{ account_id }}:workload-identity-directory/default",
82
+ "arn:aws:bedrock-agentcore:{{ region }}:{{ account_id }}:workload-identity-directory/default/workload-identity/{{ agent_name }}-*"
83
+ ]
84
+ },
85
+ {
86
+ "Sid": "BedrockModelInvocation",
87
+ "Effect": "Allow",
88
+ "Action": [
89
+ "bedrock:InvokeModel",
90
+ "bedrock:InvokeModelWithResponseStream",
91
+ "bedrock:ApplyGuardrail"
92
+ ],
93
+ "Resource": [
94
+ "arn:aws:bedrock:*::foundation-model/*",
95
+ "arn:aws:bedrock:{{ region }}:{{ account_id }}:*"
96
+ ]
97
+ }
98
+ ]
99
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "Version": "2012-10-17",
3
+ "Statement": [
4
+ {
5
+ "Sid": "AssumeRolePolicy",
6
+ "Effect": "Allow",
7
+ "Principal": {
8
+ "Service": "bedrock-agentcore.amazonaws.com"
9
+ },
10
+ "Action": "sts:AssumeRole",
11
+ "Condition": {
12
+ "StringEquals": {
13
+ "aws:SourceAccount": "{{ account_id }}"
14
+ },
15
+ "ArnLike": {
16
+ "aws:SourceArn": "arn:aws:bedrock-agentcore:{{ region }}:{{ account_id }}:*"
17
+ }
18
+ }
19
+ }
20
+ ]
21
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentrun-sdk
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: AgentRun Operation SDK - A toolkit for agent runtime operations
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -14,6 +14,10 @@ agentrun_operation_sdk/utils/runtime/config.py,sha256=2iKtm1f4h-pJiKTW7PDHifj-em
14
14
  agentrun_operation_sdk/utils/runtime/container.py,sha256=g5w3r6pkEnFnV-Iu8NeCFab5zwLIU3clc4nyLj8deZg,12912
15
15
  agentrun_operation_sdk/utils/runtime/entrypoint.py,sha256=H34a3tSelDU2ClMvHwlRW0Rxij7AXWKAsI9uMbrx-PY,7558
16
16
  agentrun_operation_sdk/utils/runtime/schema.py,sha256=R5Y2Khq8xVB-WFtBmC2LoYKoPd1Y9XsK07s3NPgcCVE,2201
17
+ agentrun_operation_sdk/utils/runtime/templates/Dockerfile.j2,sha256=-N8kbbZSU1G9xrVNbq3xKke3Jio6WpBlb7St7PDVHcU,1210
18
+ agentrun_operation_sdk/utils/runtime/templates/dockerignore.template,sha256=VY_DKYnW1j8iV_uthF_YwtzW4PpsZXQGIb6woPtp8ig,759
19
+ agentrun_operation_sdk/utils/runtime/templates/execution_role_policy.json.j2,sha256=FhHr5xRGER3XM6VRM6EDgbtIxWudKP46NOFEwzbab2U,2610
20
+ agentrun_operation_sdk/utils/runtime/templates/execution_role_trust_policy.json.j2,sha256=3syd9_svuT6DO_yd-BaHtfqmGeeada5axBXDQ2XUmKM,494
17
21
  agentrun_sdk/__init__.py,sha256=xgEGL1HLf3zhcRg792HQOOGKdmnVoGvhQtu_EIupm7k,256
18
22
  agentrun_sdk/py.typed,sha256=LOqU0Ahtz8WM0FUZLDE_SWQQVvC6lc7srlTwJk3tE4Q,59
19
23
  agentrun_sdk/agent/__init__.py,sha256=W3ZggGBDkXzxx8GdGYHGeUm1YHUy8xU8D4mJFaDFSJ8,724
@@ -108,8 +112,8 @@ agentrun_wrapper/services/identity.py,sha256=g8c8U3KpHqb0h2Mj_nqSNc6BZRFfSVdRNSj
108
112
  agentrun_wrapper/tools/__init__.py,sha256=WgPUpS9FrLnBhDTxnFcz9RG6AeJezyfGl-C931QC30U,259
109
113
  agentrun_wrapper/tools/browser_client.py,sha256=l7A_vr8qKlGL1F_IwF1YbUfbm1uIkKt9i-nR6ypNG9E,11831
110
114
  agentrun_wrapper/tools/code_interpreter_client.py,sha256=_CsWGtamqmH7jLZf1D6iBbrQaleqsr90PmqhJOdsoxc,6491
111
- agentrun_sdk-0.1.2.dist-info/METADATA,sha256=mGdYoDSpRLsoaehjPtWOhWBYVtwMY6i4FbVT5vizBNk,1413
112
- agentrun_sdk-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
- agentrun_sdk-0.1.2.dist-info/entry_points.txt,sha256=B8qby5yUxGgYcIHko5cjPj6Uc6FeCqmoKTVU7eLvoik,65
114
- agentrun_sdk-0.1.2.dist-info/top_level.txt,sha256=BqgDVZ0q1iU5GP2-DBfuVpuSTa06AAk84Gzre5dpqsg,53
115
- agentrun_sdk-0.1.2.dist-info/RECORD,,
115
+ agentrun_sdk-0.1.3.dist-info/METADATA,sha256=FV9pGdJxyN1bI-BYTUe2--7h6LEsOjxaEDGoYR0QFos,1413
116
+ agentrun_sdk-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ agentrun_sdk-0.1.3.dist-info/entry_points.txt,sha256=B8qby5yUxGgYcIHko5cjPj6Uc6FeCqmoKTVU7eLvoik,65
118
+ agentrun_sdk-0.1.3.dist-info/top_level.txt,sha256=BqgDVZ0q1iU5GP2-DBfuVpuSTa06AAk84Gzre5dpqsg,53
119
+ agentrun_sdk-0.1.3.dist-info/RECORD,,