agentscope-runtime 0.2.0__tar.gz → 0.2.0b1__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.2.0/src/agentscope_runtime.egg-info → agentscope_runtime-0.2.0b1}/PKG-INFO +12 -39
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/README.md +9 -35
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/pyproject.toml +4 -5
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/container_clients/kubernetes_client.py +13 -6
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/agents/agentscope_agent.py +7 -86
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/agents/agno_agent.py +10 -8
- agentscope_runtime-0.2.0b1/src/agentscope_runtime/engine/agents/langgraph_agent.py +59 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_adapter_utils.py +1 -5
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/modelstudio_deployer.py +29 -191
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/runner.py +1 -6
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/tablestore_memory_service.py +1 -4
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/training_box.py +42 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/enums.py +1 -0
- agentscope_runtime-0.2.0b1/src/agentscope_runtime/version.py +2 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1/src/agentscope_runtime.egg-info}/PKG-INFO +12 -39
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime.egg-info/requires.txt +2 -3
- agentscope_runtime-0.2.0/src/agentscope_runtime/engine/agents/langgraph_agent.py +0 -102
- agentscope_runtime-0.2.0/src/agentscope_runtime/version.py +0 -2
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/LICENSE +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/setup.cfg +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/setup.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/base_mapping.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/base_queue.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/base_set.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/in_memory_mapping.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/in_memory_queue.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/in_memory_set.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/redis_mapping.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/redis_queue.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/collections/redis_set.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/container_clients/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/container_clients/agentrun_client.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/container_clients/base_client.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/common/container_clients/docker_client.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/agents/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/agents/autogen_agent.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/agents/base_agent.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/agents/utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/app/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/app/agent_app.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/app/base_app.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/app/celery_mixin.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/a2a/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_adapter_utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_agent_adapter.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/a2a/a2a_protocol_adapter.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/protocol_adapter.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/responses/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_agent_adapter.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/adapter/responses/response_api_protocol_adapter.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/base.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/cli_fc_deploy.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/kubernetes_deployer.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/local_deployer.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/deployment_modes.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/docker_image_builder.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/dockerfile_generator.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/docker_image_utils/runner_image_factory.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/package_project_utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/fastapi_factory.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/fastapi_templates.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/process_manager.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/service_config.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/service_factory.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/service_utils/standalone_main.py.j2 +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/deployers/utils/wheel_packager.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/helpers/agent_api_builder.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/helpers/helper.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/misc/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/agent_schemas.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/context.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/embedding.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/modelstudio_llm.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/oai_llm.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/schemas/realtime.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/base.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/context_manager.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/environment_manager.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/manager.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/mem0_memory_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/memory_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/rag_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/redis_memory_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/redis_session_history_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/reme_personal_memory_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/reme_task_memory_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/sandbox_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/session_history_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/tablestore_rag_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/tablestore_session_history_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/utils/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/services/utils/tablestore_service_utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/asyncio_util.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/base.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/local_logging_handler.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/message_util.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/tracing_metric.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/tracing_util.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/engine/tracing/wrapper.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/base/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/base/base_sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/base/box/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/browser/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/browser/box/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/browser/browser_sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/dummy/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/dummy/dummy_sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/filesystem/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/filesystem/box/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/filesystem/filesystem_sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/gui/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/gui/box/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/gui/gui_sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/app.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/dependencies/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/dependencies/deps.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/routers/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/routers/generic.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/routers/mcp.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/routers/mcp_utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/routers/runtime_watcher.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/shared/routers/workspace.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/base.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/env_service.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/environments/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/environments/appworld/appworld_env.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_dataprocess.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/bfcl_env.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/environments/bfcl/env_handler.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/registry.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/box/training_box/src/trajectory.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/build.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/client/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/client/http_client.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/client/training_client.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/constant.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/custom/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/custom/custom_sandbox.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/custom/example.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/sandbox_manager.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/server/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/server/app.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/server/config.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/server/models.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/storage/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/storage/data_storage.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/storage/local_storage.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/manager/storage/oss_storage.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/mcp_server.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/model/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/model/api.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/model/container.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/model/manager_config.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/registry.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/base/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/base/tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/browser/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/browser/tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/filesystem/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/filesystem/tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/function_tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/gui/__init__.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/gui/tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/mcp_tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/sandbox_tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/tool.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/tools/utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime/sandbox/utils.py +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime.egg-info/SOURCES.txt +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime.egg-info/dependency_links.txt +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime.egg-info/entry_points.txt +0 -0
- {agentscope_runtime-0.2.0 → agentscope_runtime-0.2.0b1}/src/agentscope_runtime.egg-info/top_level.txt +0 -0
{agentscope_runtime-0.2.0/src/agentscope_runtime.egg-info → agentscope_runtime-0.2.0b1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentscope-runtime
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0b1
|
|
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
|
|
@@ -30,11 +30,10 @@ Requires-Dist: furo>=2025.7.19; extra == "dev"
|
|
|
30
30
|
Requires-Dist: pytest-cov>=6.2.1; extra == "dev"
|
|
31
31
|
Requires-Dist: fakeredis>=2.31.0; extra == "dev"
|
|
32
32
|
Requires-Dist: sphinx-autoapi>=3.6.0; extra == "dev"
|
|
33
|
-
Requires-Dist: pytest-mock>=3.15.1; extra == "dev"
|
|
34
33
|
Provides-Extra: langgraph
|
|
35
34
|
Requires-Dist: langgraph>=0.5.3; extra == "langgraph"
|
|
36
35
|
Provides-Extra: agno
|
|
37
|
-
Requires-Dist: agno
|
|
36
|
+
Requires-Dist: agno<2.0.0,>=1.7.5; extra == "agno"
|
|
38
37
|
Provides-Extra: autogen
|
|
39
38
|
Requires-Dist: autogen-agentchat>=0.7.4; extra == "autogen"
|
|
40
39
|
Requires-Dist: autogen-ext[openai]>=0.7.4; extra == "autogen"
|
|
@@ -64,7 +63,7 @@ Requires-Dist: reme-ai==0.1.9; python_full_version >= "3.12" and extra == "memor
|
|
|
64
63
|
Requires-Dist: mem0ai>=0.1.117; extra == "memory-ext"
|
|
65
64
|
Provides-Extra: deployment
|
|
66
65
|
Requires-Dist: alibabacloud-oss-v2; extra == "deployment"
|
|
67
|
-
Requires-Dist: alibabacloud-bailian20231229>=2.
|
|
66
|
+
Requires-Dist: alibabacloud-bailian20231229>=2.5.0; extra == "deployment"
|
|
68
67
|
Requires-Dist: build; extra == "deployment"
|
|
69
68
|
Requires-Dist: setuptools>=40.8.0; extra == "deployment"
|
|
70
69
|
Requires-Dist: wheel; extra == "deployment"
|
|
@@ -457,45 +456,25 @@ agent = LangGraphAgent(graph=compiled_graph)
|
|
|
457
456
|
|
|
458
457
|
## 🏗️ Deployment
|
|
459
458
|
|
|
460
|
-
The
|
|
461
|
-
The service port is set as the parameter `port` when creating the `LocalDeployManager`.
|
|
462
|
-
The service endpoint path is set as the parameter `endpoint_path` when deploying the agent.
|
|
463
|
-
|
|
464
|
-
The deployer will automatically add common agent protocols, such as **A2A**, **Response API** based on the default endpoint `/process`.
|
|
465
|
-
|
|
466
|
-
In this example, we set the endpoint path to `/process`,
|
|
467
|
-
after deployment, users can access the service at `http://localhost:8090/process`, and can also access the service from OpenAI SDK by Response API.
|
|
459
|
+
The agent runner exposes a `deploy` method that takes a `DeployManager` instance and deploys the agent. The service port is set as the parameter `port` when creating the `LocalDeployManager`. The service endpoint path is set as the parameter `endpoint_path` when deploying the agent. In this example, we set the endpoint path to `/process`. After deployment, you can access the service at `http://localhost:8090/process`.
|
|
468
460
|
|
|
469
461
|
```python
|
|
470
462
|
from agentscope_runtime.engine.deployers import LocalDeployManager
|
|
471
463
|
|
|
472
464
|
# Create deployment manager
|
|
473
|
-
|
|
474
|
-
host="
|
|
465
|
+
deploy_manager = LocalDeployManager(
|
|
466
|
+
host="localhost",
|
|
475
467
|
port=8090,
|
|
476
468
|
)
|
|
477
469
|
|
|
478
|
-
# Deploy the
|
|
479
|
-
deploy_result = await
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
Then user could query the deployment by OpenAI SDK.
|
|
484
|
-
|
|
485
|
-
```python
|
|
486
|
-
from openai import OpenAI
|
|
487
|
-
|
|
488
|
-
client = OpenAI(base_url="http://0.0.0.0:8090/compatible-mode/v1")
|
|
489
|
-
|
|
490
|
-
response = client.responses.create(
|
|
491
|
-
model="any_name",
|
|
492
|
-
input="What is the weather in Beijing?"
|
|
470
|
+
# Deploy the agent as a streaming service
|
|
471
|
+
deploy_result = await runner.deploy(
|
|
472
|
+
deploy_manager=deploy_manager,
|
|
473
|
+
endpoint_path="/process",
|
|
474
|
+
stream=True, # Enable streaming responses
|
|
493
475
|
)
|
|
494
|
-
|
|
495
|
-
print(response)
|
|
496
476
|
```
|
|
497
477
|
|
|
498
|
-
|
|
499
478
|
---
|
|
500
479
|
|
|
501
480
|
## 🤝 Contributing
|
|
@@ -545,7 +524,7 @@ limitations under the License.
|
|
|
545
524
|
|
|
546
525
|
## Contributors ✨
|
|
547
526
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
548
|
-
[](#contributors-)
|
|
549
528
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
550
529
|
|
|
551
530
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
@@ -573,12 +552,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
573
552
|
<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>
|
|
574
553
|
<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>
|
|
575
554
|
</tr>
|
|
576
|
-
<tr>
|
|
577
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ms-cs"><img src="https://avatars.githubusercontent.com/u/43086458?v=4?s=100" width="100px;" alt="zhiyong"/><br /><sub><b>zhiyong</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=ms-cs" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Ams-cs" title="Bug reports">🐛</a></td>
|
|
578
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jooojo"><img src="https://avatars.githubusercontent.com/u/11719425?v=4?s=100" width="100px;" alt="jooojo"/><br /><sub><b>jooojo</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jooojo" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Ajooojo" title="Bug reports">🐛</a></td>
|
|
579
|
-
<td align="center" valign="top" width="14.28%"><a href="http://ceshihao.github.io"><img src="https://avatars.githubusercontent.com/u/7711875?v=4?s=100" width="100px;" alt="Zheng Dayu"/><br /><sub><b>Zheng Dayu</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=ceshihao" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Aceshihao" title="Bug reports">🐛</a></td>
|
|
580
|
-
<td align="center" valign="top" width="14.28%"><a href="http://lokk.cn/about"><img src="https://avatars.githubusercontent.com/u/39740818?v=4?s=100" width="100px;" alt="quanyu"/><br /><sub><b>quanyu</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=taoquanyus" title="Code">💻</a></td>
|
|
581
|
-
</tr>
|
|
582
555
|
</tbody>
|
|
583
556
|
<tfoot>
|
|
584
557
|
<tr>
|
|
@@ -378,45 +378,25 @@ agent = LangGraphAgent(graph=compiled_graph)
|
|
|
378
378
|
|
|
379
379
|
## 🏗️ Deployment
|
|
380
380
|
|
|
381
|
-
The
|
|
382
|
-
The service port is set as the parameter `port` when creating the `LocalDeployManager`.
|
|
383
|
-
The service endpoint path is set as the parameter `endpoint_path` when deploying the agent.
|
|
384
|
-
|
|
385
|
-
The deployer will automatically add common agent protocols, such as **A2A**, **Response API** based on the default endpoint `/process`.
|
|
386
|
-
|
|
387
|
-
In this example, we set the endpoint path to `/process`,
|
|
388
|
-
after deployment, users can access the service at `http://localhost:8090/process`, and can also access the service from OpenAI SDK by Response API.
|
|
381
|
+
The agent runner exposes a `deploy` method that takes a `DeployManager` instance and deploys the agent. The service port is set as the parameter `port` when creating the `LocalDeployManager`. The service endpoint path is set as the parameter `endpoint_path` when deploying the agent. In this example, we set the endpoint path to `/process`. After deployment, you can access the service at `http://localhost:8090/process`.
|
|
389
382
|
|
|
390
383
|
```python
|
|
391
384
|
from agentscope_runtime.engine.deployers import LocalDeployManager
|
|
392
385
|
|
|
393
386
|
# Create deployment manager
|
|
394
|
-
|
|
395
|
-
host="
|
|
387
|
+
deploy_manager = LocalDeployManager(
|
|
388
|
+
host="localhost",
|
|
396
389
|
port=8090,
|
|
397
390
|
)
|
|
398
391
|
|
|
399
|
-
# Deploy the
|
|
400
|
-
deploy_result = await
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
Then user could query the deployment by OpenAI SDK.
|
|
405
|
-
|
|
406
|
-
```python
|
|
407
|
-
from openai import OpenAI
|
|
408
|
-
|
|
409
|
-
client = OpenAI(base_url="http://0.0.0.0:8090/compatible-mode/v1")
|
|
410
|
-
|
|
411
|
-
response = client.responses.create(
|
|
412
|
-
model="any_name",
|
|
413
|
-
input="What is the weather in Beijing?"
|
|
392
|
+
# Deploy the agent as a streaming service
|
|
393
|
+
deploy_result = await runner.deploy(
|
|
394
|
+
deploy_manager=deploy_manager,
|
|
395
|
+
endpoint_path="/process",
|
|
396
|
+
stream=True, # Enable streaming responses
|
|
414
397
|
)
|
|
415
|
-
|
|
416
|
-
print(response)
|
|
417
398
|
```
|
|
418
399
|
|
|
419
|
-
|
|
420
400
|
---
|
|
421
401
|
|
|
422
402
|
## 🤝 Contributing
|
|
@@ -466,7 +446,7 @@ limitations under the License.
|
|
|
466
446
|
|
|
467
447
|
## Contributors ✨
|
|
468
448
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
469
|
-
[](#contributors-)
|
|
470
450
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
471
451
|
|
|
472
452
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
@@ -494,12 +474,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
494
474
|
<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>
|
|
495
475
|
<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>
|
|
496
476
|
</tr>
|
|
497
|
-
<tr>
|
|
498
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ms-cs"><img src="https://avatars.githubusercontent.com/u/43086458?v=4?s=100" width="100px;" alt="zhiyong"/><br /><sub><b>zhiyong</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=ms-cs" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Ams-cs" title="Bug reports">🐛</a></td>
|
|
499
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jooojo"><img src="https://avatars.githubusercontent.com/u/11719425?v=4?s=100" width="100px;" alt="jooojo"/><br /><sub><b>jooojo</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=jooojo" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Ajooojo" title="Bug reports">🐛</a></td>
|
|
500
|
-
<td align="center" valign="top" width="14.28%"><a href="http://ceshihao.github.io"><img src="https://avatars.githubusercontent.com/u/7711875?v=4?s=100" width="100px;" alt="Zheng Dayu"/><br /><sub><b>Zheng Dayu</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=ceshihao" title="Code">💻</a> <a href="https://github.com/agentscope-ai/agentscope-runtime/issues?q=author%3Aceshihao" title="Bug reports">🐛</a></td>
|
|
501
|
-
<td align="center" valign="top" width="14.28%"><a href="http://lokk.cn/about"><img src="https://avatars.githubusercontent.com/u/39740818?v=4?s=100" width="100px;" alt="quanyu"/><br /><sub><b>quanyu</b></sub></a><br /><a href="https://github.com/agentscope-ai/agentscope-runtime/commits?author=taoquanyus" title="Code">💻</a></td>
|
|
502
|
-
</tr>
|
|
503
477
|
</tbody>
|
|
504
478
|
<tfoot>
|
|
505
479
|
<tr>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "agentscope-runtime"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.0b1"
|
|
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"
|
|
@@ -50,7 +50,6 @@ dev = [
|
|
|
50
50
|
"pytest-cov>=6.2.1",
|
|
51
51
|
"fakeredis>=2.31.0",
|
|
52
52
|
"sphinx-autoapi>=3.6.0",
|
|
53
|
-
"pytest-mock>=3.15.1",
|
|
54
53
|
]
|
|
55
54
|
|
|
56
55
|
langgraph = [
|
|
@@ -58,7 +57,7 @@ langgraph = [
|
|
|
58
57
|
]
|
|
59
58
|
|
|
60
59
|
agno = [
|
|
61
|
-
"agno>=2.0.0",
|
|
60
|
+
"agno>=1.7.5,<2.0.0",
|
|
62
61
|
]
|
|
63
62
|
autogen = [
|
|
64
63
|
"autogen-agentchat>=0.7.4",
|
|
@@ -101,7 +100,7 @@ memory-ext = [
|
|
|
101
100
|
|
|
102
101
|
deployment = [
|
|
103
102
|
"alibabacloud-oss-v2",
|
|
104
|
-
"alibabacloud-bailian20231229>=2.
|
|
103
|
+
"alibabacloud-bailian20231229>=2.5.0",
|
|
105
104
|
"build",
|
|
106
105
|
"setuptools>=40.8.0",
|
|
107
106
|
"wheel",
|
|
@@ -112,4 +111,4 @@ deployment = [
|
|
|
112
111
|
"shortuuid>=1.0.13",
|
|
113
112
|
"PyYAML",
|
|
114
113
|
"oss2>=2.19.1"
|
|
115
|
-
]
|
|
114
|
+
]
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# pylint: disable=too-many-branches,
|
|
3
|
-
|
|
2
|
+
# pylint: disable=too-many-branches, self-assigning-variable
|
|
3
|
+
# pylint: disable=too-many-statements
|
|
4
|
+
|
|
4
5
|
import hashlib
|
|
5
|
-
import traceback
|
|
6
6
|
import logging
|
|
7
|
-
|
|
7
|
+
import time
|
|
8
|
+
import traceback
|
|
8
9
|
from typing import Optional, Tuple
|
|
9
10
|
|
|
10
11
|
from kubernetes import client
|
|
@@ -15,12 +16,14 @@ from .base_client import BaseClient
|
|
|
15
16
|
|
|
16
17
|
logger = logging.getLogger(__name__)
|
|
17
18
|
|
|
19
|
+
DEFAULT_IMAGE_REGISTRY = "agentscope-registry.ap-southeast-1.cr.aliyuncs.com"
|
|
20
|
+
|
|
18
21
|
|
|
19
22
|
class KubernetesClient(BaseClient):
|
|
20
23
|
def __init__(
|
|
21
24
|
self,
|
|
22
25
|
config=None,
|
|
23
|
-
image_registry: Optional[str] =
|
|
26
|
+
image_registry: Optional[str] = DEFAULT_IMAGE_REGISTRY,
|
|
24
27
|
):
|
|
25
28
|
self.config = config
|
|
26
29
|
namespace = self.config.k8s_namespace
|
|
@@ -154,7 +157,11 @@ class KubernetesClient(BaseClient):
|
|
|
154
157
|
container_name = name or "main-container"
|
|
155
158
|
|
|
156
159
|
# Container specification
|
|
157
|
-
|
|
160
|
+
# TODO: use image from docker registry first
|
|
161
|
+
|
|
162
|
+
if not self.image_registry:
|
|
163
|
+
image = image
|
|
164
|
+
else:
|
|
158
165
|
image = f"{self.image_registry}/{image}"
|
|
159
166
|
|
|
160
167
|
container = client.V1Container(
|
|
@@ -7,7 +7,6 @@ import json
|
|
|
7
7
|
import traceback
|
|
8
8
|
from functools import partial
|
|
9
9
|
from typing import Optional, Type, List
|
|
10
|
-
from urllib.parse import urlparse
|
|
11
10
|
|
|
12
11
|
from agentscope import setup_logger
|
|
13
12
|
from agentscope.agent import AgentBase, ReActAgent
|
|
@@ -25,7 +24,6 @@ from agentscope.message import (
|
|
|
25
24
|
ToolUseBlock,
|
|
26
25
|
ToolResultBlock,
|
|
27
26
|
TextBlock,
|
|
28
|
-
ThinkingBlock,
|
|
29
27
|
ImageBlock,
|
|
30
28
|
AudioBlock,
|
|
31
29
|
# VideoBlock, # TODO: support
|
|
@@ -57,7 +55,6 @@ from ..schemas.agent_schemas import (
|
|
|
57
55
|
FunctionCall,
|
|
58
56
|
FunctionCallOutput,
|
|
59
57
|
MessageType,
|
|
60
|
-
RunStatus,
|
|
61
58
|
)
|
|
62
59
|
from ..schemas.context import Context
|
|
63
60
|
|
|
@@ -104,7 +101,7 @@ class AgentScopeContextAdapter:
|
|
|
104
101
|
role_label = message.role
|
|
105
102
|
|
|
106
103
|
result = {
|
|
107
|
-
"name": message.role,
|
|
104
|
+
"name": message.role,
|
|
108
105
|
"role": role_label,
|
|
109
106
|
"invocation_id": message.id,
|
|
110
107
|
}
|
|
@@ -118,7 +115,7 @@ class AgentScopeContextAdapter:
|
|
|
118
115
|
ToolUseBlock(
|
|
119
116
|
type="tool_use",
|
|
120
117
|
id=message.content[0].data["call_id"],
|
|
121
|
-
name=message.
|
|
118
|
+
name=message.role,
|
|
122
119
|
input=json.loads(message.content[0].data["arguments"]),
|
|
123
120
|
),
|
|
124
121
|
]
|
|
@@ -132,15 +129,8 @@ class AgentScopeContextAdapter:
|
|
|
132
129
|
ToolResultBlock(
|
|
133
130
|
type="tool_result",
|
|
134
131
|
id=message.content[0].data["call_id"],
|
|
135
|
-
name=message.role,
|
|
136
|
-
output=
|
|
137
|
-
),
|
|
138
|
-
]
|
|
139
|
-
elif message.type in (MessageType.REASONING,):
|
|
140
|
-
result["content"] = [
|
|
141
|
-
ThinkingBlock(
|
|
142
|
-
type="thinking",
|
|
143
|
-
thinking=message.content[0].text,
|
|
132
|
+
name=message.role,
|
|
133
|
+
output=message.content[0].data["output"],
|
|
144
134
|
),
|
|
145
135
|
]
|
|
146
136
|
else:
|
|
@@ -161,6 +151,8 @@ class AgentScopeContextAdapter:
|
|
|
161
151
|
block_cls, attr_name, is_url = type_mapping[cnt_type]
|
|
162
152
|
value = getattr(cnt, attr_name)
|
|
163
153
|
if cnt_type == "audio":
|
|
154
|
+
from urllib.parse import urlparse
|
|
155
|
+
|
|
164
156
|
result = urlparse(value)
|
|
165
157
|
is_url = all([result.scheme, result.netloc])
|
|
166
158
|
if is_url:
|
|
@@ -340,7 +332,6 @@ class AgentScopeAgent(Agent):
|
|
|
340
332
|
as_context = AgentScopeContextAdapter(context=context, attr=self._attr)
|
|
341
333
|
await as_context.initialize()
|
|
342
334
|
local_truncate_memory = ""
|
|
343
|
-
local_truncate_reasoning_memory = ""
|
|
344
335
|
|
|
345
336
|
# We should always build a new agent since the state is manage outside
|
|
346
337
|
# the agent
|
|
@@ -350,14 +341,7 @@ class AgentScopeAgent(Agent):
|
|
|
350
341
|
last_content = ""
|
|
351
342
|
|
|
352
343
|
message = Message(type=MessageType.MESSAGE, role="assistant")
|
|
353
|
-
reasoning_message = Message(
|
|
354
|
-
type=MessageType.REASONING,
|
|
355
|
-
role="assistant",
|
|
356
|
-
)
|
|
357
|
-
|
|
358
344
|
should_start_message = True
|
|
359
|
-
should_start_reasoning_message = True
|
|
360
|
-
|
|
361
345
|
index = None
|
|
362
346
|
|
|
363
347
|
# Run agent
|
|
@@ -389,7 +373,6 @@ class AgentScopeAgent(Agent):
|
|
|
389
373
|
for element in content:
|
|
390
374
|
if isinstance(element, str) and element:
|
|
391
375
|
if should_start_message:
|
|
392
|
-
index = None
|
|
393
376
|
yield message.in_progress()
|
|
394
377
|
should_start_message = False
|
|
395
378
|
text_delta_content = TextContent(
|
|
@@ -410,10 +393,8 @@ class AgentScopeAgent(Agent):
|
|
|
410
393
|
)
|
|
411
394
|
if text:
|
|
412
395
|
if should_start_message:
|
|
413
|
-
index = None
|
|
414
396
|
yield message.in_progress()
|
|
415
397
|
should_start_message = False
|
|
416
|
-
|
|
417
398
|
text_delta_content = TextContent(
|
|
418
399
|
delta=True,
|
|
419
400
|
index=index,
|
|
@@ -441,20 +422,8 @@ class AgentScopeAgent(Agent):
|
|
|
441
422
|
role="assistant",
|
|
442
423
|
)
|
|
443
424
|
index = None
|
|
444
|
-
should_start_message = True
|
|
445
425
|
|
|
446
426
|
elif element.get("type") == "tool_use":
|
|
447
|
-
if (
|
|
448
|
-
reasoning_message.status
|
|
449
|
-
== RunStatus.InProgress
|
|
450
|
-
):
|
|
451
|
-
yield reasoning_message.completed()
|
|
452
|
-
reasoning_message = Message(
|
|
453
|
-
type=MessageType.REASONING,
|
|
454
|
-
role="assistant",
|
|
455
|
-
)
|
|
456
|
-
index = None
|
|
457
|
-
|
|
458
427
|
json_str = json.dumps(element.get("input"))
|
|
459
428
|
data_delta_content = DataContent(
|
|
460
429
|
index=index,
|
|
@@ -470,15 +439,12 @@ class AgentScopeAgent(Agent):
|
|
|
470
439
|
content=[data_delta_content],
|
|
471
440
|
)
|
|
472
441
|
yield plugin_call_message.completed()
|
|
473
|
-
index = None
|
|
474
|
-
|
|
475
442
|
elif element.get("type") == "tool_result":
|
|
476
|
-
json_str = json.dumps(element.get("output"))
|
|
477
443
|
data_delta_content = DataContent(
|
|
478
444
|
index=index,
|
|
479
445
|
data=FunctionCallOutput(
|
|
480
446
|
call_id=element.get("id"),
|
|
481
|
-
output=
|
|
447
|
+
output=str(element.get("output")),
|
|
482
448
|
).model_dump(),
|
|
483
449
|
)
|
|
484
450
|
plugin_output_message = Message(
|
|
@@ -492,54 +458,10 @@ class AgentScopeAgent(Agent):
|
|
|
492
458
|
role="assistant",
|
|
493
459
|
)
|
|
494
460
|
should_start_message = True
|
|
495
|
-
index = None
|
|
496
|
-
|
|
497
|
-
elif element.get("type") == "thinking":
|
|
498
|
-
reasoning = element.get(
|
|
499
|
-
"thinking",
|
|
500
|
-
"",
|
|
501
|
-
)
|
|
502
|
-
if reasoning:
|
|
503
|
-
if should_start_reasoning_message:
|
|
504
|
-
index = None
|
|
505
|
-
yield reasoning_message.in_progress()
|
|
506
|
-
should_start_reasoning_message = False
|
|
507
|
-
text_delta_content = TextContent(
|
|
508
|
-
delta=True,
|
|
509
|
-
index=index,
|
|
510
|
-
text=reasoning.removeprefix(
|
|
511
|
-
local_truncate_reasoning_memory,
|
|
512
|
-
),
|
|
513
|
-
)
|
|
514
|
-
local_truncate_reasoning_memory = element.get(
|
|
515
|
-
"thinking",
|
|
516
|
-
"",
|
|
517
|
-
)
|
|
518
|
-
text_delta_content = (
|
|
519
|
-
reasoning_message.add_delta_content(
|
|
520
|
-
new_content=text_delta_content,
|
|
521
|
-
)
|
|
522
|
-
)
|
|
523
|
-
index = text_delta_content.index
|
|
524
|
-
|
|
525
|
-
# Only yield valid text
|
|
526
|
-
if text_delta_content.text:
|
|
527
|
-
yield text_delta_content
|
|
528
|
-
|
|
529
|
-
# The last won't happen in the thinking message
|
|
530
|
-
if last:
|
|
531
|
-
yield reasoning_message.completed()
|
|
532
|
-
reasoning_message = Message(
|
|
533
|
-
type=MessageType.REASONING,
|
|
534
|
-
role="assistant",
|
|
535
|
-
)
|
|
536
|
-
index = None
|
|
537
461
|
else:
|
|
538
462
|
if should_start_message:
|
|
539
|
-
index = None
|
|
540
463
|
yield message.in_progress()
|
|
541
464
|
should_start_message = False
|
|
542
|
-
|
|
543
465
|
text_delta_content = TextContent(
|
|
544
466
|
delta=True,
|
|
545
467
|
index=index,
|
|
@@ -553,7 +475,6 @@ class AgentScopeAgent(Agent):
|
|
|
553
475
|
|
|
554
476
|
if last_content:
|
|
555
477
|
if should_start_message:
|
|
556
|
-
index = None
|
|
557
478
|
yield message.in_progress()
|
|
558
479
|
text_delta_content = TextContent(
|
|
559
480
|
delta=True,
|
|
@@ -5,8 +5,8 @@ from typing import Optional, Type
|
|
|
5
5
|
|
|
6
6
|
from agno.agent import Agent as AgAgent
|
|
7
7
|
from agno.models.base import Model
|
|
8
|
-
from agno.run.
|
|
9
|
-
|
|
8
|
+
from agno.run.response import (
|
|
9
|
+
RunResponseContentEvent,
|
|
10
10
|
ToolCallStartedEvent,
|
|
11
11
|
ToolCallCompletedEvent,
|
|
12
12
|
)
|
|
@@ -163,6 +163,12 @@ class AgnoAgent(Agent):
|
|
|
163
163
|
# the agent
|
|
164
164
|
_agent = self.build(ag_context)
|
|
165
165
|
|
|
166
|
+
resp = await _agent.arun(
|
|
167
|
+
ag_context.new_message,
|
|
168
|
+
messages=ag_context.memory,
|
|
169
|
+
stream=True,
|
|
170
|
+
)
|
|
171
|
+
|
|
166
172
|
text_message = Message(
|
|
167
173
|
type=MessageType.MESSAGE,
|
|
168
174
|
role="assistant",
|
|
@@ -172,12 +178,8 @@ class AgnoAgent(Agent):
|
|
|
172
178
|
|
|
173
179
|
text_delta_content = TextContent(delta=True)
|
|
174
180
|
is_text_delta = False
|
|
175
|
-
async for event in
|
|
176
|
-
|
|
177
|
-
session_state=ag_context.memory,
|
|
178
|
-
stream=True,
|
|
179
|
-
):
|
|
180
|
-
if isinstance(event, RunContentEvent):
|
|
181
|
+
async for event in resp:
|
|
182
|
+
if isinstance(event, RunResponseContentEvent):
|
|
181
183
|
is_text_delta = True
|
|
182
184
|
text_delta_content.text = event.content
|
|
183
185
|
text_delta_content = text_message.add_delta_content(
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
import json
|
|
3
|
+
|
|
4
|
+
from langgraph.graph.state import CompiledStateGraph
|
|
5
|
+
|
|
6
|
+
from .base_agent import Agent
|
|
7
|
+
from ..schemas.agent_schemas import (
|
|
8
|
+
Message,
|
|
9
|
+
TextContent,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _state_folder(messages):
|
|
14
|
+
if len(messages) > 0:
|
|
15
|
+
return json.loads(messages[0]["content"])
|
|
16
|
+
else:
|
|
17
|
+
return []
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def _state_unfolder(state):
|
|
21
|
+
state_jsons = json.dumps(state)
|
|
22
|
+
return state_jsons
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class LangGraphAgent(Agent):
|
|
26
|
+
def __init__(
|
|
27
|
+
self,
|
|
28
|
+
graph: CompiledStateGraph = None,
|
|
29
|
+
state_folder=_state_folder,
|
|
30
|
+
state_unfolder=_state_unfolder,
|
|
31
|
+
**kwargs,
|
|
32
|
+
):
|
|
33
|
+
super().__init__(**kwargs)
|
|
34
|
+
self.state_folder = state_folder
|
|
35
|
+
self.state_unfolder = state_unfolder
|
|
36
|
+
self.graph = graph
|
|
37
|
+
|
|
38
|
+
async def run_async(
|
|
39
|
+
self,
|
|
40
|
+
context,
|
|
41
|
+
**kwargs,
|
|
42
|
+
):
|
|
43
|
+
# fold the last m
|
|
44
|
+
list_messages = []
|
|
45
|
+
for m in context.session.messages:
|
|
46
|
+
dumped = m.model_dump()
|
|
47
|
+
dumped["content"] = dumped["content"][0]["text"]
|
|
48
|
+
list_messages.append(dumped)
|
|
49
|
+
|
|
50
|
+
_input = self.state_folder(list_messages)
|
|
51
|
+
|
|
52
|
+
output = await self.graph.ainvoke(_input)
|
|
53
|
+
content = self.state_unfolder(output)
|
|
54
|
+
|
|
55
|
+
message = Message(role="assistant")
|
|
56
|
+
text = TextContent(type="text", text=content)
|
|
57
|
+
message.add_content(text)
|
|
58
|
+
message.completed()
|
|
59
|
+
yield message
|
|
@@ -71,10 +71,6 @@ from openai.types.responses.response_reasoning_item import (
|
|
|
71
71
|
ResponseReasoningItem,
|
|
72
72
|
)
|
|
73
73
|
|
|
74
|
-
from openai.types.responses.response_reasoning_item import (
|
|
75
|
-
Content as ReasoningContent,
|
|
76
|
-
)
|
|
77
|
-
|
|
78
74
|
from agentscope_runtime.engine.schemas.agent_schemas import (
|
|
79
75
|
AgentRequest,
|
|
80
76
|
BaseResponse,
|
|
@@ -1403,7 +1399,7 @@ class ResponsesAdapter:
|
|
|
1403
1399
|
id=message.id,
|
|
1404
1400
|
summary=[], # Empty summary
|
|
1405
1401
|
content=(
|
|
1406
|
-
[
|
|
1402
|
+
[Content(type="reasoning_text", text=reasoning_text)]
|
|
1407
1403
|
if reasoning_text
|
|
1408
1404
|
else None
|
|
1409
1405
|
),
|