agentscope-runtime 0.1.3__tar.gz → 0.1.5__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.
- {agentscope_runtime-0.1.3/src/agentscope_runtime.egg-info → agentscope_runtime-0.1.5}/PKG-INFO +56 -57
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/README.md +34 -41
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/pyproject.toml +26 -20
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/agentscope_agent/agent.py +56 -12
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/agentscope_agent/hooks.py +2 -1
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/agno_agent.py +11 -5
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/autogen_agent.py +10 -4
- agentscope_runtime-0.1.5/src/agentscope_runtime/engine/agents/utils.py +53 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/context_manager.py +2 -0
- agentscope_runtime-0.1.5/src/agentscope_runtime/engine/services/mem0_memory_service.py +124 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/memory_service.py +2 -1
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/redis_session_history_service.py +4 -3
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/sandbox_service.py +6 -16
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/session_history_service.py +4 -3
- agentscope_runtime-0.1.5/src/agentscope_runtime/engine/services/tablestore_memory_service.py +304 -0
- agentscope_runtime-0.1.5/src/agentscope_runtime/engine/services/tablestore_rag_service.py +143 -0
- agentscope_runtime-0.1.5/src/agentscope_runtime/engine/services/tablestore_session_history_service.py +293 -0
- agentscope_runtime-0.1.5/src/agentscope_runtime/engine/services/utils/tablestore_service_utils.py +352 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/base/base_sandbox.py +2 -2
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/browser/browser_sandbox.py +2 -2
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/filesystem/filesystem_sandbox.py +2 -2
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/training_box.py +4 -12
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/build.py +37 -17
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/client/http_client.py +42 -10
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/client/training_client.py +0 -1
- agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/constant.py +31 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/custom/custom_sandbox.py +5 -5
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/custom/example.py +2 -2
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/in_memory_mapping.py +4 -2
- agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/manager/collections/redis_mapping.py +42 -0
- agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/manager/container_clients/__init__.py +0 -0
- agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/manager/container_clients/agentrun_client.py +1096 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/container_clients/docker_client.py +25 -201
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/container_clients/kubernetes_client.py +1 -3
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/sandbox_manager.py +40 -13
- agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/manager/server/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/server/app.py +27 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/server/config.py +30 -2
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/model/container.py +1 -1
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/model/manager_config.py +93 -5
- agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/utils.py +97 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/version.py +1 -1
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5/src/agentscope_runtime.egg-info}/PKG-INFO +56 -57
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime.egg-info/SOURCES.txt +9 -4
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime.egg-info/requires.txt +22 -16
- agentscope_runtime-0.1.3/src/agentscope_runtime/engine/agents/llm_agent.py +0 -51
- agentscope_runtime-0.1.3/src/agentscope_runtime/engine/llms/__init__.py +0 -3
- agentscope_runtime-0.1.3/src/agentscope_runtime/engine/llms/base_llm.py +0 -60
- agentscope_runtime-0.1.3/src/agentscope_runtime/engine/llms/qwen_llm.py +0 -47
- agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/constant.py +0 -5
- agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/manager/collections/redis_mapping.py +0 -26
- agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/manager/container_clients/__init__.py +0 -10
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/LICENSE +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/setup.cfg +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/setup.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/agentscope_agent/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/base_agent.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/agents/langgraph_agent.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/adapter/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/adapter/a2a/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_adapter_utils.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_agent_adapter.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_protocol_adapter.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/adapter/protocol_adapter.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/base.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/deployers/local_deployer.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/helpers/helper.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/misc/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/runner.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/schemas/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/schemas/agent_schemas.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/schemas/context.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/base.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/environment_manager.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/manager.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/rag_service.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/redis_memory_service.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/reme_personal_memory_service.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/services/reme_task_memory_service.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box → agentscope_runtime-0.1.5/src/agentscope_runtime/engine/services/utils}/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/tracing/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/tracing/base.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/tracing/local_logging_handler.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/tracing/tracing_metric.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/engine/tracing/wrapper.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/base → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box}/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/base/box → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/base}/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/browser → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/base/box}/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/browser/box → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/browser}/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/dummy → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/browser/box}/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/filesystem → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/dummy}/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/dummy/dummy_sandbox.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/filesystem/box → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/filesystem}/__init__.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/shared → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/filesystem/box}/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/sandbox.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/training_box → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/shared}/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/app.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/dependencies/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/dependencies/deps.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/routers/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/routers/generic.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/routers/mcp.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/routers/mcp_utils.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/routers/runtime_watcher.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/shared/routers/workspace.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/box/training_box/environments → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/training_box}/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/base.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/env_service.py +0 -0
- {agentscope_runtime-0.1.3/src/agentscope_runtime/sandbox/manager/server → agentscope_runtime-0.1.5/src/agentscope_runtime/sandbox/box/training_box/environments}/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/environments/appworld/appworld_env.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_dataprocess.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_env.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/env_handler.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/registry.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/box/training_box/src/trajectory.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/client/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/custom/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/enums.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/base_mapping.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/base_queue.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/base_set.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/in_memory_queue.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/in_memory_set.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/redis_queue.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/collections/redis_set.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/container_clients/base_client.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/server/models.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/storage/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/storage/data_storage.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/storage/local_storage.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/mcp_server.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/model/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/model/api.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/registry.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/base/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/base/tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/browser/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/browser/tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/filesystem/__init__.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/filesystem/tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/function_tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/mcp_tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/sandbox_tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/tool.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime/sandbox/tools/utils.py +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime.egg-info/dependency_links.txt +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime.egg-info/entry_points.txt +0 -0
- {agentscope_runtime-0.1.3 → agentscope_runtime-0.1.5}/src/agentscope_runtime.egg-info/top_level.txt +0 -0
{agentscope_runtime-0.1.3/src/agentscope_runtime.egg-info → agentscope_runtime-0.1.5}/PKG-INFO
RENAMED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentscope-runtime
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
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
|
|
7
7
|
License-File: LICENSE
|
|
8
|
-
Requires-Dist: mcp
|
|
8
|
+
Requires-Dist: mcp>=1.13
|
|
9
9
|
Requires-Dist: fastapi>=0.104.0
|
|
10
10
|
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.1
|
|
15
|
+
Requires-Dist: docker>=7.1.0
|
|
16
|
+
Requires-Dist: steel-sdk>=0.1.0
|
|
17
|
+
Requires-Dist: redis>=6.0.0b2
|
|
18
|
+
Requires-Dist: oss2>=2.19.1
|
|
19
|
+
Requires-Dist: pydantic-settings>=2.9.1
|
|
20
|
+
Requires-Dist: dotenv>=0.9.9
|
|
21
|
+
Requires-Dist: kubernetes>=33.1.0
|
|
22
|
+
Requires-Dist: shortuuid>=1.0.13
|
|
14
23
|
Provides-Extra: dev
|
|
15
24
|
Requires-Dist: pytest>=8.3.5; extra == "dev"
|
|
16
25
|
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
@@ -20,17 +29,6 @@ Requires-Dist: furo>=2025.7.19; extra == "dev"
|
|
|
20
29
|
Requires-Dist: pytest-cov>=6.2.1; extra == "dev"
|
|
21
30
|
Requires-Dist: fakeredis>=2.31.0; extra == "dev"
|
|
22
31
|
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
32
|
Provides-Extra: langgraph
|
|
35
33
|
Requires-Dist: langgraph>=0.5.3; extra == "langgraph"
|
|
36
34
|
Provides-Extra: agno
|
|
@@ -40,22 +38,30 @@ Requires-Dist: a2a-sdk>=0.3.0; extra == "a2a"
|
|
|
40
38
|
Provides-Extra: autogen
|
|
41
39
|
Requires-Dist: autogen-agentchat>=0.7.4; extra == "autogen"
|
|
42
40
|
Requires-Dist: autogen-ext[openai]>=0.7.4; extra == "autogen"
|
|
41
|
+
Provides-Extra: agentrun
|
|
42
|
+
Requires-Dist: alibabacloud-agentrun20250910>=1.0.0; extra == "agentrun"
|
|
43
|
+
Requires-Dist: alibabacloud_tea_openapi>=0.4.0; extra == "agentrun"
|
|
43
44
|
Provides-Extra: langchain-rag
|
|
44
45
|
Requires-Dist: langchain>=0.3.25; extra == "langchain-rag"
|
|
45
|
-
Requires-Dist: pymilvus>=2.6.0; extra == "langchain-rag"
|
|
46
|
+
Requires-Dist: pymilvus[milvus-lite]>=2.6.0; extra == "langchain-rag"
|
|
46
47
|
Requires-Dist: langchain-community>=0.3.27; extra == "langchain-rag"
|
|
47
48
|
Requires-Dist: langchain-milvus>=0.2.1; extra == "langchain-rag"
|
|
48
49
|
Requires-Dist: bs4>=0.0.2; extra == "langchain-rag"
|
|
49
50
|
Provides-Extra: llamaindex-rag
|
|
50
51
|
Requires-Dist: llama-index>=0.13.4; extra == "llamaindex-rag"
|
|
51
|
-
Requires-Dist: pymilvus>=2.6.0; extra == "llamaindex-rag"
|
|
52
|
+
Requires-Dist: pymilvus[milvus-lite]>=2.6.0; extra == "llamaindex-rag"
|
|
52
53
|
Requires-Dist: llama-index-vector-stores-milvus>=0.9.1; extra == "llamaindex-rag"
|
|
53
54
|
Requires-Dist: llama-index-readers-web>=0.5.1; extra == "llamaindex-rag"
|
|
54
55
|
Requires-Dist: llama-index-embeddings-langchain>=0.4.0; extra == "llamaindex-rag"
|
|
55
56
|
Requires-Dist: langchain-community>=0.3.27; extra == "llamaindex-rag"
|
|
56
57
|
Requires-Dist: bs4>=0.0.2; extra == "llamaindex-rag"
|
|
58
|
+
Provides-Extra: aliyun-tablestore-ext
|
|
59
|
+
Requires-Dist: tablestore-for-agent-memory>=1.1.0; extra == "aliyun-tablestore-ext"
|
|
60
|
+
Requires-Dist: dashscope>=1.24.4; extra == "aliyun-tablestore-ext"
|
|
61
|
+
Requires-Dist: langchain-community>=0.3.27; extra == "aliyun-tablestore-ext"
|
|
57
62
|
Provides-Extra: memory-ext
|
|
58
|
-
Requires-Dist: reme-ai==0.1.
|
|
63
|
+
Requires-Dist: reme-ai==0.1.9; python_full_version >= "3.12" and extra == "memory-ext"
|
|
64
|
+
Requires-Dist: mem0ai>=0.1.117; extra == "memory-ext"
|
|
59
65
|
Dynamic: license-file
|
|
60
66
|
|
|
61
67
|
<div align="center">
|
|
@@ -63,8 +69,9 @@ Dynamic: license-file
|
|
|
63
69
|
# AgentScope Runtime
|
|
64
70
|
|
|
65
71
|
[](https://pypi.org/project/agentscope-runtime/)
|
|
72
|
+
[](https://pepy.tech/project/agentscope-runtime)
|
|
66
73
|
[](https://python.org)
|
|
67
|
-
[](LICENSE)
|
|
68
75
|
[](https://github.com/psf/black)
|
|
69
76
|
[](https://github.com/agentscope-ai/agentscope-runtime/stargazers)
|
|
70
77
|
[](https://github.com/agentscope-ai/agentscope-runtime/network)
|
|
@@ -134,9 +141,6 @@ From PyPI:
|
|
|
134
141
|
```bash
|
|
135
142
|
# Install core dependencies
|
|
136
143
|
pip install agentscope-runtime
|
|
137
|
-
|
|
138
|
-
# Install sandbox dependencies
|
|
139
|
-
pip install "agentscope-runtime[sandbox]"
|
|
140
144
|
```
|
|
141
145
|
|
|
142
146
|
(Optional) From source:
|
|
@@ -148,35 +152,41 @@ cd agentscope-runtime
|
|
|
148
152
|
|
|
149
153
|
# Install core dependencies
|
|
150
154
|
pip install -e .
|
|
151
|
-
|
|
152
|
-
# Install sandbox dependencies
|
|
153
|
-
pip install -e ".[sandbox]"
|
|
154
155
|
```
|
|
155
156
|
|
|
156
157
|
### Basic Agent Usage Example
|
|
157
158
|
|
|
158
|
-
This example demonstrates how to create
|
|
159
|
+
This example demonstrates how to create an agentscope agent using AgentScope Runtime and
|
|
160
|
+
stream responses from the Qwen model.
|
|
161
|
+
|
|
159
162
|
|
|
160
163
|
```python
|
|
161
164
|
import asyncio
|
|
162
165
|
import os
|
|
166
|
+
|
|
163
167
|
from agentscope_runtime.engine import Runner
|
|
164
|
-
from agentscope_runtime.engine.agents.
|
|
165
|
-
from agentscope_runtime.engine.llms import QwenLLM
|
|
168
|
+
from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
|
|
166
169
|
from agentscope_runtime.engine.schemas.agent_schemas import AgentRequest
|
|
167
170
|
from agentscope_runtime.engine.services.context_manager import ContextManager
|
|
168
171
|
|
|
172
|
+
from agentscope.agent import ReActAgent
|
|
173
|
+
from agentscope.model import OpenAIChatModel
|
|
169
174
|
|
|
170
175
|
async def main():
|
|
171
176
|
# Set up the language model and agent
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
177
|
+
agent = AgentScopeAgent(
|
|
178
|
+
name="Friday",
|
|
179
|
+
model=OpenAIChatModel(
|
|
180
|
+
"gpt-4",
|
|
181
|
+
api_key=os.getenv("OPENAI_API_KEY"),
|
|
182
|
+
),
|
|
183
|
+
agent_config={
|
|
184
|
+
"sys_prompt": "You're a helpful assistant named Friday.",
|
|
185
|
+
},
|
|
186
|
+
agent_builder=ReActAgent,
|
|
175
187
|
)
|
|
176
|
-
llm_agent = LLMAgent(model=model, name="llm_agent")
|
|
177
|
-
|
|
178
188
|
async with ContextManager() as context_manager:
|
|
179
|
-
runner = Runner(agent=
|
|
189
|
+
runner = Runner(agent=agent, context_manager=context_manager)
|
|
180
190
|
|
|
181
191
|
# Create a request and stream the response
|
|
182
192
|
request = AgentRequest(
|
|
@@ -216,7 +226,11 @@ with BaseSandbox() as box:
|
|
|
216
226
|
> [!NOTE]
|
|
217
227
|
>
|
|
218
228
|
> 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.
|
|
219
|
-
|
|
229
|
+
>
|
|
230
|
+
> If pulling the Docker image fails, try setting:
|
|
231
|
+
> `export RUNTIME_SANDBOX_REGISTRY="agentscope-registry.ap-southeast-1.cr.aliyuncs.com"`
|
|
232
|
+
>
|
|
233
|
+
> 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)
|
|
220
234
|
---
|
|
221
235
|
|
|
222
236
|
## 📚 Cookbook
|
|
@@ -231,29 +245,6 @@ with BaseSandbox() as box:
|
|
|
231
245
|
|
|
232
246
|
## 🔌 Agent Framework Integration
|
|
233
247
|
|
|
234
|
-
### AgentScope Integration
|
|
235
|
-
|
|
236
|
-
```python
|
|
237
|
-
# pip install "agentscope-runtime[agentscope]"
|
|
238
|
-
import os
|
|
239
|
-
|
|
240
|
-
from agentscope.agent import ReActAgent
|
|
241
|
-
from agentscope.model import OpenAIChatModel
|
|
242
|
-
from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
|
|
243
|
-
|
|
244
|
-
agent = AgentScopeAgent(
|
|
245
|
-
name="Friday",
|
|
246
|
-
model=OpenAIChatModel(
|
|
247
|
-
"gpt-4",
|
|
248
|
-
api_key=os.getenv("OPENAI_API_KEY"),
|
|
249
|
-
),
|
|
250
|
-
agent_config={
|
|
251
|
-
"sys_prompt": "You're a helpful assistant named {name}.",
|
|
252
|
-
},
|
|
253
|
-
agent_builder=ReActAgent,
|
|
254
|
-
)
|
|
255
|
-
```
|
|
256
|
-
|
|
257
248
|
### Agno Integration
|
|
258
249
|
|
|
259
250
|
```python
|
|
@@ -405,7 +396,7 @@ limitations under the License.
|
|
|
405
396
|
|
|
406
397
|
## Contributors ✨
|
|
407
398
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
408
|
-
[](#contributors-)
|
|
409
400
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
410
401
|
|
|
411
402
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
@@ -424,6 +415,14 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
424
415
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rankesterc"><img src="https://avatars.githubusercontent.com/u/114560457?v=4?s=100" width="100px;" alt="Ran Chen"/><br /><sub><b>Ran Chen</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=rankesterc" title="Code">💻</a></td>
|
|
425
416
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jinliyl"><img src="https://avatars.githubusercontent.com/u/6469360?v=4?s=100" width="100px;" alt="jinliyl"/><br /><sub><b>jinliyl</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jinliyl" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jinliyl" title="Documentation">📖</a></td>
|
|
426
417
|
</tr>
|
|
418
|
+
<tr>
|
|
419
|
+
<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>
|
|
420
|
+
<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>
|
|
421
|
+
<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>
|
|
422
|
+
<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>
|
|
423
|
+
<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>
|
|
424
|
+
<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>
|
|
425
|
+
</tr>
|
|
427
426
|
</tbody>
|
|
428
427
|
<tfoot>
|
|
429
428
|
<tr>
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
# AgentScope Runtime
|
|
4
4
|
|
|
5
5
|
[](https://pypi.org/project/agentscope-runtime/)
|
|
6
|
+
[](https://pepy.tech/project/agentscope-runtime)
|
|
6
7
|
[](https://python.org)
|
|
7
|
-
[](LICENSE)
|
|
8
9
|
[](https://github.com/psf/black)
|
|
9
10
|
[](https://github.com/agentscope-ai/agentscope-runtime/stargazers)
|
|
10
11
|
[](https://github.com/agentscope-ai/agentscope-runtime/network)
|
|
@@ -74,9 +75,6 @@ From PyPI:
|
|
|
74
75
|
```bash
|
|
75
76
|
# Install core dependencies
|
|
76
77
|
pip install agentscope-runtime
|
|
77
|
-
|
|
78
|
-
# Install sandbox dependencies
|
|
79
|
-
pip install "agentscope-runtime[sandbox]"
|
|
80
78
|
```
|
|
81
79
|
|
|
82
80
|
(Optional) From source:
|
|
@@ -88,35 +86,41 @@ cd agentscope-runtime
|
|
|
88
86
|
|
|
89
87
|
# Install core dependencies
|
|
90
88
|
pip install -e .
|
|
91
|
-
|
|
92
|
-
# Install sandbox dependencies
|
|
93
|
-
pip install -e ".[sandbox]"
|
|
94
89
|
```
|
|
95
90
|
|
|
96
91
|
### Basic Agent Usage Example
|
|
97
92
|
|
|
98
|
-
This example demonstrates how to create
|
|
93
|
+
This example demonstrates how to create an agentscope agent using AgentScope Runtime and
|
|
94
|
+
stream responses from the Qwen model.
|
|
95
|
+
|
|
99
96
|
|
|
100
97
|
```python
|
|
101
98
|
import asyncio
|
|
102
99
|
import os
|
|
100
|
+
|
|
103
101
|
from agentscope_runtime.engine import Runner
|
|
104
|
-
from agentscope_runtime.engine.agents.
|
|
105
|
-
from agentscope_runtime.engine.llms import QwenLLM
|
|
102
|
+
from agentscope_runtime.engine.agents.agentscope_agent import AgentScopeAgent
|
|
106
103
|
from agentscope_runtime.engine.schemas.agent_schemas import AgentRequest
|
|
107
104
|
from agentscope_runtime.engine.services.context_manager import ContextManager
|
|
108
105
|
|
|
106
|
+
from agentscope.agent import ReActAgent
|
|
107
|
+
from agentscope.model import OpenAIChatModel
|
|
109
108
|
|
|
110
109
|
async def main():
|
|
111
110
|
# Set up the language model and agent
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
agent = AgentScopeAgent(
|
|
112
|
+
name="Friday",
|
|
113
|
+
model=OpenAIChatModel(
|
|
114
|
+
"gpt-4",
|
|
115
|
+
api_key=os.getenv("OPENAI_API_KEY"),
|
|
116
|
+
),
|
|
117
|
+
agent_config={
|
|
118
|
+
"sys_prompt": "You're a helpful assistant named Friday.",
|
|
119
|
+
},
|
|
120
|
+
agent_builder=ReActAgent,
|
|
115
121
|
)
|
|
116
|
-
llm_agent = LLMAgent(model=model, name="llm_agent")
|
|
117
|
-
|
|
118
122
|
async with ContextManager() as context_manager:
|
|
119
|
-
runner = Runner(agent=
|
|
123
|
+
runner = Runner(agent=agent, context_manager=context_manager)
|
|
120
124
|
|
|
121
125
|
# Create a request and stream the response
|
|
122
126
|
request = AgentRequest(
|
|
@@ -156,7 +160,11 @@ with BaseSandbox() as box:
|
|
|
156
160
|
> [!NOTE]
|
|
157
161
|
>
|
|
158
162
|
> 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.
|
|
159
|
-
|
|
163
|
+
>
|
|
164
|
+
> If pulling the Docker image fails, try setting:
|
|
165
|
+
> `export RUNTIME_SANDBOX_REGISTRY="agentscope-registry.ap-southeast-1.cr.aliyuncs.com"`
|
|
166
|
+
>
|
|
167
|
+
> 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)
|
|
160
168
|
---
|
|
161
169
|
|
|
162
170
|
## 📚 Cookbook
|
|
@@ -171,29 +179,6 @@ with BaseSandbox() as box:
|
|
|
171
179
|
|
|
172
180
|
## 🔌 Agent Framework Integration
|
|
173
181
|
|
|
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
182
|
### Agno Integration
|
|
198
183
|
|
|
199
184
|
```python
|
|
@@ -345,7 +330,7 @@ limitations under the License.
|
|
|
345
330
|
|
|
346
331
|
## Contributors ✨
|
|
347
332
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
348
|
-
[](#contributors-)
|
|
349
334
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
350
335
|
|
|
351
336
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
@@ -364,6 +349,14 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
364
349
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rankesterc"><img src="https://avatars.githubusercontent.com/u/114560457?v=4?s=100" width="100px;" alt="Ran Chen"/><br /><sub><b>Ran Chen</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=rankesterc" title="Code">💻</a></td>
|
|
365
350
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jinliyl"><img src="https://avatars.githubusercontent.com/u/6469360?v=4?s=100" width="100px;" alt="jinliyl"/><br /><sub><b>jinliyl</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jinliyl" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jinliyl" title="Documentation">📖</a></td>
|
|
366
351
|
</tr>
|
|
352
|
+
<tr>
|
|
353
|
+
<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>
|
|
354
|
+
<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>
|
|
355
|
+
<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>
|
|
356
|
+
<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>
|
|
357
|
+
<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>
|
|
358
|
+
<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>
|
|
359
|
+
</tr>
|
|
367
360
|
</tbody>
|
|
368
361
|
<tfoot>
|
|
369
362
|
<tr>
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "agentscope-runtime"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.5"
|
|
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"
|
|
7
7
|
dependencies = [
|
|
8
|
-
"mcp>=1.
|
|
8
|
+
"mcp>=1.13",
|
|
9
9
|
"fastapi>=0.104.0",
|
|
10
10
|
"uvicorn[standard]>=0.24.0",
|
|
11
11
|
"openai",
|
|
12
12
|
"pydantic>=2.11.7",
|
|
13
13
|
"requests>=2.32.4",
|
|
14
|
+
"agentscope>=1.0.1",
|
|
15
|
+
"docker>=7.1.0",
|
|
16
|
+
"steel-sdk>=0.1.0",
|
|
17
|
+
"redis>=6.0.0b2",
|
|
18
|
+
"oss2>=2.19.1",
|
|
19
|
+
"pydantic-settings>=2.9.1",
|
|
20
|
+
"dotenv>=0.9.9",
|
|
21
|
+
"kubernetes>=33.1.0",
|
|
22
|
+
"shortuuid>=1.0.13",
|
|
14
23
|
]
|
|
15
24
|
|
|
16
25
|
[tool.setuptools]
|
|
@@ -37,21 +46,6 @@ dev = [
|
|
|
37
46
|
"sphinx-autoapi>=3.6.0",
|
|
38
47
|
]
|
|
39
48
|
|
|
40
|
-
sandbox = [
|
|
41
|
-
"docker>=7.1.0",
|
|
42
|
-
"steel-sdk>=0.1.0",
|
|
43
|
-
"redis>=6.0.0b2",
|
|
44
|
-
"oss2>=2.19.1",
|
|
45
|
-
"pydantic-settings>=2.9.1",
|
|
46
|
-
"dotenv>=0.9.9",
|
|
47
|
-
"kubernetes>=33.1.0",
|
|
48
|
-
"shortuuid>=1.0.13",
|
|
49
|
-
]
|
|
50
|
-
|
|
51
|
-
agentscope = [
|
|
52
|
-
"agentscope>=1.0.1",
|
|
53
|
-
]
|
|
54
|
-
|
|
55
49
|
langgraph = [
|
|
56
50
|
"langgraph>=0.5.3",
|
|
57
51
|
]
|
|
@@ -66,10 +60,14 @@ autogen = [
|
|
|
66
60
|
"autogen-agentchat>=0.7.4",
|
|
67
61
|
"autogen-ext[openai]>=0.7.4",
|
|
68
62
|
]
|
|
63
|
+
agentrun = [
|
|
64
|
+
"alibabacloud-agentrun20250910>=1.0.0",
|
|
65
|
+
"alibabacloud_tea_openapi>=0.4.0"
|
|
66
|
+
]
|
|
69
67
|
|
|
70
68
|
langchain_rag=[
|
|
71
69
|
"langchain>=0.3.25",
|
|
72
|
-
"pymilvus>=2.6.0",
|
|
70
|
+
"pymilvus[milvus-lite]>=2.6.0",
|
|
73
71
|
"langchain-community>=0.3.27",
|
|
74
72
|
"langchain-milvus>=0.2.1",
|
|
75
73
|
"bs4>=0.0.2",
|
|
@@ -77,13 +75,21 @@ langchain_rag=[
|
|
|
77
75
|
|
|
78
76
|
llamaindex_rag=[
|
|
79
77
|
"llama-index>=0.13.4",
|
|
80
|
-
"pymilvus>=2.6.0",
|
|
78
|
+
"pymilvus[milvus-lite]>=2.6.0",
|
|
81
79
|
"llama-index-vector-stores-milvus>=0.9.1",
|
|
82
80
|
"llama-index-readers-web>=0.5.1",
|
|
83
81
|
"llama-index-embeddings-langchain>=0.4.0",
|
|
84
82
|
"langchain-community>=0.3.27",
|
|
85
83
|
"bs4>=0.0.2",
|
|
86
84
|
]
|
|
85
|
+
|
|
86
|
+
aliyun_tablestore_ext=[
|
|
87
|
+
"tablestore-for-agent-memory>=1.1.0",
|
|
88
|
+
"dashscope>=1.24.4",
|
|
89
|
+
"langchain-community>=0.3.27",
|
|
90
|
+
]
|
|
91
|
+
|
|
87
92
|
memory-ext = [
|
|
88
|
-
"reme-ai==0.1.
|
|
93
|
+
"reme-ai==0.1.9 ; python_full_version >= '3.12'",
|
|
94
|
+
"mem0ai>=0.1.117"
|
|
89
95
|
]
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# pylint:disable=too-many-nested-blocks, too-many-branches, too-many-statements
|
|
3
3
|
# pylint:disable=line-too-long, protected-access
|
|
4
|
-
|
|
4
|
+
import copy
|
|
5
|
+
import os
|
|
6
|
+
import logging
|
|
5
7
|
import json
|
|
6
8
|
import threading
|
|
7
9
|
import uuid
|
|
@@ -9,7 +11,7 @@ from functools import partial
|
|
|
9
11
|
from typing import Optional, Type
|
|
10
12
|
|
|
11
13
|
from agentscope import setup_logger
|
|
12
|
-
from agentscope.agent import ReActAgent
|
|
14
|
+
from agentscope.agent import AgentBase, ReActAgent
|
|
13
15
|
from agentscope.formatter import (
|
|
14
16
|
FormatterBase,
|
|
15
17
|
DashScopeChatFormatter,
|
|
@@ -40,6 +42,7 @@ from .hooks import (
|
|
|
40
42
|
clear_msg_instances,
|
|
41
43
|
run_async_in_thread,
|
|
42
44
|
)
|
|
45
|
+
from ..utils import build_agent
|
|
43
46
|
from ...agents import Agent
|
|
44
47
|
from ...schemas.agent_schemas import (
|
|
45
48
|
Message,
|
|
@@ -53,6 +56,7 @@ from ...schemas.context import Context
|
|
|
53
56
|
|
|
54
57
|
# Disable logging from agentscope
|
|
55
58
|
setup_logger(level="CRITICAL")
|
|
59
|
+
logger = logging.getLogger(__name__)
|
|
56
60
|
|
|
57
61
|
|
|
58
62
|
class AgentScopeContextAdapter:
|
|
@@ -95,7 +99,11 @@ class AgentScopeContextAdapter:
|
|
|
95
99
|
"name": message.role,
|
|
96
100
|
"role": role_label,
|
|
97
101
|
}
|
|
98
|
-
if message.type
|
|
102
|
+
if message.type in (
|
|
103
|
+
MessageType.PLUGIN_CALL,
|
|
104
|
+
MessageType.FUNCTION_CALL,
|
|
105
|
+
):
|
|
106
|
+
# convert PLUGIN_CALL, FUNCTION_CALL to ToolUseBlock
|
|
99
107
|
result["content"] = [
|
|
100
108
|
ToolUseBlock(
|
|
101
109
|
type="tool_use",
|
|
@@ -104,7 +112,12 @@ class AgentScopeContextAdapter:
|
|
|
104
112
|
input=json.loads(message.content[0].data["arguments"]),
|
|
105
113
|
),
|
|
106
114
|
]
|
|
107
|
-
elif message.type
|
|
115
|
+
elif message.type in (
|
|
116
|
+
MessageType.PLUGIN_CALL_OUTPUT,
|
|
117
|
+
MessageType.FUNCTION_CALL_OUTPUT,
|
|
118
|
+
):
|
|
119
|
+
# convert PLUGIN_CALL_OUTPUT, FUNCTION_CALL_OUTPUT to
|
|
120
|
+
# ToolResultBlock
|
|
108
121
|
result["content"] = [
|
|
109
122
|
ToolResultBlock(
|
|
110
123
|
type="tool_result",
|
|
@@ -150,6 +163,10 @@ class AgentScopeContextAdapter:
|
|
|
150
163
|
)
|
|
151
164
|
|
|
152
165
|
toolkit = self.attr["agent_config"].get("toolkit", Toolkit())
|
|
166
|
+
# Deepcopy to avoid modify the original toolkit
|
|
167
|
+
# TODO: when toolkit contains live sessions, deepcopy fails,
|
|
168
|
+
# need further fixed in AgentScope
|
|
169
|
+
toolkit = copy.deepcopy(toolkit)
|
|
153
170
|
tools = self.attr["tools"]
|
|
154
171
|
|
|
155
172
|
# in case, tools is None and tools == []
|
|
@@ -195,7 +212,7 @@ class AgentScopeAgent(Agent):
|
|
|
195
212
|
model: ChatModelBase,
|
|
196
213
|
tools=None,
|
|
197
214
|
agent_config=None,
|
|
198
|
-
agent_builder: Optional[Type[
|
|
215
|
+
agent_builder: Optional[Type[AgentBase]] = ReActAgent,
|
|
199
216
|
):
|
|
200
217
|
super().__init__(name=name, agent_config=agent_config)
|
|
201
218
|
assert isinstance(
|
|
@@ -209,7 +226,7 @@ class AgentScopeAgent(Agent):
|
|
|
209
226
|
|
|
210
227
|
assert issubclass(
|
|
211
228
|
agent_builder,
|
|
212
|
-
|
|
229
|
+
AgentBase,
|
|
213
230
|
), "agent_builder must be a subclass of AgentBase in AgentScope"
|
|
214
231
|
|
|
215
232
|
# Replace name if not exists
|
|
@@ -228,14 +245,41 @@ class AgentScopeAgent(Agent):
|
|
|
228
245
|
return AgentScopeAgent(**self._attr)
|
|
229
246
|
|
|
230
247
|
def build(self, as_context):
|
|
231
|
-
|
|
248
|
+
params = {
|
|
232
249
|
**self._attr["agent_config"],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
250
|
+
**{
|
|
251
|
+
"model": as_context.model,
|
|
252
|
+
"formatter": self._attr["agent_config"].get(
|
|
253
|
+
"formatter",
|
|
254
|
+
as_context.formatter,
|
|
255
|
+
),
|
|
256
|
+
"memory": as_context.memory,
|
|
257
|
+
"toolkit": as_context.toolkit,
|
|
258
|
+
},
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
builder_cls = self._attr["agent_builder"]
|
|
262
|
+
self._agent = build_agent(builder_cls, params)
|
|
263
|
+
|
|
264
|
+
# Read env variable (default = false)
|
|
265
|
+
console_output_env = (
|
|
266
|
+
os.getenv(
|
|
267
|
+
"AGENTSCOPE_AGENT_CONSOLE_OUTPUT",
|
|
268
|
+
"false",
|
|
269
|
+
)
|
|
270
|
+
.strip()
|
|
271
|
+
.lower()
|
|
237
272
|
)
|
|
238
|
-
|
|
273
|
+
|
|
274
|
+
if console_output_env not in ("true", "false"):
|
|
275
|
+
raise ValueError(
|
|
276
|
+
f"Invalid value for AGENTSCOPE_AGENT_CONSOLE_OUTPUT: "
|
|
277
|
+
f"'{console_output_env}'. "
|
|
278
|
+
f"Only 'true' or 'false' is allowed.",
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
# If true → enable output; if false → disable output
|
|
282
|
+
self._agent._disable_console_output = console_output_env == "false"
|
|
239
283
|
|
|
240
284
|
self._agent.register_instance_hook(
|
|
241
285
|
"pre_print",
|
|
@@ -6,6 +6,7 @@ import os
|
|
|
6
6
|
import time
|
|
7
7
|
import threading
|
|
8
8
|
import logging
|
|
9
|
+
import traceback
|
|
9
10
|
|
|
10
11
|
from collections import defaultdict
|
|
11
12
|
from typing import Union, Optional, Generator, Any, List
|
|
@@ -33,7 +34,7 @@ def run_async_in_thread(coro):
|
|
|
33
34
|
logging.error(f"Runtime error in async thread: {e}")
|
|
34
35
|
return None
|
|
35
36
|
except Exception as e:
|
|
36
|
-
logging.error(f"Error in async thread: {e}")
|
|
37
|
+
logging.error(f"Error in async thread: {e}, {traceback.format_exc()}")
|
|
37
38
|
return None
|
|
38
39
|
|
|
39
40
|
|
|
@@ -12,6 +12,7 @@ from agno.run.response import (
|
|
|
12
12
|
)
|
|
13
13
|
from agno.tools.function import Function
|
|
14
14
|
|
|
15
|
+
from .utils import build_agent
|
|
15
16
|
from ..agents import Agent
|
|
16
17
|
from ..schemas.context import Context
|
|
17
18
|
from ..schemas.agent_schemas import (
|
|
@@ -64,7 +65,7 @@ class AgnoContextAdapter:
|
|
|
64
65
|
return self.attr["model"]
|
|
65
66
|
|
|
66
67
|
async def adapt_tools(self):
|
|
67
|
-
toolkit = self.attr["agent_config"].get("
|
|
68
|
+
toolkit = self.attr["agent_config"].get("tools", [])
|
|
68
69
|
tools = self.attr["tools"]
|
|
69
70
|
|
|
70
71
|
# in case, tools is None and tools == []
|
|
@@ -138,11 +139,16 @@ class AgnoAgent(Agent):
|
|
|
138
139
|
return AgnoAgent(**self._attr)
|
|
139
140
|
|
|
140
141
|
def build(self, as_context):
|
|
141
|
-
|
|
142
|
+
params = {
|
|
142
143
|
**self._attr["agent_config"],
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
**{
|
|
145
|
+
"model": as_context.model,
|
|
146
|
+
"tools": as_context.toolkit,
|
|
147
|
+
}, # Context will be added at `self._agent.arun`
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
builder_cls = self._attr["agent_builder"]
|
|
151
|
+
self._agent = build_agent(builder_cls, params)
|
|
146
152
|
|
|
147
153
|
return self._agent
|
|
148
154
|
|