agent-builder-sdk-aws-transform 1.0.0__tar.gz

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.
Files changed (178) hide show
  1. agent_builder_sdk_aws_transform-1.0.0/LICENSE.txt +175 -0
  2. agent_builder_sdk_aws_transform-1.0.0/NOTICE +1 -0
  3. agent_builder_sdk_aws_transform-1.0.0/PKG-INFO +184 -0
  4. agent_builder_sdk_aws_transform-1.0.0/README.md +152 -0
  5. agent_builder_sdk_aws_transform-1.0.0/THIRD-PARTY-NOTICES.txt +2980 -0
  6. agent_builder_sdk_aws_transform-1.0.0/pyproject.toml +48 -0
  7. agent_builder_sdk_aws_transform-1.0.0/setup.cfg +4 -0
  8. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/__init__.py +5 -0
  9. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/_auth_token_refresher.py +272 -0
  10. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/_boto_client.py +58 -0
  11. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agent.py +379 -0
  12. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agent_factory.py +464 -0
  13. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agent_state/__init__.py +2 -0
  14. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agent_state/agent_state.py +19 -0
  15. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/__init__.py +5 -0
  16. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/a2a_manager.py +142 -0
  17. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/agent_lifecycle.py +363 -0
  18. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/agent_registry.py +126 -0
  19. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/agentic_api_helper.py +53 -0
  20. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/api_model.py +75 -0
  21. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/artifact_store.py +140 -0
  22. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/client_factory.py +125 -0
  23. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/common.py +210 -0
  24. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/hitl.py +108 -0
  25. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/agentic_framework/job_manager.py +96 -0
  26. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/base_subagent/__init__.py +3 -0
  27. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/base_subagent/base_subagent.py +269 -0
  28. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/bedrock_model_factory.py +59 -0
  29. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/botocore_models/atxagentregistryexternal/2022-07-26/service-2.json +2054 -0
  30. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/botocore_models/transformagenticservice/2018-05-10/service-2.json +4286 -0
  31. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/checkpoint/__init__.py +24 -0
  32. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/checkpoint/checkpoint_manager.py +164 -0
  33. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/checkpoint/checkpoint_repository.py +307 -0
  34. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/checkpoint/checkpoint_service.py +143 -0
  35. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/checkpoint/checkpoint_triggers.py +71 -0
  36. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/cli.py +658 -0
  37. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/constants.py +15 -0
  38. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/__init__.py +2 -0
  39. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/agent_registry_types.py +178 -0
  40. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/common_types.py +102 -0
  41. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/extension_types.py +17 -0
  42. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/notification_types.py +162 -0
  43. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/orchestrator_agent_types.py +126 -0
  44. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/response_types.py +17 -0
  45. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/server_types.py +43 -0
  46. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/custom_types/task_types.py +90 -0
  47. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/entrypoints/__init__.py +2 -0
  48. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/entrypoints/_simple_stateless_cli_agent_core.py +71 -0
  49. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/entrypoints/simple_cli_agent_core.py +167 -0
  50. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/entrypoints/simple_subagent_cli.py +89 -0
  51. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/env_var.py +255 -0
  52. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/errors.py +23 -0
  53. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/experimental/__init__.py +14 -0
  54. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/experimental/code_execution/__init__.py +34 -0
  55. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/experimental/code_execution/code_execution_tool.py +109 -0
  56. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/extensions/__init__.py +2 -0
  57. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/extensions/acknowledgments/__init__.py +2 -0
  58. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/extensions/acknowledgments/acknowledgment_handler.py +56 -0
  59. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/extensions/base_extension_handler.py +32 -0
  60. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/fastapi_server.py +268 -0
  61. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/interfaces.py +70 -0
  62. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/logging_config.py +17 -0
  63. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/mcp_client_factory.py +44 -0
  64. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/memory/__init__.py +3 -0
  65. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/memory/episodic_memory.py +208 -0
  66. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/memory/file_memory_repository.py +457 -0
  67. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/memory/memory_manager.py +223 -0
  68. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/memory/memory_repository.py +85 -0
  69. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/memory/memory_types.py +73 -0
  70. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/message_queue/__init__.py +31 -0
  71. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/message_queue/interface.py +357 -0
  72. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/message_queue/local_queue.py +528 -0
  73. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/message_queue/service.py +234 -0
  74. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/messages/__init__.py +2 -0
  75. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/messages/a2a_message_helper.py +61 -0
  76. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/messages/message_handler.py +397 -0
  77. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/metrics/__init__.py +11 -0
  78. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/metrics/metrics_config.py +15 -0
  79. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/metrics/metrics_helper.py +149 -0
  80. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/__init__.py +19 -0
  81. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/base_job_deletion_processor.py +133 -0
  82. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/hitl_notifier.py +60 -0
  83. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/notification_handler.py +72 -0
  84. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/notification_processor.py +29 -0
  85. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/notifier.py +17 -0
  86. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/notification/processors.py +169 -0
  87. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/observability/__init__.py +2 -0
  88. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/observability/trace_helper.py +47 -0
  89. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/__init__.py +3 -0
  90. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/_base_agent_server.py +363 -0
  91. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/base_orchestrator.py +465 -0
  92. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/conversation/__init__.py +3 -0
  93. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/conversation/constants.py +18 -0
  94. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/conversation/file_repository.py +275 -0
  95. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/conversation/message_type.py +109 -0
  96. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/conversation/repository.py +59 -0
  97. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/evaluation/__init__.py +2 -0
  98. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/evaluation/evaluate_agent_trajectory.py +168 -0
  99. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/evaluation/evaluation_card.py +205 -0
  100. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/evaluation/metrics_helper.py +162 -0
  101. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/hooks/__init__.py +6 -0
  102. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/hooks/conversation_hook_provider.py +93 -0
  103. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/hooks/memory_hook_provider.py +82 -0
  104. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/tools/__init__.py +4 -0
  105. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/tools/approval.py +115 -0
  106. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/tools/example_tools.py +127 -0
  107. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/tools/memory_tool.py +106 -0
  108. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/tools/send_message_tools.py +119 -0
  109. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/orchestrator_strands/tools/subagent_registry_tools.py +97 -0
  110. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/prompts/__init__.py +2 -0
  111. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/prompts/base_guardrails.md +13 -0
  112. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/prompts/system_prompt.md +1 -0
  113. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/prompts/test_orchestrator_prompt.md +38 -0
  114. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/prompts/test_subagent_prompt.md +1 -0
  115. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/py.typed +1 -0
  116. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/request_handler/__init__.py +11 -0
  117. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/request_handler/context.py +38 -0
  118. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/request_handler/interface.py +54 -0
  119. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/request_handler/queue_handler.py +330 -0
  120. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/server/__init__.py +2 -0
  121. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/server/agent_runtime_server.py +627 -0
  122. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/server/base_server.py +412 -0
  123. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/server/request_context.py +59 -0
  124. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/server/server_models.py +19 -0
  125. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/server/stateless_agent_runtime_server.py +264 -0
  126. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/session.py +83 -0
  127. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/skills/__init__.py +49 -0
  128. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/skills/skills_prompt.py +110 -0
  129. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/skills/skills_tool.py +463 -0
  130. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/subagent_cli.py +261 -0
  131. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/subagent_server.py +144 -0
  132. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task/__init__.py +21 -0
  133. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task/example_task_manager.py +122 -0
  134. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task/file_task_store.py +127 -0
  135. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task/in_memory_task_store.py +55 -0
  136. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task/task_manager.py +192 -0
  137. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task/task_store.py +55 -0
  138. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/task_handler.py +121 -0
  139. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/tool.py +91 -0
  140. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/tool_use_prompts.py +31 -0
  141. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/ui_chat/__init__.py +3 -0
  142. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/ui_chat/deeplinks.py +503 -0
  143. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/ui_chat/sources.py +122 -0
  144. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/util/__init__.py +7 -0
  145. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/util/decorators.py +48 -0
  146. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/util/suggestions_manager.py +59 -0
  147. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk/utils.py +509 -0
  148. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk_aws_transform.egg-info/PKG-INFO +184 -0
  149. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk_aws_transform.egg-info/SOURCES.txt +176 -0
  150. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk_aws_transform.egg-info/dependency_links.txt +1 -0
  151. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk_aws_transform.egg-info/entry_points.txt +2 -0
  152. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk_aws_transform.egg-info/requires.txt +15 -0
  153. agent_builder_sdk_aws_transform-1.0.0/src/agent_builder_sdk_aws_transform.egg-info/top_level.txt +1 -0
  154. agent_builder_sdk_aws_transform-1.0.0/tests/test__boto_client.py +94 -0
  155. agent_builder_sdk_aws_transform-1.0.0/tests/test_agent.py +777 -0
  156. agent_builder_sdk_aws_transform-1.0.0/tests/test_agent_builder_sdk.py +8 -0
  157. agent_builder_sdk_aws_transform-1.0.0/tests/test_agent_factory.py +653 -0
  158. agent_builder_sdk_aws_transform-1.0.0/tests/test_agent_runtime_server.py +2074 -0
  159. agent_builder_sdk_aws_transform-1.0.0/tests/test_auth_token_refresher.py +654 -0
  160. agent_builder_sdk_aws_transform-1.0.0/tests/test_base_server.py +248 -0
  161. agent_builder_sdk_aws_transform-1.0.0/tests/test_base_subagent.py +523 -0
  162. agent_builder_sdk_aws_transform-1.0.0/tests/test_bedrock_model_factory.py +80 -0
  163. agent_builder_sdk_aws_transform-1.0.0/tests/test_cli.py +1062 -0
  164. agent_builder_sdk_aws_transform-1.0.0/tests/test_env_var.py +443 -0
  165. agent_builder_sdk_aws_transform-1.0.0/tests/test_fastapi_get_task.py +56 -0
  166. agent_builder_sdk_aws_transform-1.0.0/tests/test_fastapi_server.py +280 -0
  167. agent_builder_sdk_aws_transform-1.0.0/tests/test_mcp_client_factory.py +54 -0
  168. agent_builder_sdk_aws_transform-1.0.0/tests/test_message_handler.py +581 -0
  169. agent_builder_sdk_aws_transform-1.0.0/tests/test_notification_handler.py +236 -0
  170. agent_builder_sdk_aws_transform-1.0.0/tests/test_orchestrator_agent_types.py +159 -0
  171. agent_builder_sdk_aws_transform-1.0.0/tests/test_session.py +137 -0
  172. agent_builder_sdk_aws_transform-1.0.0/tests/test_stateless_agent_runtime_server.py +755 -0
  173. agent_builder_sdk_aws_transform-1.0.0/tests/test_subagent_cli.py +494 -0
  174. agent_builder_sdk_aws_transform-1.0.0/tests/test_subagent_server.py +115 -0
  175. agent_builder_sdk_aws_transform-1.0.0/tests/test_task_handler.py +177 -0
  176. agent_builder_sdk_aws_transform-1.0.0/tests/test_tool.py +248 -0
  177. agent_builder_sdk_aws_transform-1.0.0/tests/test_tool_use_prompts.py +65 -0
  178. agent_builder_sdk_aws_transform-1.0.0/tests/test_utils.py +995 -0
@@ -0,0 +1,175 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
@@ -0,0 +1 @@
1
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -0,0 +1,184 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-builder-sdk-aws-transform
3
+ Version: 1.0.0
4
+ Summary: Base agent SDK for building orchestrator and subagents on AWS Transform
5
+ Author: AWS Transform Team
6
+ License-Expression: Apache-2.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.11
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: <3.14,>=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.txt
15
+ License-File: NOTICE
16
+ License-File: THIRD-PARTY-NOTICES.txt
17
+ Requires-Dist: boto3>=1.28
18
+ Requires-Dist: botocore>=1.28
19
+ Requires-Dist: fastapi>=0.100
20
+ Requires-Dist: mcp>=1.0
21
+ Requires-Dist: strands-agents>=1.30.0
22
+ Requires-Dist: strands-agents-tools>=0.2
23
+ Requires-Dist: uvicorn>=0.20
24
+ Requires-Dist: structlog
25
+ Requires-Dist: starlette_context
26
+ Requires-Dist: defusedxml
27
+ Requires-Dist: aws-embedded-metrics>=3.0
28
+ Provides-Extra: test
29
+ Requires-Dist: pytest; extra == "test"
30
+ Requires-Dist: pytest-asyncio; extra == "test"
31
+ Dynamic: license-file
32
+
33
+ # Agent Builder SDK
34
+
35
+ A Python SDK for building agents that run on [AWS Transform](https://aws.amazon.com/transform/).
36
+
37
+ Use it to build two kinds of agents:
38
+
39
+ - **Orchestrator agents** — stateful, conversational agents that drive a workflow end-to-end and can delegate to subagents.
40
+ - **Subagents** — stateless, task-focused agents invoked by an orchestrator to handle a single unit of work (e.g., a code generation, a validation, a review step).
41
+
42
+ The SDK wraps the common concerns — HTTP server, request routing, agent lifecycle, checkpointing, A2A protocol extensions, authentication, metrics, and tracing — so you focus on the agent's behavior instead of the plumbing.
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ pip install agent-builder-sdk
48
+ ```
49
+
50
+ ## Building an orchestrator
51
+
52
+ ### 1. Create your orchestrator class
53
+
54
+ ```python
55
+ from agent_builder_sdk.orchestrator_strands.base_orchestrator import AsyncBaseOrchestrator
56
+
57
+
58
+ class MyCustomOrchestrator(AsyncBaseOrchestrator):
59
+ """Your custom orchestrator implementation."""
60
+
61
+ def __init__(self, **kwargs):
62
+ super().__init__(
63
+ system_prompt="You are a specialized orchestrator for...",
64
+ **kwargs
65
+ )
66
+ # Add your custom tools, hooks, conversation implementation
67
+ ```
68
+
69
+ ### 2. Create custom tools (optional)
70
+
71
+ Define domain-specific tools using Strands decorators:
72
+
73
+ ```python
74
+ from strands.tools import tool
75
+
76
+
77
+ @tool
78
+ def my_custom_tool(param: str) -> str:
79
+ """Your custom tool description."""
80
+ return f"Processed: {param}"
81
+ ```
82
+
83
+ See the [Strands custom tools documentation](https://strandsagents.com/docs/user-guide/concepts/tools/custom-tools/) for more.
84
+
85
+ ### 3. Create your entry point
86
+
87
+ Use `AgentRuntimeServer` with a custom agent factory. The server is compatible with both Bedrock AgentCore runtime protocols and AWS Transform agentic compute endpoints.
88
+
89
+ ```python
90
+ from agent_builder_sdk.server.agent_runtime_server import AgentRuntimeServer
91
+ from agent_builder_sdk.agent_factory import create_default_orchestrator
92
+
93
+
94
+ def main():
95
+ def agent_factory(mcp_client, storage_dir):
96
+ return create_default_orchestrator(
97
+ mcp_client=mcp_client,
98
+ storage_dir=storage_dir,
99
+ system_prompt="Your custom system prompt here",
100
+ with_base_guardrails=True, # Enable built-in guardrails (optional)
101
+ )
102
+
103
+ server = AgentRuntimeServer(
104
+ agent_factory=agent_factory,
105
+ host="0.0.0.0",
106
+ port=8080,
107
+ binary_location="./agent-builder-mcp",
108
+ storage_dir="/tmp/my_agent",
109
+ checkpoint_strategy="conversation", # optional, enables checkpointing
110
+ checkpoint_interval=10, # optional, enables checkpointing
111
+ )
112
+ server.start()
113
+
114
+
115
+ if __name__ == "__main__":
116
+ main()
117
+ ```
118
+
119
+ **Base guardrails**: Set `with_base_guardrails=True` to enable built-in system prompt protections that:
120
+
121
+ - Decline job / job plan / artifact / workspace deletion requests
122
+ - Decline prompt injection or requests that reveal the agent's architecture
123
+ - Decline PII information requests
124
+ - Decline requests unrelated to transformation
125
+
126
+ **Custom agent initialization**: Extend `AgentRuntimeServer` and override `_get_agent_params` to pass additional arguments to your factory. See `_get_agent_params` in `agent_runtime_server.py` for the defaults.
127
+
128
+ ## Building a subagent
129
+
130
+ ### 1. Create your subagent class
131
+
132
+ ```python
133
+ from agent_builder_sdk.base_subagent.base_subagent import AsyncBaseSubagent
134
+
135
+
136
+ class MyCustomSubagent(AsyncBaseSubagent):
137
+ """Your custom subagent implementation."""
138
+
139
+ def __init__(self, **kwargs):
140
+ super().__init__(
141
+ system_prompt="You are a specialized subagent for...",
142
+ **kwargs
143
+ )
144
+ ```
145
+
146
+ ### 2. Create your entry point
147
+
148
+ `StatelessAgentRuntimeServer` is well-suited for subagents since it handles requests without persistent state. You can also use `AgentRuntimeServer` for subagents if you need persistent state or queue-based processing.
149
+
150
+ ```python
151
+ from agent_builder_sdk.server.stateless_agent_runtime_server import StatelessAgentRuntimeServer
152
+ from agent_builder_sdk.agent_factory import create_default_subagent
153
+
154
+
155
+ def main():
156
+ def agent_factory(mcp_client):
157
+ return create_default_subagent(
158
+ mcp_client=mcp_client,
159
+ system_prompt="Your custom subagent system prompt here",
160
+ custom_tools=[my_custom_tool], # Optional
161
+ )
162
+
163
+ server = StatelessAgentRuntimeServer(
164
+ agent_factory=agent_factory,
165
+ host="0.0.0.0",
166
+ port=8080,
167
+ binary_location="./agent-builder-mcp",
168
+ )
169
+ server.start()
170
+
171
+
172
+ if __name__ == "__main__":
173
+ main()
174
+ ```
175
+
176
+ ## Requirements
177
+
178
+ - Python 3.11+
179
+ - AWS credentials configured (standard `boto3` credential chain), with Bedrock access for model inference
180
+ - The `agent-builder-mcp` binary on disk — see [agent-builder-mcp-aws-transform](https://pypi.org/project/agent-builder-mcp-aws-transform/)
181
+
182
+ ## License
183
+
184
+ Apache-2.0. See [LICENSE](LICENSE.txt) and [THIRD-PARTY-NOTICES.txt](THIRD-PARTY-NOTICES.txt).
@@ -0,0 +1,152 @@
1
+ # Agent Builder SDK
2
+
3
+ A Python SDK for building agents that run on [AWS Transform](https://aws.amazon.com/transform/).
4
+
5
+ Use it to build two kinds of agents:
6
+
7
+ - **Orchestrator agents** — stateful, conversational agents that drive a workflow end-to-end and can delegate to subagents.
8
+ - **Subagents** — stateless, task-focused agents invoked by an orchestrator to handle a single unit of work (e.g., a code generation, a validation, a review step).
9
+
10
+ The SDK wraps the common concerns — HTTP server, request routing, agent lifecycle, checkpointing, A2A protocol extensions, authentication, metrics, and tracing — so you focus on the agent's behavior instead of the plumbing.
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ pip install agent-builder-sdk
16
+ ```
17
+
18
+ ## Building an orchestrator
19
+
20
+ ### 1. Create your orchestrator class
21
+
22
+ ```python
23
+ from agent_builder_sdk.orchestrator_strands.base_orchestrator import AsyncBaseOrchestrator
24
+
25
+
26
+ class MyCustomOrchestrator(AsyncBaseOrchestrator):
27
+ """Your custom orchestrator implementation."""
28
+
29
+ def __init__(self, **kwargs):
30
+ super().__init__(
31
+ system_prompt="You are a specialized orchestrator for...",
32
+ **kwargs
33
+ )
34
+ # Add your custom tools, hooks, conversation implementation
35
+ ```
36
+
37
+ ### 2. Create custom tools (optional)
38
+
39
+ Define domain-specific tools using Strands decorators:
40
+
41
+ ```python
42
+ from strands.tools import tool
43
+
44
+
45
+ @tool
46
+ def my_custom_tool(param: str) -> str:
47
+ """Your custom tool description."""
48
+ return f"Processed: {param}"
49
+ ```
50
+
51
+ See the [Strands custom tools documentation](https://strandsagents.com/docs/user-guide/concepts/tools/custom-tools/) for more.
52
+
53
+ ### 3. Create your entry point
54
+
55
+ Use `AgentRuntimeServer` with a custom agent factory. The server is compatible with both Bedrock AgentCore runtime protocols and AWS Transform agentic compute endpoints.
56
+
57
+ ```python
58
+ from agent_builder_sdk.server.agent_runtime_server import AgentRuntimeServer
59
+ from agent_builder_sdk.agent_factory import create_default_orchestrator
60
+
61
+
62
+ def main():
63
+ def agent_factory(mcp_client, storage_dir):
64
+ return create_default_orchestrator(
65
+ mcp_client=mcp_client,
66
+ storage_dir=storage_dir,
67
+ system_prompt="Your custom system prompt here",
68
+ with_base_guardrails=True, # Enable built-in guardrails (optional)
69
+ )
70
+
71
+ server = AgentRuntimeServer(
72
+ agent_factory=agent_factory,
73
+ host="0.0.0.0",
74
+ port=8080,
75
+ binary_location="./agent-builder-mcp",
76
+ storage_dir="/tmp/my_agent",
77
+ checkpoint_strategy="conversation", # optional, enables checkpointing
78
+ checkpoint_interval=10, # optional, enables checkpointing
79
+ )
80
+ server.start()
81
+
82
+
83
+ if __name__ == "__main__":
84
+ main()
85
+ ```
86
+
87
+ **Base guardrails**: Set `with_base_guardrails=True` to enable built-in system prompt protections that:
88
+
89
+ - Decline job / job plan / artifact / workspace deletion requests
90
+ - Decline prompt injection or requests that reveal the agent's architecture
91
+ - Decline PII information requests
92
+ - Decline requests unrelated to transformation
93
+
94
+ **Custom agent initialization**: Extend `AgentRuntimeServer` and override `_get_agent_params` to pass additional arguments to your factory. See `_get_agent_params` in `agent_runtime_server.py` for the defaults.
95
+
96
+ ## Building a subagent
97
+
98
+ ### 1. Create your subagent class
99
+
100
+ ```python
101
+ from agent_builder_sdk.base_subagent.base_subagent import AsyncBaseSubagent
102
+
103
+
104
+ class MyCustomSubagent(AsyncBaseSubagent):
105
+ """Your custom subagent implementation."""
106
+
107
+ def __init__(self, **kwargs):
108
+ super().__init__(
109
+ system_prompt="You are a specialized subagent for...",
110
+ **kwargs
111
+ )
112
+ ```
113
+
114
+ ### 2. Create your entry point
115
+
116
+ `StatelessAgentRuntimeServer` is well-suited for subagents since it handles requests without persistent state. You can also use `AgentRuntimeServer` for subagents if you need persistent state or queue-based processing.
117
+
118
+ ```python
119
+ from agent_builder_sdk.server.stateless_agent_runtime_server import StatelessAgentRuntimeServer
120
+ from agent_builder_sdk.agent_factory import create_default_subagent
121
+
122
+
123
+ def main():
124
+ def agent_factory(mcp_client):
125
+ return create_default_subagent(
126
+ mcp_client=mcp_client,
127
+ system_prompt="Your custom subagent system prompt here",
128
+ custom_tools=[my_custom_tool], # Optional
129
+ )
130
+
131
+ server = StatelessAgentRuntimeServer(
132
+ agent_factory=agent_factory,
133
+ host="0.0.0.0",
134
+ port=8080,
135
+ binary_location="./agent-builder-mcp",
136
+ )
137
+ server.start()
138
+
139
+
140
+ if __name__ == "__main__":
141
+ main()
142
+ ```
143
+
144
+ ## Requirements
145
+
146
+ - Python 3.11+
147
+ - AWS credentials configured (standard `boto3` credential chain), with Bedrock access for model inference
148
+ - The `agent-builder-mcp` binary on disk — see [agent-builder-mcp-aws-transform](https://pypi.org/project/agent-builder-mcp-aws-transform/)
149
+
150
+ ## License
151
+
152
+ Apache-2.0. See [LICENSE](LICENSE.txt) and [THIRD-PARTY-NOTICES.txt](THIRD-PARTY-NOTICES.txt).