agentscope-runtime 1.0.0b2__tar.gz → 1.0.2__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 (283) hide show
  1. {agentscope_runtime-1.0.0b2/src/agentscope_runtime.egg-info → agentscope_runtime-1.0.2}/PKG-INFO +82 -11
  2. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/README.md +73 -7
  3. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/pyproject.toml +15 -5
  4. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/message.py +78 -10
  5. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/stream.py +155 -101
  6. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/tool/tool.py +1 -3
  7. agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/agno/message.py +30 -0
  8. agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/agno/stream.py +122 -0
  9. agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/langgraph/__init__.py +12 -0
  10. agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/langgraph/message.py +257 -0
  11. agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/langgraph/stream.py +205 -0
  12. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/__init__.py +7 -0
  13. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/cli.py +63 -0
  14. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/__init__.py +2 -0
  15. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/chat.py +815 -0
  16. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/deploy.py +1062 -0
  17. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/invoke.py +58 -0
  18. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/list_cmd.py +103 -0
  19. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/run.py +176 -0
  20. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/sandbox.py +128 -0
  21. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/status.py +60 -0
  22. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/stop.py +185 -0
  23. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/commands/web.py +166 -0
  24. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/loaders/__init__.py +6 -0
  25. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/loaders/agent_loader.py +295 -0
  26. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/state/__init__.py +10 -0
  27. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/utils/__init__.py +18 -0
  28. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/utils/console.py +378 -0
  29. agentscope_runtime-1.0.2/src/agentscope_runtime/cli/utils/validators.py +118 -0
  30. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/app/agent_app.py +15 -5
  31. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/__init__.py +1 -0
  32. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/agentrun_deployer.py +154 -24
  33. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/base.py +43 -0
  34. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/kubernetes_deployer.py +158 -31
  35. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/local_deployer.py +188 -25
  36. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/modelstudio_deployer.py +109 -18
  37. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/state/__init__.py +9 -0
  38. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/state/manager.py +388 -0
  39. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/state/schema.py +96 -0
  40. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/utils/build_cache.py +736 -0
  41. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/detached_app.py +105 -30
  42. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/docker_image_builder.py +31 -10
  43. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/dockerfile_generator.py +15 -8
  44. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/image_factory.py +30 -2
  45. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/utils/k8s_utils.py +241 -0
  46. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/package.py +56 -6
  47. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/service_utils/fastapi_factory.py +68 -9
  48. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/service_utils/process_manager.py +155 -5
  49. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/wheel_packager.py +107 -123
  50. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/runner.py +32 -12
  51. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/agent_schemas.py +21 -7
  52. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/schemas/exception.py +580 -0
  53. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/agent_state/__init__.py +2 -0
  54. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services/agent_state/state_service_factory.py +55 -0
  55. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/__init__.py +2 -0
  56. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services/memory/memory_service_factory.py +126 -0
  57. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/sandbox/__init__.py +2 -0
  58. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services/sandbox/sandbox_service_factory.py +49 -0
  59. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services/service_factory.py +119 -0
  60. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/session_history/__init__.py +2 -0
  61. agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services/session_history/session_history_service_factory.py +73 -0
  62. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/utils/tablestore_service_utils.py +35 -10
  63. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/wrapper.py +49 -31
  64. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/mobile/mobile_sandbox.py +113 -39
  65. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/routers/mcp_utils.py +20 -4
  66. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/utils.py +2 -0
  67. agentscope_runtime-1.0.2/src/agentscope_runtime/tools/utils/__init__.py +0 -0
  68. agentscope_runtime-1.0.2/src/agentscope_runtime/version.py +2 -0
  69. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2/src/agentscope_runtime.egg-info}/PKG-INFO +82 -11
  70. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime.egg-info/SOURCES.txt +35 -0
  71. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime.egg-info/entry_points.txt +1 -0
  72. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime.egg-info/requires.txt +8 -3
  73. agentscope_runtime-1.0.0b2/src/agentscope_runtime/engine/deployers/base.py +0 -18
  74. agentscope_runtime-1.0.0b2/src/agentscope_runtime/version.py +0 -2
  75. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/LICENSE +0 -0
  76. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/setup.cfg +0 -0
  77. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/setup.py +0 -0
  78. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/__init__.py +0 -0
  79. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/__init__.py +0 -0
  80. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/__init__.py +0 -0
  81. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/long_term_memory/__init__.py +0 -0
  82. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/long_term_memory/_long_term_memory_adapter.py +0 -0
  83. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/memory/__init__.py +0 -0
  84. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/memory/_memory_adapter.py +0 -0
  85. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/tool/__init__.py +0 -0
  86. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/agentscope/tool/sandbox_tool.py +0 -0
  87. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/adapters/autogen → agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/agno}/__init__.py +0 -0
  88. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/adapters/text → agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/autogen}/__init__.py +0 -0
  89. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/autogen/tool/__init__.py +0 -0
  90. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/autogen/tool/tool.py +0 -0
  91. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/common → agentscope_runtime-1.0.2/src/agentscope_runtime/adapters/text}/__init__.py +0 -0
  92. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/adapters/text/stream.py +0 -0
  93. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/common/container_clients → agentscope_runtime-1.0.2/src/agentscope_runtime/common}/__init__.py +0 -0
  94. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/__init__.py +0 -0
  95. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/base_mapping.py +0 -0
  96. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/base_queue.py +0 -0
  97. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/base_set.py +0 -0
  98. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/in_memory_mapping.py +0 -0
  99. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/in_memory_queue.py +0 -0
  100. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/in_memory_set.py +0 -0
  101. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/redis_mapping.py +0 -0
  102. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/redis_queue.py +0 -0
  103. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/collections/redis_set.py +0 -0
  104. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/common/utils → agentscope_runtime-1.0.2/src/agentscope_runtime/common/container_clients}/__init__.py +0 -0
  105. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/container_clients/agentrun_client.py +0 -0
  106. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/container_clients/base_client.py +0 -0
  107. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/container_clients/docker_client.py +0 -0
  108. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/container_clients/fc_client.py +0 -0
  109. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/container_clients/kubernetes_client.py +0 -0
  110. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/engine/deployers → agentscope_runtime-1.0.2/src/agentscope_runtime/common}/utils/__init__.py +0 -0
  111. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/common/utils/lazy_loader.py +0 -0
  112. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/__init__.py +0 -0
  113. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/app/__init__.py +0 -0
  114. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/app/base_app.py +0 -0
  115. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/app/celery_mixin.py +0 -0
  116. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/constant.py +0 -0
  117. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/__init__.py +0 -0
  118. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/a2a/__init__.py +0 -0
  119. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_adapter_utils.py +0 -0
  120. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_agent_adapter.py +0 -0
  121. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_protocol_adapter.py +0 -0
  122. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/protocol_adapter.py +0 -0
  123. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/responses/__init__.py +0 -0
  124. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_adapter_utils.py +0 -0
  125. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_agent_adapter.py +0 -0
  126. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_protocol_adapter.py +0 -0
  127. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/cli_fc_deploy.py +0 -0
  128. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/engine/misc → agentscope_runtime-1.0.2/src/agentscope_runtime/engine/deployers/utils}/__init__.py +0 -0
  129. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/app_runner_utils.py +0 -0
  130. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/deployment_modes.py +0 -0
  131. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/__init__.py +0 -0
  132. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/service_utils/__init__.py +0 -0
  133. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/service_utils/fastapi_templates.py +0 -0
  134. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/templates/app_main.py.j2 +0 -0
  135. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/templates/runner_main.py.j2 +0 -0
  136. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/deployers/utils/templates/standalone_main.py.j2 +0 -0
  137. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/helpers/agent_api_builder.py +0 -0
  138. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/helpers/runner.py +0 -0
  139. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/engine/schemas → agentscope_runtime-1.0.2/src/agentscope_runtime/engine/misc}/__init__.py +0 -0
  140. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/engine/services → agentscope_runtime-1.0.2/src/agentscope_runtime/engine/schemas}/__init__.py +0 -0
  141. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/embedding.py +0 -0
  142. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/modelstudio_llm.py +0 -0
  143. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/oai_llm.py +0 -0
  144. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/realtime.py +0 -0
  145. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/response_api.py +0 -0
  146. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/schemas/session.py +0 -0
  147. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/engine/services/utils → agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services}/__init__.py +0 -0
  148. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/agent_state/redis_state_service.py +0 -0
  149. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/agent_state/state_service.py +0 -0
  150. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/base.py +0 -0
  151. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/mem0_memory_service.py +0 -0
  152. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/memory_service.py +0 -0
  153. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/redis_memory_service.py +0 -0
  154. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/reme_personal_memory_service.py +0 -0
  155. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/reme_task_memory_service.py +0 -0
  156. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/memory/tablestore_memory_service.py +0 -0
  157. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/sandbox/sandbox_service.py +0 -0
  158. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/session_history/redis_session_history_service.py +0 -0
  159. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/session_history/session_history_service.py +0 -0
  160. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/services/session_history/tablestore_session_history_service.py +0 -0
  161. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box → agentscope_runtime-1.0.2/src/agentscope_runtime/engine/services/utils}/__init__.py +0 -0
  162. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/__init__.py +0 -0
  163. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/asyncio_util.py +0 -0
  164. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/base.py +0 -0
  165. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/local_logging_handler.py +0 -0
  166. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/message_util.py +0 -0
  167. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/tracing_metric.py +0 -0
  168. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/engine/tracing/tracing_util.py +0 -0
  169. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/__init__.py +0 -0
  170. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/base → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox}/box/__init__.py +0 -0
  171. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/agentbay/__init__.py +0 -0
  172. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/agentbay/agentbay_sandbox.py +0 -0
  173. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/base/__init__.py +0 -0
  174. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/base/base_sandbox.py +0 -0
  175. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/browser → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/base}/box/__init__.py +0 -0
  176. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/browser/__init__.py +0 -0
  177. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/filesystem → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/browser}/box/__init__.py +0 -0
  178. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/browser/browser_sandbox.py +0 -0
  179. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/cloud/__init__.py +0 -0
  180. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/cloud/cloud_sandbox.py +0 -0
  181. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/dummy/__init__.py +0 -0
  182. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/dummy/dummy_sandbox.py +0 -0
  183. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/filesystem/__init__.py +0 -0
  184. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/gui → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/filesystem}/box/__init__.py +0 -0
  185. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/filesystem/filesystem_sandbox.py +0 -0
  186. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/gui/__init__.py +0 -0
  187. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/mobile → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/gui}/box/__init__.py +0 -0
  188. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/gui/gui_sandbox.py +0 -0
  189. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/mobile/__init__.py +0 -0
  190. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/shared → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/mobile/box}/__init__.py +0 -0
  191. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/sandbox.py +0 -0
  192. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/box/training_box/environments → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/shared}/__init__.py +0 -0
  193. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/app.py +0 -0
  194. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/dependencies/__init__.py +0 -0
  195. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/dependencies/deps.py +0 -0
  196. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/routers/__init__.py +0 -0
  197. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/routers/generic.py +0 -0
  198. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/routers/mcp.py +0 -0
  199. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/routers/runtime_watcher.py +0 -0
  200. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/shared/routers/workspace.py +0 -0
  201. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/__init__.py +0 -0
  202. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/base.py +0 -0
  203. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/env_service.py +0 -0
  204. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/sandbox/manager/server → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/box/training_box/environments}/__init__.py +0 -0
  205. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/environments/appworld/appworld_env.py +0 -0
  206. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_dataprocess.py +0 -0
  207. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_env.py +0 -0
  208. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/env_handler.py +0 -0
  209. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/registry.py +0 -0
  210. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/src/trajectory.py +0 -0
  211. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/box/training_box/training_box.py +0 -0
  212. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/build.py +0 -0
  213. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/client/__init__.py +0 -0
  214. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/client/http_client.py +0 -0
  215. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/client/training_client.py +0 -0
  216. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/constant.py +0 -0
  217. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/custom/__init__.py +0 -0
  218. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/custom/custom_sandbox.py +0 -0
  219. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/custom/example.py +0 -0
  220. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/enums.py +0 -0
  221. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/__init__.py +0 -0
  222. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/sandbox_manager.py +0 -0
  223. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/tools/RAGs → agentscope_runtime-1.0.2/src/agentscope_runtime/sandbox/manager/server}/__init__.py +0 -0
  224. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/server/app.py +0 -0
  225. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/server/config.py +0 -0
  226. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/server/models.py +0 -0
  227. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/storage/__init__.py +0 -0
  228. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/storage/data_storage.py +0 -0
  229. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/storage/local_storage.py +0 -0
  230. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py +0 -0
  231. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/mcp_server.py +0 -0
  232. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/model/__init__.py +0 -0
  233. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/model/api.py +0 -0
  234. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/model/container.py +0 -0
  235. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/model/manager_config.py +0 -0
  236. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/sandbox/registry.py +0 -0
  237. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/tools/cli → agentscope_runtime-1.0.2/src/agentscope_runtime/tools/RAGs}/__init__.py +0 -0
  238. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/RAGs/modelstudio_rag.py +0 -0
  239. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/RAGs/modelstudio_rag_lite.py +0 -0
  240. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/__init__.py +0 -0
  241. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/_constants.py +0 -0
  242. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/alipay/__init__.py +0 -0
  243. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/alipay/base.py +0 -0
  244. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/alipay/payment.py +0 -0
  245. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/alipay/subscribe.py +0 -0
  246. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/base.py +0 -0
  247. {agentscope_runtime-1.0.0b2/src/agentscope_runtime/tools/utils → agentscope_runtime-1.0.2/src/agentscope_runtime/tools/cli}/__init__.py +0 -0
  248. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/cli/modelstudio_mcp_server.py +0 -0
  249. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/__init__.py +0 -0
  250. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/async_image_to_video.py +0 -0
  251. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/async_image_to_video_wan25.py +0 -0
  252. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/async_speech_to_video.py +0 -0
  253. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/async_text_to_video.py +0 -0
  254. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/async_text_to_video_wan25.py +0 -0
  255. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/image_edit.py +0 -0
  256. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/image_edit_wan25.py +0 -0
  257. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/image_generation.py +0 -0
  258. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/image_generation_wan25.py +0 -0
  259. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/image_style_repaint.py +0 -0
  260. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/image_to_video.py +0 -0
  261. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/qwen_image_edit.py +0 -0
  262. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/qwen_image_generation.py +0 -0
  263. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/qwen_text_to_speech.py +0 -0
  264. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/speech_to_text.py +0 -0
  265. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/speech_to_video.py +0 -0
  266. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/generations/text_to_video.py +0 -0
  267. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/mcp_wrapper.py +0 -0
  268. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/__init__.py +0 -0
  269. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/asr_client.py +0 -0
  270. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/azure_asr_client.py +0 -0
  271. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/azure_tts_client.py +0 -0
  272. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/modelstudio_asr_client.py +0 -0
  273. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/modelstudio_tts_client.py +0 -0
  274. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/realtime_tool.py +0 -0
  275. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/realtime_clients/tts_client.py +0 -0
  276. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/searches/__init__.py +0 -0
  277. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/searches/modelstudio_search.py +0 -0
  278. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/searches/modelstudio_search_lite.py +0 -0
  279. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/utils/api_key_util.py +0 -0
  280. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/utils/crypto_utils.py +0 -0
  281. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime/tools/utils/mcp_util.py +0 -0
  282. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime.egg-info/dependency_links.txt +0 -0
  283. {agentscope_runtime-1.0.0b2 → agentscope_runtime-1.0.2}/src/agentscope_runtime.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentscope-runtime
3
- Version: 1.0.0b2
3
+ Version: 1.0.2
4
4
  Summary: A production-ready runtime framework for agent applications, providing secure sandboxed execution environments and scalable deployment solutions with multi-framework support.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -11,7 +11,7 @@ Requires-Dist: uvicorn[standard]>=0.24.0
11
11
  Requires-Dist: openai
12
12
  Requires-Dist: pydantic>=2.11.7
13
13
  Requires-Dist: requests>=2.32.4
14
- Requires-Dist: agentscope>=1.0.6
14
+ Requires-Dist: agentscope>=1.0.9
15
15
  Requires-Dist: docker>=7.1.0
16
16
  Requires-Dist: redis>=6.0.0
17
17
  Requires-Dist: oss2>=2.19.1
@@ -26,6 +26,8 @@ Requires-Dist: psutil
26
26
  Requires-Dist: dashscope>=1.25.0
27
27
  Requires-Dist: jsonref
28
28
  Requires-Dist: asgiref
29
+ Requires-Dist: click>=8.0.0
30
+ Requires-Dist: rich>=13.0.0
29
31
  Provides-Extra: dev
30
32
  Requires-Dist: pytest>=8.3.5; extra == "dev"
31
33
  Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
@@ -37,9 +39,11 @@ Requires-Dist: fakeredis>=2.31.0; extra == "dev"
37
39
  Requires-Dist: sphinx-autoapi>=3.6.0; extra == "dev"
38
40
  Requires-Dist: pytest-mock>=3.15.1; extra == "dev"
39
41
  Requires-Dist: sphinxcontrib-mermaid>=1.2.3; extra == "dev"
40
- Requires-Dist: langgraph>=0.4.0; extra == "dev"
41
- Requires-Dist: autogen-agentchat>=0.7.0; extra == "dev"
42
42
  Provides-Extra: ext
43
+ Requires-Dist: langchain>=1.1.3; extra == "ext"
44
+ Requires-Dist: langchain_openai>=1.0.1; extra == "ext"
45
+ Requires-Dist: langgraph>=1.0.4; extra == "ext"
46
+ Requires-Dist: autogen-agentchat>=0.7.0; extra == "ext"
43
47
  Requires-Dist: reme-ai>=0.2.0.2; extra == "ext"
44
48
  Requires-Dist: mem0ai>=0.1.117; extra == "ext"
45
49
  Requires-Dist: alibabacloud-agentrun20250910>=2.0.1; extra == "ext"
@@ -61,6 +65,7 @@ Requires-Dist: setuptools>=40.8.0; extra == "ext"
61
65
  Requires-Dist: wheel; extra == "ext"
62
66
  Requires-Dist: alibabacloud-credentials; extra == "ext"
63
67
  Requires-Dist: PyYAML; extra == "ext"
68
+ Requires-Dist: agno>=2.3.8; extra == "ext"
64
69
  Dynamic: license-file
65
70
 
66
71
  <div align="center">
@@ -71,6 +76,7 @@ Dynamic: license-file
71
76
  [![PyPI](https://img.shields.io/pypi/v/agentscope-runtime?label=PyPI&color=brightgreen&logo=python)](https://pypi.org/project/agentscope-runtime/)
72
77
  [![Downloads](https://static.pepy.tech/badge/agentscope-runtime)](https://pepy.tech/project/agentscope-runtime)
73
78
  [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg?logo=python&label=Python)](https://python.org)
79
+ [![Last Commit](https://img.shields.io/github/last-commit/agentscope-ai/agentscope-runtime)](https://github.com/agentscope-ai/agentscope-runtime)
74
80
  [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache&label=License)](LICENSE)
75
81
  [![Code Style](https://img.shields.io/badge/code%20style-black-black.svg?logo=python&label=CodeStyle)](https://github.com/psf/black)
76
82
  [![GitHub Stars](https://img.shields.io/github/stars/agentscope-ai/agentscope-runtime?style=flat&logo=github&color=yellow&label=Stars)](https://github.com/agentscope-ai/agentscope-runtime/stargazers)
@@ -114,7 +120,15 @@ Dynamic: license-file
114
120
 
115
121
  > [!NOTE]
116
122
  >
117
- > **About Framework-Agnostic**: Currently, AgentScope Runtime supports the **AgentScope** framework. We plan to extend compatibility to more agent development frameworks in the future.
123
+ > **About Framework-Agnostic**: Currently, AgentScope Runtime supports the **AgentScope** framework. We plan to extend compatibility to more agent development frameworks in the future. This table shows the current version’s adapter support for different frameworks. The level of support for each functionality varies across frameworks:
124
+ >
125
+ > | Framework/Feature | Message/Event | Tool | Service |
126
+ > | ------------------------------------------------------------ | ------------- | ---- | ------- |
127
+ > | AgentScope | ✅ | ✅ | ✅ |
128
+ > | [LangGraph](https://runtime.agentscope.io/en/langgraph_guidelines.html) | ✅ | 🚧 | 🚧 |
129
+ > | AutoGen | 🚧 | ✅ | 🚧 |
130
+ > | Microsoft Agent Framework | 🚧 | 🚧 | 🚧 |
131
+ > | [Agno](https://runtime.agentscope.io/en/agno_guidelines.html) | ✅ | ✅ | 🚧 |
118
132
 
119
133
  ---
120
134
 
@@ -124,7 +138,7 @@ Welcome to join our community on
124
138
 
125
139
  | [Discord](https://discord.gg/eYMpfnkG8h) | DingTalk |
126
140
  | ------------------------------------------------------------ | ------------------------------------------------------------ |
127
- | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01hhD1mu1Dd3BWVUvxN_!!6000000000238-2-tps-400-400.png" width="100" height="100"> | <img src="https://img.alicdn.com/imgextra/i1/O1CN01LxzZha1thpIN2cc2E_!!6000000005934-2-tps-497-477.png" width="100" height="100"> |
141
+ | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01hhD1mu1Dd3BWVUvxN_!!6000000000238-2-tps-400-400.png" width="100" height="100"> | <img src="https://img.alicdn.com/imgextra/i4/O1CN014mhqFq1ZlgNuYjxrz_!!6000000003235-2-tps-400-400.png" width="100" height="100"> |
128
142
 
129
143
  ---
130
144
 
@@ -301,9 +315,11 @@ You’ll see output streamed in **Server-Sent Events (SSE)** format:
301
315
  ```bash
302
316
  data: {"sequence_number":0,"object":"response","status":"created", ... }
303
317
  data: {"sequence_number":1,"object":"response","status":"in_progress", ... }
304
- data: {"sequence_number":2,"object":"content","status":"in_progress","text":"The" }
305
- data: {"sequence_number":3,"object":"content","status":"in_progress","text":" capital of France is Paris." }
306
- data: {"sequence_number":4,"object":"message","status":"completed","text":"The capital of France is Paris." }
318
+ data: {"sequence_number":2,"object":"message","status":"in_progress", ... }
319
+ data: {"sequence_number":3,"object":"content","status":"in_progress","text":"The" }
320
+ data: {"sequence_number":4,"object":"content","status":"in_progress","text":" capital of France is Paris." }
321
+ data: {"sequence_number":5,"object":"message","status":"completed","text":"The capital of France is Paris." }
322
+ data: {"sequence_number":6,"object":"response","status":"completed", ... }
307
323
  ```
308
324
 
309
325
  ### Sandbox Example
@@ -387,6 +403,8 @@ with FilesystemSandbox() as box:
387
403
 
388
404
  Provides a **sandboxed Android emulator environment** that allows executing various mobile operations, such as tapping, swiping, inputting text, and taking screenshots.
389
405
 
406
+ <img src="https://img.alicdn.com/imgextra/i4/O1CN01yPnBC21vOi45fLy7V_!!6000000006163-2-tps-544-865.png" alt="Mobile Sandbox" height="500">
407
+
390
408
  ##### Prerequisites
391
409
 
392
410
  - **Linux Host**:
@@ -408,7 +426,7 @@ with MobileSandbox() as box:
408
426
  # By default, pulls 'agentscope/runtime-sandbox-mobile:latest' from DockerHub
409
427
  print(box.list_tools()) # List all available tools
410
428
  print(box.mobile_get_screen_resolution()) # Get the screen resolution
411
- print(box.mobile_tap(x=500, y=1000)) # Tap at coordinate (500, 1000)
429
+ print(box.mobile_tap([500, 1000])) # Tap at coordinate (500, 1000)
412
430
  print(box.mobile_input_text("Hello from AgentScope!")) # Input text
413
431
  print(box.mobile_key_event(3)) # Sends a HOME key event (KeyCode: 3)
414
432
  screenshot_result = box.mobile_get_screenshot() # Get the current screenshot
@@ -484,6 +502,22 @@ agentscope-registry.ap-southeast-1.cr.aliyuncs.com/agentscope/runtime-sandbox-ba
484
502
 
485
503
  ---
486
504
 
505
+ #### Serverless Sandbox Deployment
506
+
507
+ AgentScope Runtime also supports serverless deployment, which is suitable for running sandboxes in a serverless environment,
508
+ [Alibaba Cloud Function Compute (FC)](https://help.aliyun.com/zh/functioncompute/fc/) or [Alibaba Cloud AgentRun](https://docs.agent.run/).
509
+
510
+ First, please refer to the [documentation](https://runtime.agentscope.io/en/sandbox/advanced.html#optional-function-compute-fc-settings) to configure the serverless environment variables.
511
+ Make `CONTAINER_DEPLOYMENT` to `fc` or `agentrun` to enable serverless deployment.
512
+
513
+ Then, start a sandbox server, use the `--config` option to specify a serverless environment setup:
514
+
515
+ ```bash
516
+ # This command will load the settings defined in the `custom.env` file
517
+ runtime-sandbox-server --config fc.env
518
+ ```
519
+ After the server starts, you can access the sandbox server at baseurl `http://localhost:8000` and invoke sandbox tools described above.
520
+
487
521
  ## 📚 Cookbook
488
522
 
489
523
  - **[📖 Cookbook](https://runtime.agentscope.io/en/intro.html)**: Comprehensive tutorials
@@ -534,6 +568,40 @@ response = client.responses.create(
534
568
  print(response)
535
569
  ```
536
570
 
571
+ Besides, `DeployManager` also supports serverless deployments, such as deploying your agent app
572
+ to [ModelStudio](https://bailian.console.aliyun.com/?admin=1&tab=doc#/doc/?type=app&url=2983030)
573
+ or [AgentRun](https://docs.agent.run/).
574
+
575
+ ```python
576
+ from agentscope_runtime.engine.deployers import ModelStudioDeployManager
577
+ # Create deployment manager
578
+ deployer = ModelstudioDeployManager(
579
+ oss_config=OSSConfig(
580
+ access_key_id=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_ID"),
581
+ access_key_secret=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_SECRET"),
582
+ ),
583
+ modelstudio_config=ModelstudioConfig(
584
+ workspace_id=os.environ.get("MODELSTUDIO_WORKSPACE_ID"),
585
+ access_key_id=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_ID"),
586
+ access_key_secret=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_SECRET"),
587
+ dashscope_api_key=os.environ.get("DASHSCOPE_API_KEY"),
588
+ ),
589
+ )
590
+
591
+ # Deploy to ModelStudio
592
+ result = await app.deploy(
593
+ deployer,
594
+ deploy_name="agent-app-example",
595
+ telemetry_enabled=True,
596
+ requirements=["agentscope", "fastapi", "uvicorn"],
597
+ environment={
598
+ "PYTHONPATH": "/app",
599
+ "DASHSCOPE_API_KEY": os.environ.get("DASHSCOPE_API_KEY"),
600
+ },
601
+ )
602
+ ```
603
+
604
+ For more advanced serverless deployment guides, please refer to the [documentation](https://runtime.agentscope.io/en/advanced_deployment.html#method-4-modelstudio-deployment).
537
605
 
538
606
  ---
539
607
 
@@ -584,7 +652,7 @@ limitations under the License.
584
652
 
585
653
  ## Contributors ✨
586
654
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
587
- [![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors-)
655
+ [![All Contributors](https://img.shields.io/badge/all_contributors-26-orange.svg?style=flat-square)](#contributors-)
588
656
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
589
657
 
590
658
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/emoji-key/)):
@@ -624,6 +692,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/e
624
692
  <tr>
625
693
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/iSample"><img src="https://avatars.githubusercontent.com/u/12894421?v=4?s=100" width="100px;" alt="iSample"/><br /><sub><b>iSample</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=iSample" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=iSample" title="Documentation">📖</a></td>
626
694
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/XiuShenAl"><img src="https://avatars.githubusercontent.com/u/242360128?v=4?s=100" width="100px;" alt="XiuShenAl"/><br /><sub><b>XiuShenAl</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=XiuShenAl" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=XiuShenAl" title="Documentation">📖</a></td>
695
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/k-farruh"><img src="https://avatars.githubusercontent.com/u/33511681?v=4?s=100" width="100px;" alt="Farruh Kushnazarov"/><br /><sub><b>Farruh Kushnazarov</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=k-farruh" title="Documentation">📖</a></td>
696
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/fengxsong"><img src="https://avatars.githubusercontent.com/u/7008971?v=4?s=100" width="100px;" alt="fengxsong"/><br /><sub><b>fengxsong</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Afengxsong" title="Bug reports">🐛</a></td>
697
+ <td align="center" valign="top" width="14.28%"><a href="https://m4n5ter.github.io"><img src="https://avatars.githubusercontent.com/u/68144809?v=4?s=100" width="100px;" alt="Wang"/><br /><sub><b>Wang</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=M4n5ter" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3AM4n5ter" title="Bug reports">🐛</a></td>
627
698
  </tr>
628
699
  </tbody>
629
700
  <tfoot>
@@ -6,6 +6,7 @@
6
6
  [![PyPI](https://img.shields.io/pypi/v/agentscope-runtime?label=PyPI&color=brightgreen&logo=python)](https://pypi.org/project/agentscope-runtime/)
7
7
  [![Downloads](https://static.pepy.tech/badge/agentscope-runtime)](https://pepy.tech/project/agentscope-runtime)
8
8
  [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg?logo=python&label=Python)](https://python.org)
9
+ [![Last Commit](https://img.shields.io/github/last-commit/agentscope-ai/agentscope-runtime)](https://github.com/agentscope-ai/agentscope-runtime)
9
10
  [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache&label=License)](LICENSE)
10
11
  [![Code Style](https://img.shields.io/badge/code%20style-black-black.svg?logo=python&label=CodeStyle)](https://github.com/psf/black)
11
12
  [![GitHub Stars](https://img.shields.io/github/stars/agentscope-ai/agentscope-runtime?style=flat&logo=github&color=yellow&label=Stars)](https://github.com/agentscope-ai/agentscope-runtime/stargazers)
@@ -49,7 +50,15 @@
49
50
 
50
51
  > [!NOTE]
51
52
  >
52
- > **About Framework-Agnostic**: Currently, AgentScope Runtime supports the **AgentScope** framework. We plan to extend compatibility to more agent development frameworks in the future.
53
+ > **About Framework-Agnostic**: Currently, AgentScope Runtime supports the **AgentScope** framework. We plan to extend compatibility to more agent development frameworks in the future. This table shows the current version’s adapter support for different frameworks. The level of support for each functionality varies across frameworks:
54
+ >
55
+ > | Framework/Feature | Message/Event | Tool | Service |
56
+ > | ------------------------------------------------------------ | ------------- | ---- | ------- |
57
+ > | AgentScope | ✅ | ✅ | ✅ |
58
+ > | [LangGraph](https://runtime.agentscope.io/en/langgraph_guidelines.html) | ✅ | 🚧 | 🚧 |
59
+ > | AutoGen | 🚧 | ✅ | 🚧 |
60
+ > | Microsoft Agent Framework | 🚧 | 🚧 | 🚧 |
61
+ > | [Agno](https://runtime.agentscope.io/en/agno_guidelines.html) | ✅ | ✅ | 🚧 |
53
62
 
54
63
  ---
55
64
 
@@ -59,7 +68,7 @@ Welcome to join our community on
59
68
 
60
69
  | [Discord](https://discord.gg/eYMpfnkG8h) | DingTalk |
61
70
  | ------------------------------------------------------------ | ------------------------------------------------------------ |
62
- | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01hhD1mu1Dd3BWVUvxN_!!6000000000238-2-tps-400-400.png" width="100" height="100"> | <img src="https://img.alicdn.com/imgextra/i1/O1CN01LxzZha1thpIN2cc2E_!!6000000005934-2-tps-497-477.png" width="100" height="100"> |
71
+ | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01hhD1mu1Dd3BWVUvxN_!!6000000000238-2-tps-400-400.png" width="100" height="100"> | <img src="https://img.alicdn.com/imgextra/i4/O1CN014mhqFq1ZlgNuYjxrz_!!6000000003235-2-tps-400-400.png" width="100" height="100"> |
63
72
 
64
73
  ---
65
74
 
@@ -236,9 +245,11 @@ You’ll see output streamed in **Server-Sent Events (SSE)** format:
236
245
  ```bash
237
246
  data: {"sequence_number":0,"object":"response","status":"created", ... }
238
247
  data: {"sequence_number":1,"object":"response","status":"in_progress", ... }
239
- data: {"sequence_number":2,"object":"content","status":"in_progress","text":"The" }
240
- data: {"sequence_number":3,"object":"content","status":"in_progress","text":" capital of France is Paris." }
241
- data: {"sequence_number":4,"object":"message","status":"completed","text":"The capital of France is Paris." }
248
+ data: {"sequence_number":2,"object":"message","status":"in_progress", ... }
249
+ data: {"sequence_number":3,"object":"content","status":"in_progress","text":"The" }
250
+ data: {"sequence_number":4,"object":"content","status":"in_progress","text":" capital of France is Paris." }
251
+ data: {"sequence_number":5,"object":"message","status":"completed","text":"The capital of France is Paris." }
252
+ data: {"sequence_number":6,"object":"response","status":"completed", ... }
242
253
  ```
243
254
 
244
255
  ### Sandbox Example
@@ -322,6 +333,8 @@ with FilesystemSandbox() as box:
322
333
 
323
334
  Provides a **sandboxed Android emulator environment** that allows executing various mobile operations, such as tapping, swiping, inputting text, and taking screenshots.
324
335
 
336
+ <img src="https://img.alicdn.com/imgextra/i4/O1CN01yPnBC21vOi45fLy7V_!!6000000006163-2-tps-544-865.png" alt="Mobile Sandbox" height="500">
337
+
325
338
  ##### Prerequisites
326
339
 
327
340
  - **Linux Host**:
@@ -343,7 +356,7 @@ with MobileSandbox() as box:
343
356
  # By default, pulls 'agentscope/runtime-sandbox-mobile:latest' from DockerHub
344
357
  print(box.list_tools()) # List all available tools
345
358
  print(box.mobile_get_screen_resolution()) # Get the screen resolution
346
- print(box.mobile_tap(x=500, y=1000)) # Tap at coordinate (500, 1000)
359
+ print(box.mobile_tap([500, 1000])) # Tap at coordinate (500, 1000)
347
360
  print(box.mobile_input_text("Hello from AgentScope!")) # Input text
348
361
  print(box.mobile_key_event(3)) # Sends a HOME key event (KeyCode: 3)
349
362
  screenshot_result = box.mobile_get_screenshot() # Get the current screenshot
@@ -419,6 +432,22 @@ agentscope-registry.ap-southeast-1.cr.aliyuncs.com/agentscope/runtime-sandbox-ba
419
432
 
420
433
  ---
421
434
 
435
+ #### Serverless Sandbox Deployment
436
+
437
+ AgentScope Runtime also supports serverless deployment, which is suitable for running sandboxes in a serverless environment,
438
+ [Alibaba Cloud Function Compute (FC)](https://help.aliyun.com/zh/functioncompute/fc/) or [Alibaba Cloud AgentRun](https://docs.agent.run/).
439
+
440
+ First, please refer to the [documentation](https://runtime.agentscope.io/en/sandbox/advanced.html#optional-function-compute-fc-settings) to configure the serverless environment variables.
441
+ Make `CONTAINER_DEPLOYMENT` to `fc` or `agentrun` to enable serverless deployment.
442
+
443
+ Then, start a sandbox server, use the `--config` option to specify a serverless environment setup:
444
+
445
+ ```bash
446
+ # This command will load the settings defined in the `custom.env` file
447
+ runtime-sandbox-server --config fc.env
448
+ ```
449
+ After the server starts, you can access the sandbox server at baseurl `http://localhost:8000` and invoke sandbox tools described above.
450
+
422
451
  ## 📚 Cookbook
423
452
 
424
453
  - **[📖 Cookbook](https://runtime.agentscope.io/en/intro.html)**: Comprehensive tutorials
@@ -469,6 +498,40 @@ response = client.responses.create(
469
498
  print(response)
470
499
  ```
471
500
 
501
+ Besides, `DeployManager` also supports serverless deployments, such as deploying your agent app
502
+ to [ModelStudio](https://bailian.console.aliyun.com/?admin=1&tab=doc#/doc/?type=app&url=2983030)
503
+ or [AgentRun](https://docs.agent.run/).
504
+
505
+ ```python
506
+ from agentscope_runtime.engine.deployers import ModelStudioDeployManager
507
+ # Create deployment manager
508
+ deployer = ModelstudioDeployManager(
509
+ oss_config=OSSConfig(
510
+ access_key_id=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_ID"),
511
+ access_key_secret=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_SECRET"),
512
+ ),
513
+ modelstudio_config=ModelstudioConfig(
514
+ workspace_id=os.environ.get("MODELSTUDIO_WORKSPACE_ID"),
515
+ access_key_id=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_ID"),
516
+ access_key_secret=os.environ.get("ALIBABA_CLOUD_ACCESS_KEY_SECRET"),
517
+ dashscope_api_key=os.environ.get("DASHSCOPE_API_KEY"),
518
+ ),
519
+ )
520
+
521
+ # Deploy to ModelStudio
522
+ result = await app.deploy(
523
+ deployer,
524
+ deploy_name="agent-app-example",
525
+ telemetry_enabled=True,
526
+ requirements=["agentscope", "fastapi", "uvicorn"],
527
+ environment={
528
+ "PYTHONPATH": "/app",
529
+ "DASHSCOPE_API_KEY": os.environ.get("DASHSCOPE_API_KEY"),
530
+ },
531
+ )
532
+ ```
533
+
534
+ For more advanced serverless deployment guides, please refer to the [documentation](https://runtime.agentscope.io/en/advanced_deployment.html#method-4-modelstudio-deployment).
472
535
 
473
536
  ---
474
537
 
@@ -519,7 +582,7 @@ limitations under the License.
519
582
 
520
583
  ## Contributors ✨
521
584
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
522
- [![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors-)
585
+ [![All Contributors](https://img.shields.io/badge/all_contributors-26-orange.svg?style=flat-square)](#contributors-)
523
586
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
524
587
 
525
588
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/emoji-key/)):
@@ -559,6 +622,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/e
559
622
  <tr>
560
623
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/iSample"><img src="https://avatars.githubusercontent.com/u/12894421?v=4?s=100" width="100px;" alt="iSample"/><br /><sub><b>iSample</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=iSample" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=iSample" title="Documentation">📖</a></td>
561
624
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/XiuShenAl"><img src="https://avatars.githubusercontent.com/u/242360128?v=4?s=100" width="100px;" alt="XiuShenAl"/><br /><sub><b>XiuShenAl</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=XiuShenAl" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=XiuShenAl" title="Documentation">📖</a></td>
625
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/k-farruh"><img src="https://avatars.githubusercontent.com/u/33511681?v=4?s=100" width="100px;" alt="Farruh Kushnazarov"/><br /><sub><b>Farruh Kushnazarov</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=k-farruh" title="Documentation">📖</a></td>
626
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/fengxsong"><img src="https://avatars.githubusercontent.com/u/7008971?v=4?s=100" width="100px;" alt="fengxsong"/><br /><sub><b>fengxsong</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Afengxsong" title="Bug reports">🐛</a></td>
627
+ <td align="center" valign="top" width="14.28%"><a href="https://m4n5ter.github.io"><img src="https://avatars.githubusercontent.com/u/68144809?v=4?s=100" width="100px;" alt="Wang"/><br /><sub><b>Wang</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=M4n5ter" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3AM4n5ter" title="Bug reports">🐛</a></td>
562
628
  </tr>
563
629
  </tbody>
564
630
  <tfoot>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agentscope-runtime"
3
- version = "1.0.0b2"
3
+ version = "1.0.2"
4
4
  description = "A production-ready runtime framework for agent applications, providing secure sandboxed execution environments and scalable deployment solutions with multi-framework support."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -11,7 +11,7 @@ dependencies = [
11
11
  "openai",
12
12
  "pydantic>=2.11.7",
13
13
  "requests>=2.32.4",
14
- "agentscope>=1.0.6",
14
+ "agentscope>=1.0.9",
15
15
  "docker>=7.1.0",
16
16
  "redis>=6.0.0",
17
17
  "oss2>=2.19.1",
@@ -26,6 +26,8 @@ dependencies = [
26
26
  "dashscope>=1.25.0",
27
27
  "jsonref",
28
28
  "asgiref",
29
+ "click>=8.0.0",
30
+ "rich>=13.0.0",
29
31
  ]
30
32
 
31
33
  [tool.setuptools]
@@ -40,6 +42,7 @@ requires = ["setuptools>=42", "wheel"]
40
42
  build-backend = "setuptools.build_meta"
41
43
 
42
44
  [project.scripts]
45
+ agentscope = "agentscope_runtime.cli.cli:main"
43
46
  runtime-sandbox-mcp = "agentscope_runtime.sandbox.mcp_server:main"
44
47
  runtime-sandbox-server = "agentscope_runtime.sandbox.manager.server.app:main"
45
48
  runtime-sandbox-builder = "agentscope_runtime.sandbox.build:main"
@@ -58,11 +61,13 @@ dev = [
58
61
  "sphinx-autoapi>=3.6.0",
59
62
  "pytest-mock>=3.15.1",
60
63
  "sphinxcontrib-mermaid>=1.2.3",
61
- "langgraph>=0.4.0",
62
- "autogen-agentchat>=0.7.0",
63
64
  ]
64
65
 
65
66
  ext = [
67
+ "langchain>=1.1.3",
68
+ "langchain_openai>=1.0.1",
69
+ "langgraph>=1.0.4",
70
+ "autogen-agentchat>=0.7.0",
66
71
  "reme-ai>=0.2.0.2",
67
72
  "mem0ai>=0.1.117",
68
73
  "alibabacloud-agentrun20250910>=2.0.1",
@@ -84,4 +89,9 @@ ext = [
84
89
  "wheel",
85
90
  "alibabacloud-credentials",
86
91
  "PyYAML",
87
- ]
92
+ "agno>=2.3.8",
93
+ ]
94
+
95
+ [tool.pytest.ini_options]
96
+ asyncio_mode = "auto"
97
+ asyncio_default_fixture_loop_scope = "function"
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # pylint:disable=too-many-branches,too-many-statements
2
+ # pylint:disable=too-many-branches,too-many-statements,protected-access
3
3
  # TODO: support file block
4
4
  import json
5
5
 
@@ -7,6 +7,7 @@ from collections import OrderedDict
7
7
  from typing import Union, List
8
8
  from urllib.parse import urlparse
9
9
 
10
+ from mcp.types import CallToolResult
10
11
  from agentscope.message import (
11
12
  Msg,
12
13
  ToolUseBlock,
@@ -19,6 +20,7 @@ from agentscope.message import (
19
20
  URLSource,
20
21
  Base64Source,
21
22
  )
23
+ from agentscope.mcp._client_base import MCPClientBase
22
24
 
23
25
  from ...engine.schemas.agent_schemas import (
24
26
  Message,
@@ -338,6 +340,16 @@ def message_to_agentscope_msg(
338
340
  A single Msg object or a list of Msg objects.
339
341
  """
340
342
 
343
+ def _try_loads(v, default, keep_original=False):
344
+ if isinstance(v, (dict, list)):
345
+ return v
346
+ if isinstance(v, str) and v.strip():
347
+ try:
348
+ return json.loads(v)
349
+ except Exception:
350
+ return v if keep_original else default
351
+ return default
352
+
341
353
  def _convert_one(message: Message) -> Msg:
342
354
  # Normalize role
343
355
  if message.role == "tool":
@@ -362,24 +374,49 @@ def message_to_agentscope_msg(
362
374
 
363
375
  if message.type in (
364
376
  MessageType.PLUGIN_CALL,
377
+ MessageType.MCP_TOOL_CALL,
365
378
  MessageType.FUNCTION_CALL,
366
379
  ):
367
- # convert PLUGIN_CALL, FUNCTION_CALL to ToolUseBlock
380
+ # convert CALL to ToolUseBlock
381
+ tool_args = None
382
+ for cnt in reversed(message.content):
383
+ if hasattr(cnt, "data"):
384
+ v = cnt.data.get("arguments")
385
+ if isinstance(v, (dict, list)) or (
386
+ isinstance(v, str) and v.strip()
387
+ ):
388
+ tool_args = _try_loads(v, {}, keep_original=False)
389
+ break
390
+ if tool_args is None:
391
+ tool_args = {}
368
392
  result["content"] = [
369
393
  ToolUseBlock(
370
394
  type="tool_use",
371
395
  id=message.content[0].data["call_id"],
372
396
  name=message.content[0].data.get("name"),
373
- input=json.loads(message.content[0].data["arguments"]),
397
+ input=tool_args,
374
398
  ),
375
399
  ]
376
400
  elif message.type in (
377
401
  MessageType.PLUGIN_CALL_OUTPUT,
402
+ MessageType.MCP_TOOL_CALL_OUTPUT,
378
403
  MessageType.FUNCTION_CALL_OUTPUT,
379
404
  ):
380
- # convert PLUGIN_CALL_OUTPUT, FUNCTION_CALL_OUTPUT to
381
- # ToolResultBlock
382
- blk = json.loads(message.content[0].data["output"])
405
+ # convert CALL_OUTPUT to ToolResultBlock
406
+ out = None
407
+ raw_output = ""
408
+ for cnt in reversed(message.content):
409
+ if hasattr(cnt, "data"):
410
+ v = cnt.data.get("output")
411
+ if isinstance(v, (dict, list)) or (
412
+ isinstance(v, str) and v.strip()
413
+ ):
414
+ raw_output = v
415
+ out = _try_loads(v, "", keep_original=True)
416
+ break
417
+ if out is None:
418
+ out = ""
419
+ blk = out
383
420
 
384
421
  def is_valid_block(obj):
385
422
  return any(
@@ -389,12 +426,32 @@ def message_to_agentscope_msg(
389
426
 
390
427
  if isinstance(blk, list):
391
428
  if not all(is_valid_block(item) for item in blk):
392
- blk = message.content[0].data["output"]
429
+ try:
430
+ # Try to convert MCP content list to blocks
431
+ call_tool_result = {
432
+ "content": blk,
433
+ "structuredContent": None,
434
+ "isError": False,
435
+ }
436
+ blk = MCPClientBase._convert_mcp_content_to_as_blocks(
437
+ CallToolResult.model_validate(
438
+ call_tool_result,
439
+ ).content,
440
+ )
441
+ except Exception:
442
+ blk = raw_output
393
443
  elif isinstance(blk, dict):
394
444
  if not is_valid_block(blk):
395
- blk = message.content[0].data["output"]
445
+ try:
446
+ # Try to convert to MCP CallToolResult then to blocks
447
+ blk = CallToolResult.model_validate(blk)
448
+ blk = MCPClientBase._convert_mcp_content_to_as_blocks(
449
+ blk.content,
450
+ )
451
+ except Exception:
452
+ blk = raw_output
396
453
  else:
397
- blk = message.content[0].data["output"]
454
+ blk = raw_output
398
455
 
399
456
  result["content"] = [
400
457
  ToolResultBlock(
@@ -416,6 +473,7 @@ def message_to_agentscope_msg(
416
473
  "text": (TextBlock, "text"),
417
474
  "image": (ImageBlock, "image_url"),
418
475
  "audio": (AudioBlock, "data"),
476
+ "data": (TextBlock, "data"),
419
477
  # "video": (VideoBlock, "video_url", True),
420
478
  # TODO: support video
421
479
  }
@@ -490,7 +548,17 @@ def message_to_agentscope_msg(
490
548
  block_cls(type=cnt_type, source=base64_source),
491
549
  )
492
550
  else:
493
- msg_content.append(block_cls(type=cnt_type, text=value))
551
+ # text & data
552
+ if isinstance(value, str):
553
+ msg_content.append(
554
+ TextBlock(type="text", text=value),
555
+ )
556
+ else:
557
+ try:
558
+ json_str = json.dumps(value, ensure_ascii=False)
559
+ except Exception:
560
+ json_str = str(value)
561
+ msg_content.append(TextBlock(text=json_str))
494
562
 
495
563
  result["content"] = msg_content
496
564
  _msg = Msg(**result)