agentscope-runtime 0.1.5b2__tar.gz → 0.1.6__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 (196) hide show
  1. {agentscope_runtime-0.1.5b2/src/agentscope_runtime.egg-info → agentscope_runtime-0.1.6}/PKG-INFO +168 -77
  2. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/README.md +148 -46
  3. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/pyproject.toml +24 -39
  4. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/agents/agentscope_agent.py +447 -0
  5. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/agents/agno_agent.py +19 -18
  6. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/agents/autogen_agent.py +13 -8
  7. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/agents/utils.py +53 -0
  8. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/deployers/__init__.py +3 -0
  9. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/deployers/local_deployer.py +586 -0
  10. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/helpers/helper.py +60 -41
  11. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/runner.py +11 -36
  12. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/schemas/agent_schemas.py +2 -70
  13. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/sandbox_service.py +62 -70
  14. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/services/tablestore_memory_service.py +304 -0
  15. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/services/tablestore_rag_service.py +143 -0
  16. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/services/tablestore_session_history_service.py +293 -0
  17. agentscope_runtime-0.1.6/src/agentscope_runtime/engine/services/utils/tablestore_service_utils.py +352 -0
  18. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/__init__.py +2 -0
  19. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/base/__init__.py +4 -0
  20. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/base/base_sandbox.py +4 -3
  21. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/browser/__init__.py +4 -0
  22. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/browser/browser_sandbox.py +8 -13
  23. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/dummy/__init__.py +4 -0
  24. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/filesystem/__init__.py +4 -0
  25. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/filesystem/filesystem_sandbox.py +8 -6
  26. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/gui/__init__.py +4 -0
  27. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/gui/gui_sandbox.py +80 -0
  28. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/sandbox.py +5 -2
  29. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/routers/generic.py +20 -1
  30. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/training_box/__init__.py +4 -0
  31. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/training_box.py +10 -15
  32. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/build.py +143 -58
  33. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/client/http_client.py +43 -49
  34. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/client/training_client.py +0 -1
  35. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/constant.py +28 -0
  36. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/custom/custom_sandbox.py +5 -5
  37. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/custom/example.py +2 -2
  38. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/enums.py +1 -0
  39. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/manager/collections/in_memory_mapping.py +27 -0
  40. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/manager/collections/redis_mapping.py +42 -0
  41. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/manager/container_clients/agentrun_client.py +1098 -0
  42. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/manager/container_clients/docker_client.py +250 -0
  43. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/container_clients/kubernetes_client.py +8 -555
  44. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/sandbox_manager.py +187 -88
  45. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/server/app.py +82 -14
  46. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/server/config.py +50 -3
  47. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/model/container.py +6 -23
  48. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/model/manager_config.py +93 -5
  49. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/tools/gui/__init__.py +7 -0
  50. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/tools/gui/tool.py +77 -0
  51. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/mcp_tool.py +6 -2
  52. agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/utils.py +124 -0
  53. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/version.py +1 -1
  54. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6/src/agentscope_runtime.egg-info}/PKG-INFO +168 -77
  55. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime.egg-info/SOURCES.txt +15 -34
  56. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime.egg-info/entry_points.txt +0 -1
  57. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime.egg-info/requires.txt +20 -32
  58. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/agents/agentscope_agent/__init__.py +0 -6
  59. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/agents/agentscope_agent/agent.py +0 -401
  60. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/agents/agentscope_agent/hooks.py +0 -169
  61. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/agents/llm_agent.py +0 -51
  62. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/__init__.py +0 -16
  63. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_adapter_utils.py +0 -2886
  64. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_agent_adapter.py +0 -51
  65. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_protocol_adapter.py +0 -314
  66. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/cli_fc_deploy.py +0 -184
  67. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/kubernetes_deployer.py +0 -265
  68. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/local_deployer.py +0 -441
  69. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/modelstudio_deployer.py +0 -677
  70. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/deployment_modes.py +0 -14
  71. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/__init__.py +0 -8
  72. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/docker_image_builder.py +0 -429
  73. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/dockerfile_generator.py +0 -240
  74. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/runner_image_factory.py +0 -297
  75. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/package_project_utils.py +0 -932
  76. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/service_utils/__init__.py +0 -9
  77. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/service_utils/fastapi_factory.py +0 -504
  78. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/service_utils/fastapi_templates.py +0 -157
  79. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/service_utils/process_manager.py +0 -268
  80. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/service_utils/service_config.py +0 -75
  81. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/service_utils/service_factory.py +0 -220
  82. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils/wheel_packager.py +0 -389
  83. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/helpers/agent_api_builder.py +0 -651
  84. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/llms/__init__.py +0 -3
  85. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/llms/base_llm.py +0 -60
  86. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/llms/qwen_llm.py +0 -47
  87. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/schemas/embedding.py +0 -37
  88. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/schemas/modelstudio_llm.py +0 -310
  89. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/schemas/oai_llm.py +0 -538
  90. agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/schemas/realtime.py +0 -254
  91. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/shared/__init__.py +0 -0
  92. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/training_box/__init__.py +0 -0
  93. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/training_box/environments/__init__.py +0 -0
  94. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/constant.py +0 -5
  95. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/manager/collections/in_memory_mapping.py +0 -22
  96. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/manager/collections/redis_mapping.py +0 -26
  97. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/manager/container_clients/__init__.py +0 -10
  98. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/manager/container_clients/docker_client.py +0 -422
  99. agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/manager/server/__init__.py +0 -0
  100. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/LICENSE +0 -0
  101. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/setup.cfg +0 -0
  102. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/setup.py +0 -0
  103. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/__init__.py +0 -0
  104. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/__init__.py +0 -0
  105. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/agents/__init__.py +0 -0
  106. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/agents/base_agent.py +0 -0
  107. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/agents/langgraph_agent.py +0 -0
  108. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/adapter/__init__.py +0 -0
  109. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/adapter/a2a/__init__.py +0 -0
  110. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_adapter_utils.py +0 -0
  111. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_agent_adapter.py +0 -0
  112. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_protocol_adapter.py +0 -0
  113. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/adapter/protocol_adapter.py +0 -0
  114. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/deployers/base.py +0 -0
  115. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/adapter/responses → agentscope_runtime-0.1.6/src/agentscope_runtime/engine/misc}/__init__.py +0 -0
  116. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/deployers/utils → agentscope_runtime-0.1.6/src/agentscope_runtime/engine/schemas}/__init__.py +0 -0
  117. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/schemas/context.py +0 -0
  118. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/__init__.py +0 -0
  119. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/base.py +0 -0
  120. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/context_manager.py +0 -0
  121. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/environment_manager.py +0 -0
  122. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/manager.py +0 -0
  123. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/mem0_memory_service.py +0 -0
  124. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/memory_service.py +0 -0
  125. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/rag_service.py +0 -0
  126. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/redis_memory_service.py +0 -0
  127. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/redis_session_history_service.py +0 -0
  128. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/reme_personal_memory_service.py +0 -0
  129. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/reme_task_memory_service.py +0 -0
  130. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/services/session_history_service.py +0 -0
  131. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/misc → agentscope_runtime-0.1.6/src/agentscope_runtime/engine/services/utils}/__init__.py +0 -0
  132. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/tracing/__init__.py +0 -0
  133. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/tracing/base.py +0 -0
  134. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/tracing/local_logging_handler.py +0 -0
  135. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/tracing/tracing_metric.py +0 -0
  136. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/engine/tracing/wrapper.py +0 -0
  137. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/engine/schemas → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box}/__init__.py +0 -0
  138. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/base}/box/__init__.py +0 -0
  139. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/base → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/browser/box}/__init__.py +0 -0
  140. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/dummy/dummy_sandbox.py +0 -0
  141. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/base → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/filesystem}/box/__init__.py +0 -0
  142. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/browser → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/gui/box}/__init__.py +0 -0
  143. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/browser/box → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/shared}/__init__.py +0 -0
  144. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/app.py +0 -0
  145. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/dependencies/__init__.py +0 -0
  146. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/dependencies/deps.py +0 -0
  147. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/routers/__init__.py +0 -0
  148. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/routers/mcp.py +0 -0
  149. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/routers/mcp_utils.py +0 -0
  150. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/routers/runtime_watcher.py +0 -0
  151. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/shared/routers/workspace.py +0 -0
  152. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/base.py +0 -0
  153. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/env_service.py +0 -0
  154. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/dummy → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/box/training_box/environments}/__init__.py +0 -0
  155. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/environments/appworld/appworld_env.py +0 -0
  156. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_dataprocess.py +0 -0
  157. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_env.py +0 -0
  158. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/env_handler.py +0 -0
  159. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/registry.py +0 -0
  160. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/box/training_box/src/trajectory.py +0 -0
  161. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/client/__init__.py +0 -0
  162. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/custom/__init__.py +0 -0
  163. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/__init__.py +0 -0
  164. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/__init__.py +0 -0
  165. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/base_mapping.py +0 -0
  166. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/base_queue.py +0 -0
  167. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/base_set.py +0 -0
  168. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/in_memory_queue.py +0 -0
  169. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/in_memory_set.py +0 -0
  170. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/redis_queue.py +0 -0
  171. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/collections/redis_set.py +0 -0
  172. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/filesystem → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/manager/container_clients}/__init__.py +0 -0
  173. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/container_clients/base_client.py +0 -0
  174. {agentscope_runtime-0.1.5b2/src/agentscope_runtime/sandbox/box/filesystem/box → agentscope_runtime-0.1.6/src/agentscope_runtime/sandbox/manager/server}/__init__.py +0 -0
  175. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/server/models.py +0 -0
  176. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/storage/__init__.py +0 -0
  177. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/storage/data_storage.py +0 -0
  178. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/storage/local_storage.py +0 -0
  179. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py +0 -0
  180. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/mcp_server.py +0 -0
  181. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/model/__init__.py +0 -0
  182. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/model/api.py +0 -0
  183. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/registry.py +0 -0
  184. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/__init__.py +0 -0
  185. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/base/__init__.py +0 -0
  186. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/base/tool.py +0 -0
  187. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/browser/__init__.py +0 -0
  188. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/browser/tool.py +0 -0
  189. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/filesystem/__init__.py +0 -0
  190. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/filesystem/tool.py +0 -0
  191. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/function_tool.py +0 -0
  192. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/sandbox_tool.py +0 -0
  193. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/tool.py +0 -0
  194. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime/sandbox/tools/utils.py +0 -0
  195. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/src/agentscope_runtime.egg-info/dependency_links.txt +0 -0
  196. {agentscope_runtime-0.1.5b2 → agentscope_runtime-0.1.6}/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: 0.1.5b2
3
+ Version: 0.1.6
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
@@ -8,9 +8,17 @@ License-File: LICENSE
8
8
  Requires-Dist: mcp>=1.13
9
9
  Requires-Dist: fastapi>=0.104.0
10
10
  Requires-Dist: uvicorn[standard]>=0.24.0
11
- Requires-Dist: openai>=1.108.1
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
15
+ Requires-Dist: docker>=7.1.0
16
+ Requires-Dist: redis>=6.0.0
17
+ Requires-Dist: oss2>=2.19.1
18
+ Requires-Dist: pydantic-settings>=2.9.1
19
+ Requires-Dist: python-dotenv>=1.0.1
20
+ Requires-Dist: kubernetes>=33.1.0
21
+ Requires-Dist: shortuuid>=1.0.13
14
22
  Provides-Extra: dev
15
23
  Requires-Dist: pytest>=8.3.5; extra == "dev"
16
24
  Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
@@ -20,17 +28,6 @@ Requires-Dist: furo>=2025.7.19; extra == "dev"
20
28
  Requires-Dist: pytest-cov>=6.2.1; extra == "dev"
21
29
  Requires-Dist: fakeredis>=2.31.0; extra == "dev"
22
30
  Requires-Dist: sphinx-autoapi>=3.6.0; extra == "dev"
23
- Provides-Extra: sandbox
24
- Requires-Dist: docker>=7.1.0; extra == "sandbox"
25
- Requires-Dist: steel-sdk>=0.1.0; extra == "sandbox"
26
- Requires-Dist: redis>=6.0.0b2; extra == "sandbox"
27
- Requires-Dist: oss2>=2.19.1; extra == "sandbox"
28
- Requires-Dist: pydantic-settings>=2.9.1; extra == "sandbox"
29
- Requires-Dist: dotenv>=0.9.9; extra == "sandbox"
30
- Requires-Dist: kubernetes>=33.1.0; extra == "sandbox"
31
- Requires-Dist: shortuuid>=1.0.13; extra == "sandbox"
32
- Provides-Extra: agentscope
33
- Requires-Dist: agentscope>=1.0.1; extra == "agentscope"
34
31
  Provides-Extra: langgraph
35
32
  Requires-Dist: langgraph>=0.5.3; extra == "langgraph"
36
33
  Provides-Extra: agno
@@ -40,38 +37,30 @@ Requires-Dist: a2a-sdk>=0.3.0; extra == "a2a"
40
37
  Provides-Extra: autogen
41
38
  Requires-Dist: autogen-agentchat>=0.7.4; extra == "autogen"
42
39
  Requires-Dist: autogen-ext[openai]>=0.7.4; extra == "autogen"
40
+ Provides-Extra: agentrun
41
+ Requires-Dist: alibabacloud-agentrun20250910>=1.0.0; extra == "agentrun"
42
+ Requires-Dist: alibabacloud_tea_openapi>=0.4.0; extra == "agentrun"
43
43
  Provides-Extra: langchain-rag
44
44
  Requires-Dist: langchain>=0.3.25; extra == "langchain-rag"
45
- Requires-Dist: pymilvus>=2.6.0; extra == "langchain-rag"
45
+ Requires-Dist: pymilvus[milvus-lite]>=2.6.0; extra == "langchain-rag"
46
46
  Requires-Dist: langchain-community>=0.3.27; extra == "langchain-rag"
47
47
  Requires-Dist: langchain-milvus>=0.2.1; extra == "langchain-rag"
48
48
  Requires-Dist: bs4>=0.0.2; extra == "langchain-rag"
49
49
  Provides-Extra: llamaindex-rag
50
50
  Requires-Dist: llama-index>=0.13.4; extra == "llamaindex-rag"
51
- Requires-Dist: pymilvus>=2.6.0; extra == "llamaindex-rag"
51
+ Requires-Dist: pymilvus[milvus-lite]>=2.6.0; extra == "llamaindex-rag"
52
52
  Requires-Dist: llama-index-vector-stores-milvus>=0.9.1; extra == "llamaindex-rag"
53
53
  Requires-Dist: llama-index-readers-web>=0.5.1; extra == "llamaindex-rag"
54
54
  Requires-Dist: llama-index-embeddings-langchain>=0.4.0; extra == "llamaindex-rag"
55
- Requires-Dist: langchain-community>=0.3.27; extra == "llamaindex-rag"
55
+ Requires-Dist: llama-index-embeddings-dashscope>=0.4.0; extra == "llamaindex-rag"
56
56
  Requires-Dist: bs4>=0.0.2; extra == "llamaindex-rag"
57
+ Provides-Extra: aliyun-tablestore-ext
58
+ Requires-Dist: tablestore-for-agent-memory>=1.1.0; extra == "aliyun-tablestore-ext"
59
+ Requires-Dist: dashscope>=1.24.4; extra == "aliyun-tablestore-ext"
60
+ Requires-Dist: langchain-community>=0.3.27; extra == "aliyun-tablestore-ext"
57
61
  Provides-Extra: memory-ext
58
62
  Requires-Dist: reme-ai==0.1.9; python_full_version >= "3.12" and extra == "memory-ext"
59
63
  Requires-Dist: mem0ai>=0.1.117; extra == "memory-ext"
60
- Provides-Extra: deployment
61
- Requires-Dist: alibabacloud-oss-v2; extra == "deployment"
62
- Requires-Dist: alibabacloud-bailian20231229>=2.5.0; extra == "deployment"
63
- Requires-Dist: build; extra == "deployment"
64
- Requires-Dist: setuptools>=40.8.0; extra == "deployment"
65
- Requires-Dist: wheel; extra == "deployment"
66
- Requires-Dist: steel-sdk>=0.1.0; extra == "deployment"
67
- Requires-Dist: alibabacloud-credentials; extra == "deployment"
68
- Requires-Dist: jinja2; extra == "deployment"
69
- Requires-Dist: psutil; extra == "deployment"
70
- Requires-Dist: shortuuid>=1.0.13; extra == "deployment"
71
- Requires-Dist: docker>=7.1.0; extra == "deployment"
72
- Requires-Dist: kubernetes>=33.1.0; extra == "deployment"
73
- Requires-Dist: PyYAML; extra == "deployment"
74
- Requires-Dist: oss2>=2.19.1; extra == "deployment"
75
64
  Dynamic: license-file
76
65
 
77
66
  <div align="center">
@@ -79,8 +68,9 @@ Dynamic: license-file
79
68
  # AgentScope Runtime
80
69
 
81
70
  [![PyPI](https://img.shields.io/pypi/v/agentscope-runtime?label=PyPI&color=brightgreen&logo=python)](https://pypi.org/project/agentscope-runtime/)
71
+ [![Downloads](https://static.pepy.tech/badge/agentscope-runtime)](https://pepy.tech/project/agentscope-runtime)
82
72
  [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg?logo=python&label=Python)](https://python.org)
83
- [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache&label=Liscnese)](LICENSE)
73
+ [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache&label=License)](LICENSE)
84
74
  [![Code Style](https://img.shields.io/badge/code%20style-black-black.svg?logo=python&label=CodeStyle)](https://github.com/psf/black)
85
75
  [![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)
86
76
  [![GitHub Forks](https://img.shields.io/github/forks/agentscope-ai/agentscope-runtime?style=flat&logo=github&color=purple&label=Forks)](https://github.com/agentscope-ai/agentscope-runtime/network)
@@ -94,6 +84,7 @@ Dynamic: license-file
94
84
 
95
85
  [[Cookbook]](https://runtime.agentscope.io/)
96
86
  [[中文README]](README_zh.md)
87
+ [[Samples]](https://github.com/agentscope-ai/agentscope-samples)
97
88
 
98
89
  **A Production-Ready Runtime Framework for Intelligent Agent Applications**
99
90
 
@@ -103,6 +94,12 @@ Dynamic: license-file
103
94
 
104
95
  ---
105
96
 
97
+ ## 🆕 NEWS
98
+
99
+ * **[2025-10]** **GUI Sandbox** is added with support for virtual desktop environments, mouse, keyboard, and screen operations. Introduced the **`desktop_url`** property for GUI Sandbox, Browser Sandbox, and Filesystem Sandbox — allowing direct access to the virtual desktop via your browser. Check our [cookbook](https://runtime.agentscope.io/en/sandbox.html#sandbox-usage) for more details.
100
+
101
+ ---
102
+
106
103
  ## ✨ Key Features
107
104
 
108
105
  - **🏗️ Deployment Infrastructure**: Built-in services for session management, memory, and sandbox environment control
@@ -150,9 +147,6 @@ From PyPI:
150
147
  ```bash
151
148
  # Install core dependencies
152
149
  pip install agentscope-runtime
153
-
154
- # Install sandbox dependencies
155
- pip install "agentscope-runtime[sandbox]"
156
150
  ```
157
151
 
158
152
  (Optional) From source:
@@ -164,35 +158,41 @@ cd agentscope-runtime
164
158
 
165
159
  # Install core dependencies
166
160
  pip install -e .
167
-
168
- # Install sandbox dependencies
169
- pip install -e ".[sandbox]"
170
161
  ```
171
162
 
172
163
  ### Basic Agent Usage Example
173
164
 
174
- This example demonstrates how to create a simple LLM agent using AgentScope Runtime and stream responses from the Qwen model.
165
+ This example demonstrates how to create an agentscope agent using AgentScope Runtime and
166
+ stream responses from the Qwen model.
167
+
175
168
 
176
169
  ```python
177
170
  import asyncio
178
171
  import os
172
+
179
173
  from agentscope_runtime.engine import Runner
180
- from agentscope_runtime.engine.agents.llm_agent import LLMAgent
181
- from agentscope_runtime.engine.llms import QwenLLM
174
+ from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
182
175
  from agentscope_runtime.engine.schemas.agent_schemas import AgentRequest
183
176
  from agentscope_runtime.engine.services.context_manager import ContextManager
184
177
 
178
+ from agentscope.agent import ReActAgent
179
+ from agentscope.model import OpenAIChatModel
185
180
 
186
181
  async def main():
187
182
  # Set up the language model and agent
188
- model = QwenLLM(
189
- model_name="qwen-turbo",
190
- api_key=os.getenv("DASHSCOPE_API_KEY"),
183
+ agent = AgentScopeAgent(
184
+ name="Friday",
185
+ model=OpenAIChatModel(
186
+ "gpt-4",
187
+ api_key=os.getenv("OPENAI_API_KEY"),
188
+ ),
189
+ agent_config={
190
+ "sys_prompt": "You're a helpful assistant named Friday.",
191
+ },
192
+ agent_builder=ReActAgent,
191
193
  )
192
- llm_agent = LLMAgent(model=model, name="llm_agent")
193
-
194
194
  async with ContextManager() as context_manager:
195
- runner = Runner(agent=llm_agent, context_manager=context_manager)
195
+ runner = Runner(agent=agent, context_manager=context_manager)
196
196
 
197
197
  # Create a request and stream the response
198
198
  request = AgentRequest(
@@ -219,19 +219,128 @@ asyncio.run(main())
219
219
 
220
220
  ### Basic Sandbox Usage Example
221
221
 
222
- This example demonstrates how to create sandboxed and execute tool within the sandbox.
222
+ These examples demonstrate how to create sandboxed environments and execute tools within them, with some examples featuring interactive frontend interfaces accessible via VNC (Virtual Network Computing):
223
+
224
+ > [!NOTE]
225
+ >
226
+ > Current version requires Docker or Kubernetes to be installed and running on your system. Please refer to [this tutorial](https://runtime.agentscope.io/en/sandbox.html) for more details.
227
+ >
228
+ > If you plan to use the sandbox on a large scale in production, we recommend deploying it directly in Alibaba Cloud for managed hosting: [One-click deploy sandbox on Alibaba Cloud](https://computenest.console.aliyun.com/service/instance/create/default?ServiceName=AgentScope%20Runtime%20%E6%B2%99%E7%AE%B1%E7%8E%AF%E5%A2%83)
229
+
230
+ #### Base Sandbox
231
+
232
+ Use for running **Python code** or **shell commands** in an isolated environment.
223
233
 
224
234
  ```python
225
235
  from agentscope_runtime.sandbox import BaseSandbox
226
236
 
227
237
  with BaseSandbox() as box:
228
- print(box.run_ipython_cell(code="print('hi')"))
229
- print(box.run_shell_command(command="echo hello"))
238
+ # By default, pulls `agentscope/runtime-sandbox-base:latest` from DockerHub
239
+ print(box.list_tools()) # List all available tools
240
+ print(box.run_ipython_cell(code="print('hi')")) # Run Python code
241
+ print(box.run_shell_command(command="echo hello")) # Run shell command
242
+ input("Press Enter to continue...")
230
243
  ```
231
244
 
232
- > [!NOTE]
233
- >
234
- > Current version requires Docker or Kubernetes to be installed and running on your system. Please refer to [this tutorial](https://runtime.agentscope.io/en/sandbox.html) for more details.
245
+ #### GUI Sandbox
246
+
247
+ Provides a **virtual desktop** environment for mouse, keyboard, and screen operations.
248
+
249
+ <img src="https://img.alicdn.com/imgextra/i2/O1CN01df5SaM1xKFQP4KGBW_!!6000000006424-2-tps-2958-1802.png" alt="GUI Sandbox" width="800" height="500">
250
+
251
+ ```python
252
+ from agentscope_runtime.sandbox import GuiSandbox
253
+
254
+ with GuiSandbox() as box:
255
+ # By default, pulls `agentscope/runtime-sandbox-gui:latest` from DockerHub
256
+ print(box.list_tools()) # List all available tools
257
+ print(box.desktop_url) # Web desktop access URL
258
+ print(box.computer_use(action="get_cursor_position")) # Get mouse cursor position
259
+ print(box.computer_use(action="get_screenshot")) # Capture screenshot
260
+ input("Press Enter to continue...")
261
+ ```
262
+
263
+ #### Browser Sandbox
264
+
265
+ A GUI-based sandbox with **browser operations** inside an isolated sandbox.
266
+
267
+ <img src="https://img.alicdn.com/imgextra/i4/O1CN01OIq1dD1gAJMcm0RFR_!!6000000004101-2-tps-2734-1684.png" alt="GUI Sandbox" width="800" height="500">
268
+
269
+ ```python
270
+ from agentscope_runtime.sandbox import BrowserSandbox
271
+
272
+ with BrowserSandbox() as box:
273
+ # By default, pulls `agentscope/runtime-sandbox-browser:latest` from DockerHub
274
+ print(box.list_tools()) # List all available tools
275
+ print(box.desktop_url) # Web desktop access URL
276
+ box.browser_navigate("https://www.google.com/") # Open a webpage
277
+ input("Press Enter to continue...")
278
+ ```
279
+
280
+ #### Filesystem Sandbox
281
+
282
+ A GUI-based sandbox with **file system operations** such as creating, reading, and deleting files.
283
+
284
+ <img src="https://img.alicdn.com/imgextra/i3/O1CN01VocM961vK85gWbJIy_!!6000000006153-2-tps-2730-1686.png" alt="GUI Sandbox" width="800" height="500">
285
+
286
+ ```python
287
+ from agentscope_runtime.sandbox import FilesystemSandbox
288
+
289
+ with FilesystemSandbox() as box:
290
+ # By default, pulls `agentscope/runtime-sandbox-filesystem:latest` from DockerHub
291
+ print(box.list_tools()) # List all available tools
292
+ print(box.desktop_url) # Web desktop access URL
293
+ box.create_directory("test") # Create a directory
294
+ input("Press Enter to continue...")
295
+ ```
296
+
297
+ #### Configuring Sandbox Image Registry, Namespace, and Tag
298
+
299
+ ##### 1. Registry
300
+
301
+ If pulling images from DockerHub fails (for example, due to network restrictions), you can switch the image source to Alibaba Cloud Container Registry for faster access:
302
+
303
+ ```bash
304
+ export RUNTIME_SANDBOX_REGISTRY="agentscope-registry.ap-southeast-1.cr.aliyuncs.com"
305
+ ```
306
+
307
+ ##### 2. Namespace
308
+
309
+ A namespace is used to distinguish images of different teams or projects. You can customize the namespace via an environment variable:
310
+
311
+ ```bash
312
+ export RUNTIME_SANDBOX_IMAGE_NAMESPACE="agentscope"
313
+ ```
314
+
315
+ For example, here `agentscope` will be used as part of the image path.
316
+
317
+ ##### 3. Tag
318
+
319
+ An image tag specifies the version of the image, for example:
320
+
321
+ ```bash
322
+ export RUNTIME_SANDBOX_IMAGE_TAG="preview"
323
+ ```
324
+
325
+ Details:
326
+
327
+ - Default is `latest`, which means the image version matches the PyPI latest release.
328
+ - `preview` means the latest preview version built in sync with the **GitHub main branch**.
329
+ - You can also use a specified version number such as `20250909`. You can check all available image versions at [DockerHub](https://hub.docker.com/repositories/agentscope).
330
+
331
+ ##### 4. Complete Image Path
332
+
333
+ The sandbox SDK will build the full image path based on the above environment variables:
334
+
335
+ ```bash
336
+ <RUNTIME_SANDBOX_REGISTRY>/<RUNTIME_SANDBOX_IMAGE_NAMESPACE>/runtime-sandbox-base:<RUNTIME_SANDBOX_IMAGE_TAG>
337
+ ```
338
+
339
+ Example:
340
+
341
+ ```bash
342
+ agentscope-registry.ap-southeast-1.cr.aliyuncs.com/agentscope/runtime-sandbox-base:preview
343
+ ```
235
344
 
236
345
  ---
237
346
 
@@ -247,29 +356,6 @@ with BaseSandbox() as box:
247
356
 
248
357
  ## 🔌 Agent Framework Integration
249
358
 
250
- ### AgentScope Integration
251
-
252
- ```python
253
- # pip install "agentscope-runtime[agentscope]"
254
- import os
255
-
256
- from agentscope.agent import ReActAgent
257
- from agentscope.model import OpenAIChatModel
258
- from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
259
-
260
- agent = AgentScopeAgent(
261
- name="Friday",
262
- model=OpenAIChatModel(
263
- "gpt-4",
264
- api_key=os.getenv("OPENAI_API_KEY"),
265
- ),
266
- agent_config={
267
- "sys_prompt": "You're a helpful assistant named {name}.",
268
- },
269
- agent_builder=ReActAgent,
270
- )
271
- ```
272
-
273
359
  ### Agno Integration
274
360
 
275
361
  ```python
@@ -421,7 +507,7 @@ limitations under the License.
421
507
 
422
508
  ## Contributors ✨
423
509
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
424
- [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
510
+ [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-)
425
511
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
426
512
 
427
513
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
@@ -443,6 +529,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
443
529
  <tr>
444
530
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/Osier-Yi"><img src="https://avatars.githubusercontent.com/u/8287381?v=4?s=100" width="100px;" alt="Osier-Yi"/><br /><sub><b>Osier-Yi</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Osier-Yi" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Osier-Yi" title="Documentation">📖</a></td>
445
531
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/kevinlin09"><img src="https://avatars.githubusercontent.com/u/26913335?v=4?s=100" width="100px;" alt="Kevin Lin"/><br /><sub><b>Kevin Lin</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=kevinlin09" title="Code">💻</a></td>
532
+ <td align="center" valign="top" width="14.28%"><a href="https://davdgao.github.io/"><img src="https://avatars.githubusercontent.com/u/102287034?v=4?s=100" width="100px;" alt="DavdGao"/><br /><sub><b>DavdGao</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/pulls?q=is%3Apr+reviewed-by%3ADavdGao" title="Reviewed Pull Requests">👀</a></td>
533
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/FLyLeaf-coder"><img src="https://avatars.githubusercontent.com/u/122603493?v=4?s=100" width="100px;" alt="FlyLeaf"/><br /><sub><b>FlyLeaf</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=FLyLeaf-coder" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=FLyLeaf-coder" title="Documentation">📖</a></td>
534
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/jinghuan-Chen"><img src="https://avatars.githubusercontent.com/u/42742857?v=4?s=100" width="100px;" alt="jinghuan-Chen"/><br /><sub><b>jinghuan-Chen</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jinghuan-Chen" title="Code">💻</a></td>
535
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/Sodawyx"><img src="https://avatars.githubusercontent.com/u/34974468?v=4?s=100" width="100px;" alt="Yuxuan Wu"/><br /><sub><b>Yuxuan Wu</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Sodawyx" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Sodawyx" title="Documentation">📖</a></td>
536
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/TianYu92"><img src="https://avatars.githubusercontent.com/u/12960468?v=4?s=100" width="100px;" alt="Fear1es5"/><br /><sub><b>Fear1es5</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3ATianYu92" title="Bug reports">🐛</a></td>
446
537
  </tr>
447
538
  </tbody>
448
539
  <tfoot>
@@ -3,8 +3,9 @@
3
3
  # AgentScope Runtime
4
4
 
5
5
  [![PyPI](https://img.shields.io/pypi/v/agentscope-runtime?label=PyPI&color=brightgreen&logo=python)](https://pypi.org/project/agentscope-runtime/)
6
+ [![Downloads](https://static.pepy.tech/badge/agentscope-runtime)](https://pepy.tech/project/agentscope-runtime)
6
7
  [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg?logo=python&label=Python)](https://python.org)
7
- [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache&label=Liscnese)](LICENSE)
8
+ [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache&label=License)](LICENSE)
8
9
  [![Code Style](https://img.shields.io/badge/code%20style-black-black.svg?logo=python&label=CodeStyle)](https://github.com/psf/black)
9
10
  [![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)
10
11
  [![GitHub Forks](https://img.shields.io/github/forks/agentscope-ai/agentscope-runtime?style=flat&logo=github&color=purple&label=Forks)](https://github.com/agentscope-ai/agentscope-runtime/network)
@@ -18,6 +19,7 @@
18
19
 
19
20
  [[Cookbook]](https://runtime.agentscope.io/)
20
21
  [[中文README]](README_zh.md)
22
+ [[Samples]](https://github.com/agentscope-ai/agentscope-samples)
21
23
 
22
24
  **A Production-Ready Runtime Framework for Intelligent Agent Applications**
23
25
 
@@ -27,6 +29,12 @@
27
29
 
28
30
  ---
29
31
 
32
+ ## 🆕 NEWS
33
+
34
+ * **[2025-10]** **GUI Sandbox** is added with support for virtual desktop environments, mouse, keyboard, and screen operations. Introduced the **`desktop_url`** property for GUI Sandbox, Browser Sandbox, and Filesystem Sandbox — allowing direct access to the virtual desktop via your browser. Check our [cookbook](https://runtime.agentscope.io/en/sandbox.html#sandbox-usage) for more details.
35
+
36
+ ---
37
+
30
38
  ## ✨ Key Features
31
39
 
32
40
  - **🏗️ Deployment Infrastructure**: Built-in services for session management, memory, and sandbox environment control
@@ -74,9 +82,6 @@ From PyPI:
74
82
  ```bash
75
83
  # Install core dependencies
76
84
  pip install agentscope-runtime
77
-
78
- # Install sandbox dependencies
79
- pip install "agentscope-runtime[sandbox]"
80
85
  ```
81
86
 
82
87
  (Optional) From source:
@@ -88,35 +93,41 @@ cd agentscope-runtime
88
93
 
89
94
  # Install core dependencies
90
95
  pip install -e .
91
-
92
- # Install sandbox dependencies
93
- pip install -e ".[sandbox]"
94
96
  ```
95
97
 
96
98
  ### Basic Agent Usage Example
97
99
 
98
- This example demonstrates how to create a simple LLM agent using AgentScope Runtime and stream responses from the Qwen model.
100
+ This example demonstrates how to create an agentscope agent using AgentScope Runtime and
101
+ stream responses from the Qwen model.
102
+
99
103
 
100
104
  ```python
101
105
  import asyncio
102
106
  import os
107
+
103
108
  from agentscope_runtime.engine import Runner
104
- from agentscope_runtime.engine.agents.llm_agent import LLMAgent
105
- from agentscope_runtime.engine.llms import QwenLLM
109
+ from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
106
110
  from agentscope_runtime.engine.schemas.agent_schemas import AgentRequest
107
111
  from agentscope_runtime.engine.services.context_manager import ContextManager
108
112
 
113
+ from agentscope.agent import ReActAgent
114
+ from agentscope.model import OpenAIChatModel
109
115
 
110
116
  async def main():
111
117
  # Set up the language model and agent
112
- model = QwenLLM(
113
- model_name="qwen-turbo",
114
- api_key=os.getenv("DASHSCOPE_API_KEY"),
118
+ agent = AgentScopeAgent(
119
+ name="Friday",
120
+ model=OpenAIChatModel(
121
+ "gpt-4",
122
+ api_key=os.getenv("OPENAI_API_KEY"),
123
+ ),
124
+ agent_config={
125
+ "sys_prompt": "You're a helpful assistant named Friday.",
126
+ },
127
+ agent_builder=ReActAgent,
115
128
  )
116
- llm_agent = LLMAgent(model=model, name="llm_agent")
117
-
118
129
  async with ContextManager() as context_manager:
119
- runner = Runner(agent=llm_agent, context_manager=context_manager)
130
+ runner = Runner(agent=agent, context_manager=context_manager)
120
131
 
121
132
  # Create a request and stream the response
122
133
  request = AgentRequest(
@@ -143,19 +154,128 @@ asyncio.run(main())
143
154
 
144
155
  ### Basic Sandbox Usage Example
145
156
 
146
- This example demonstrates how to create sandboxed and execute tool within the sandbox.
157
+ These examples demonstrate how to create sandboxed environments and execute tools within them, with some examples featuring interactive frontend interfaces accessible via VNC (Virtual Network Computing):
158
+
159
+ > [!NOTE]
160
+ >
161
+ > Current version requires Docker or Kubernetes to be installed and running on your system. Please refer to [this tutorial](https://runtime.agentscope.io/en/sandbox.html) for more details.
162
+ >
163
+ > If you plan to use the sandbox on a large scale in production, we recommend deploying it directly in Alibaba Cloud for managed hosting: [One-click deploy sandbox on Alibaba Cloud](https://computenest.console.aliyun.com/service/instance/create/default?ServiceName=AgentScope%20Runtime%20%E6%B2%99%E7%AE%B1%E7%8E%AF%E5%A2%83)
164
+
165
+ #### Base Sandbox
166
+
167
+ Use for running **Python code** or **shell commands** in an isolated environment.
147
168
 
148
169
  ```python
149
170
  from agentscope_runtime.sandbox import BaseSandbox
150
171
 
151
172
  with BaseSandbox() as box:
152
- print(box.run_ipython_cell(code="print('hi')"))
153
- print(box.run_shell_command(command="echo hello"))
173
+ # By default, pulls `agentscope/runtime-sandbox-base:latest` from DockerHub
174
+ print(box.list_tools()) # List all available tools
175
+ print(box.run_ipython_cell(code="print('hi')")) # Run Python code
176
+ print(box.run_shell_command(command="echo hello")) # Run shell command
177
+ input("Press Enter to continue...")
154
178
  ```
155
179
 
156
- > [!NOTE]
157
- >
158
- > Current version requires Docker or Kubernetes to be installed and running on your system. Please refer to [this tutorial](https://runtime.agentscope.io/en/sandbox.html) for more details.
180
+ #### GUI Sandbox
181
+
182
+ Provides a **virtual desktop** environment for mouse, keyboard, and screen operations.
183
+
184
+ <img src="https://img.alicdn.com/imgextra/i2/O1CN01df5SaM1xKFQP4KGBW_!!6000000006424-2-tps-2958-1802.png" alt="GUI Sandbox" width="800" height="500">
185
+
186
+ ```python
187
+ from agentscope_runtime.sandbox import GuiSandbox
188
+
189
+ with GuiSandbox() as box:
190
+ # By default, pulls `agentscope/runtime-sandbox-gui:latest` from DockerHub
191
+ print(box.list_tools()) # List all available tools
192
+ print(box.desktop_url) # Web desktop access URL
193
+ print(box.computer_use(action="get_cursor_position")) # Get mouse cursor position
194
+ print(box.computer_use(action="get_screenshot")) # Capture screenshot
195
+ input("Press Enter to continue...")
196
+ ```
197
+
198
+ #### Browser Sandbox
199
+
200
+ A GUI-based sandbox with **browser operations** inside an isolated sandbox.
201
+
202
+ <img src="https://img.alicdn.com/imgextra/i4/O1CN01OIq1dD1gAJMcm0RFR_!!6000000004101-2-tps-2734-1684.png" alt="GUI Sandbox" width="800" height="500">
203
+
204
+ ```python
205
+ from agentscope_runtime.sandbox import BrowserSandbox
206
+
207
+ with BrowserSandbox() as box:
208
+ # By default, pulls `agentscope/runtime-sandbox-browser:latest` from DockerHub
209
+ print(box.list_tools()) # List all available tools
210
+ print(box.desktop_url) # Web desktop access URL
211
+ box.browser_navigate("https://www.google.com/") # Open a webpage
212
+ input("Press Enter to continue...")
213
+ ```
214
+
215
+ #### Filesystem Sandbox
216
+
217
+ A GUI-based sandbox with **file system operations** such as creating, reading, and deleting files.
218
+
219
+ <img src="https://img.alicdn.com/imgextra/i3/O1CN01VocM961vK85gWbJIy_!!6000000006153-2-tps-2730-1686.png" alt="GUI Sandbox" width="800" height="500">
220
+
221
+ ```python
222
+ from agentscope_runtime.sandbox import FilesystemSandbox
223
+
224
+ with FilesystemSandbox() as box:
225
+ # By default, pulls `agentscope/runtime-sandbox-filesystem:latest` from DockerHub
226
+ print(box.list_tools()) # List all available tools
227
+ print(box.desktop_url) # Web desktop access URL
228
+ box.create_directory("test") # Create a directory
229
+ input("Press Enter to continue...")
230
+ ```
231
+
232
+ #### Configuring Sandbox Image Registry, Namespace, and Tag
233
+
234
+ ##### 1. Registry
235
+
236
+ If pulling images from DockerHub fails (for example, due to network restrictions), you can switch the image source to Alibaba Cloud Container Registry for faster access:
237
+
238
+ ```bash
239
+ export RUNTIME_SANDBOX_REGISTRY="agentscope-registry.ap-southeast-1.cr.aliyuncs.com"
240
+ ```
241
+
242
+ ##### 2. Namespace
243
+
244
+ A namespace is used to distinguish images of different teams or projects. You can customize the namespace via an environment variable:
245
+
246
+ ```bash
247
+ export RUNTIME_SANDBOX_IMAGE_NAMESPACE="agentscope"
248
+ ```
249
+
250
+ For example, here `agentscope` will be used as part of the image path.
251
+
252
+ ##### 3. Tag
253
+
254
+ An image tag specifies the version of the image, for example:
255
+
256
+ ```bash
257
+ export RUNTIME_SANDBOX_IMAGE_TAG="preview"
258
+ ```
259
+
260
+ Details:
261
+
262
+ - Default is `latest`, which means the image version matches the PyPI latest release.
263
+ - `preview` means the latest preview version built in sync with the **GitHub main branch**.
264
+ - You can also use a specified version number such as `20250909`. You can check all available image versions at [DockerHub](https://hub.docker.com/repositories/agentscope).
265
+
266
+ ##### 4. Complete Image Path
267
+
268
+ The sandbox SDK will build the full image path based on the above environment variables:
269
+
270
+ ```bash
271
+ <RUNTIME_SANDBOX_REGISTRY>/<RUNTIME_SANDBOX_IMAGE_NAMESPACE>/runtime-sandbox-base:<RUNTIME_SANDBOX_IMAGE_TAG>
272
+ ```
273
+
274
+ Example:
275
+
276
+ ```bash
277
+ agentscope-registry.ap-southeast-1.cr.aliyuncs.com/agentscope/runtime-sandbox-base:preview
278
+ ```
159
279
 
160
280
  ---
161
281
 
@@ -171,29 +291,6 @@ with BaseSandbox() as box:
171
291
 
172
292
  ## 🔌 Agent Framework Integration
173
293
 
174
- ### AgentScope Integration
175
-
176
- ```python
177
- # pip install "agentscope-runtime[agentscope]"
178
- import os
179
-
180
- from agentscope.agent import ReActAgent
181
- from agentscope.model import OpenAIChatModel
182
- from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
183
-
184
- agent = AgentScopeAgent(
185
- name="Friday",
186
- model=OpenAIChatModel(
187
- "gpt-4",
188
- api_key=os.getenv("OPENAI_API_KEY"),
189
- ),
190
- agent_config={
191
- "sys_prompt": "You're a helpful assistant named {name}.",
192
- },
193
- agent_builder=ReActAgent,
194
- )
195
- ```
196
-
197
294
  ### Agno Integration
198
295
 
199
296
  ```python
@@ -345,7 +442,7 @@ limitations under the License.
345
442
 
346
443
  ## Contributors ✨
347
444
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
348
- [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
445
+ [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-)
349
446
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
350
447
 
351
448
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
@@ -367,6 +464,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
367
464
  <tr>
368
465
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/Osier-Yi"><img src="https://avatars.githubusercontent.com/u/8287381?v=4?s=100" width="100px;" alt="Osier-Yi"/><br /><sub><b>Osier-Yi</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Osier-Yi" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Osier-Yi" title="Documentation">📖</a></td>
369
466
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/kevinlin09"><img src="https://avatars.githubusercontent.com/u/26913335?v=4?s=100" width="100px;" alt="Kevin Lin"/><br /><sub><b>Kevin Lin</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=kevinlin09" title="Code">💻</a></td>
467
+ <td align="center" valign="top" width="14.28%"><a href="https://davdgao.github.io/"><img src="https://avatars.githubusercontent.com/u/102287034?v=4?s=100" width="100px;" alt="DavdGao"/><br /><sub><b>DavdGao</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/pulls?q=is%3Apr+reviewed-by%3ADavdGao" title="Reviewed Pull Requests">👀</a></td>
468
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/FLyLeaf-coder"><img src="https://avatars.githubusercontent.com/u/122603493?v=4?s=100" width="100px;" alt="FlyLeaf"/><br /><sub><b>FlyLeaf</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=FLyLeaf-coder" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=FLyLeaf-coder" title="Documentation">📖</a></td>
469
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/jinghuan-Chen"><img src="https://avatars.githubusercontent.com/u/42742857?v=4?s=100" width="100px;" alt="jinghuan-Chen"/><br /><sub><b>jinghuan-Chen</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jinghuan-Chen" title="Code">💻</a></td>
470
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/Sodawyx"><img src="https://avatars.githubusercontent.com/u/34974468?v=4?s=100" width="100px;" alt="Yuxuan Wu"/><br /><sub><b>Yuxuan Wu</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Sodawyx" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=Sodawyx" title="Documentation">📖</a></td>
471
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/TianYu92"><img src="https://avatars.githubusercontent.com/u/12960468?v=4?s=100" width="100px;" alt="Fear1es5"/><br /><sub><b>Fear1es5</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3ATianYu92" title="Bug reports">🐛</a></td>
370
472
  </tr>
371
473
  </tbody>
372
474
  <tfoot>