agentkit-sdk-python 0.8.6__tar.gz → 0.8.7__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.
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/PKG-INFO +1 -1
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/admin.py +9 -3
- agentkit_sdk_python-0.8.7/agentkit/sdk/runtime/gateway.py +90 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/runtime/types.py +22 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/tools/client.py +20 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/tools/types.py +54 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_config.py +14 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_runtime.py +144 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_tools.py +15 -2
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/agentkit_client.py +18 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/config_handler.py +14 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/strategy_configs.py +52 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/runners/ve_agentkit.py +68 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/strategies/cloud_strategy.py +14 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/strategies/hybrid_strategy.py +14 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/version.py +1 -1
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_sdk_python.egg-info/PKG-INFO +1 -1
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_sdk_python.egg-info/SOURCES.txt +1 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/pyproject.toml +1 -1
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/LICENSE +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/MANIFEST.in +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/README.md +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/a2a_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/a2a_app/a2a_app.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/a2a_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/agent_server_app.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/credential_service.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/inbound_auth.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/inbound_auth_adapter.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/middleware.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/origin.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/agent_server_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/auth/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/auth/inbound.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/base_app.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/langgraph_server_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/langgraph_server_app/langgraph_server_app.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/mcp_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/mcp_app/mcp_app.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/mcp_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/simple_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/simple_app/simple_app.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/simple_app/simple_app_handlers.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/simple_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/apps/utils.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/_openapi.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/_redact.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/_sigv4.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/credential_hosting.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/errors.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/model_login.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/oauth.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/profile.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/providers.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/resolve.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/session.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/ssl_trust.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/sso.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/store.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/auth/sts.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/client/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/client/base_agentkit_client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/client/base_iam_client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/client/base_service_client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/errors.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/_common.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/agentcore.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/langchain.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/langgraph.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/migration.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/model_replacement.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/serving/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/serving/fastapi_mount.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/serving/langserve.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/frameworks/strands.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/_runtime_dependency.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/context.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/errors.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/jwt.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/middleware.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/runtime.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/transport.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/identity/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/platform/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/platform/configuration.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/platform/console_urls.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/platform/constants.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/platform/context.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/platform/provider.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/account/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/account/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/identity/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/identity/auth.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/identity/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/identity/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/knowledge/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/knowledge/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/knowledge/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/mcp/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/mcp/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/mcp/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/memory/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/memory/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/memory/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/model_gateway/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/model_gateway/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/model_gateway/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/runtime/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/runtime/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/skills/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/skills/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/skills/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/sdk/tools/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/builders/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/builders/base.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/builders/local_docker.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/builders/ve_pipeline.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/builders/ve_sandbox_pipeline.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/__main__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_add.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_auth.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_build.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_delete.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_deploy.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_destroy.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_init.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_invoke.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_knowledge.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_launch.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_list.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_logs.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_memory.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_model_gateway.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_skill.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_skills.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_skills_workflow.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_status.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/cli_version.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/console_reporter.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/interactive_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/a2a_client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_build.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_create.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_delete.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_exec.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_init.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_invoke.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_list.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_model_login.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_mount.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_run.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_scp.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_shell.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/cli_web.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/config_store.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/env_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/git_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/model_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/sandbox_client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/session_create.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/session_sync.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/tool_resolve.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/sandbox/tos_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/tool_lookup.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/cli/utils.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/choice_resolvers.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/cloud_provider.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/config_validator.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/constants.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/dataclass_utils.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/docker_build_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/global_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/region_defaults.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/region_resolver.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/config/utils.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/context.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/base_images.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/container.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/dockerfile/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/dockerfile/manager.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/dockerfile/metadata.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/docker/utils.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/errors.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/base_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/build_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/deploy_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/init_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/invoke_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/lifecycle_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/executors/status_executor.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/harness/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/harness/config_builder.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/harness/deploy.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/harness/env_mapping.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/models.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/reporter.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/a2a.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/agent_server.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/basic.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/basic_stream.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/customer_support_assistant.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/eino_a2a/agent.go +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/eino_a2a/build.sh +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/eino_a2a/go.mod +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/eino_a2a/go.sum +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/eino_a2a/main.go +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/financial_analyst.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/langchain_basic_stream.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/simple_app_veadk.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/simple_mcp_veadk.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_a2a/agent.go +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_a2a/build.sh +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_a2a/go.mod +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_a2a/go.sum +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_a2a/main.go +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_basic/agent.go +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_basic/build.sh +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_basic/go.mod +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_basic/go.sum +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/samples/veadk_go_basic/main.go +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/code-pipeline-sandbox-tos-cr-step.j2 +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/code-pipeline-tos-cr-step.j2 +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/golang/Dockerfile.j2 +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/python/Dockerfile.j2 +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/sandbox/Dockerfile.install-package +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/sandbox/Dockerfile.install-skills +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/templates/sandbox/Dockerfile.web-server +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/wrappers/wrapper_basic.py.jinja2 +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/resources/wrappers/wrapper_stream.py.jinja2 +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/runners/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/runners/base.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/runners/local_docker.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/bindings/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/bindings/memory.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/builder.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/client.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/deployer.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/initializer.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/invoker.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/lifecycle.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/sdk/status.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/strategies/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/strategies/base_strategy.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/strategies/local_strategy.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/utils/agent_parser.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/apmplus_logs.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/code_pipeline.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/cr.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/iam.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/services/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/services/cr_service.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/services/tos_service.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/sts.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/toolkit/volcengine/utils/project_archiver.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/global_config_io.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/http_defaults.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/logging_config.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/misc.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/redact.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/request.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/template_utils.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit/utils/ve_sign.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/__init__.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/context.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/errors.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/jwt.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/middleware.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/py.typed +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/runtime.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/transport.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_identity/types.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_sdk_python.egg-info/dependency_links.txt +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_sdk_python.egg-info/entry_points.txt +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_sdk_python.egg-info/requires.txt +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/agentkit_sdk_python.egg-info/top_level.txt +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/setup.cfg +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/tests/test_client_uses_platform_context.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/tests/test_error_hierarchy.py +0 -0
- {agentkit_sdk_python-0.8.6 → agentkit_sdk_python-0.8.7}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentkit-sdk-python
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.7
|
|
4
4
|
Summary: Python SDK for transforming any AI agent into a production-ready application. Framework-agnostic primitives for runtime, memory, authentication, and tools with volcengine-managed infrastructure.
|
|
5
5
|
Author-email: Xiangrui Cheng <innsdcc@gmail.com>, Yumeng Bao <baoyumeng.123@gmail.com>, Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -47,9 +47,15 @@ POLICY_NAME = "agentkit_cli_sandbox_access"
|
|
|
47
47
|
SANDBOX_ACCESS_POLICY = "AgentKitSandboxAccess"
|
|
48
48
|
WELL_KNOWN_KEY = ".well-known/agentkit-cli"
|
|
49
49
|
ROLE_ACTIONS = (
|
|
50
|
-
"agentkit:CreateSession",
|
|
51
|
-
"agentkit:
|
|
52
|
-
"agentkit:
|
|
50
|
+
"agentkit:CreateSession",
|
|
51
|
+
"agentkit:GetSession",
|
|
52
|
+
"agentkit:DeleteSession",
|
|
53
|
+
"agentkit:PauseSession",
|
|
54
|
+
"agentkit:ResumeSession",
|
|
55
|
+
"agentkit:GetSessionLogs",
|
|
56
|
+
"agentkit:SetSessionTtl",
|
|
57
|
+
"agentkit:ListTools",
|
|
58
|
+
"agentkit:GetTool",
|
|
53
59
|
)
|
|
54
60
|
|
|
55
61
|
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
from typing import Any, Optional
|
|
18
|
+
|
|
19
|
+
RUNTIME_GATEWAY_MODES = {"Shared", "Exclusive"}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def normalize_runtime_gateway_mode(
|
|
23
|
+
value: Any,
|
|
24
|
+
label: str = "runtime.gateway_mode",
|
|
25
|
+
) -> Optional[str]:
|
|
26
|
+
if value is None or value == "":
|
|
27
|
+
return None
|
|
28
|
+
if not isinstance(value, str):
|
|
29
|
+
raise ValueError(f"{label} must be Shared or Exclusive.")
|
|
30
|
+
|
|
31
|
+
normalized = value.strip().lower()
|
|
32
|
+
if normalized == "shared":
|
|
33
|
+
return "Shared"
|
|
34
|
+
if normalized == "exclusive":
|
|
35
|
+
return "Exclusive"
|
|
36
|
+
raise ValueError(f"{label} must be Shared or Exclusive.")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def effective_runtime_gateway_mode(mode: Optional[str]) -> str:
|
|
40
|
+
return str(mode).strip() if mode and str(mode).strip() else "Shared"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def validate_runtime_gateway_create_config(
|
|
44
|
+
*,
|
|
45
|
+
gateway_mode: Optional[str],
|
|
46
|
+
gateway_instance_id: Optional[str],
|
|
47
|
+
has_network_configuration: bool = False,
|
|
48
|
+
label: str = "runtime",
|
|
49
|
+
) -> None:
|
|
50
|
+
mode = (
|
|
51
|
+
normalize_runtime_gateway_mode(gateway_mode, f"{label}.gateway_mode")
|
|
52
|
+
or "Shared"
|
|
53
|
+
)
|
|
54
|
+
gateway_instance_id = (gateway_instance_id or "").strip()
|
|
55
|
+
|
|
56
|
+
if mode == "Exclusive":
|
|
57
|
+
if not gateway_instance_id:
|
|
58
|
+
raise ValueError(
|
|
59
|
+
f"{label}.gateway_instance_id is required when gateway_mode is Exclusive."
|
|
60
|
+
)
|
|
61
|
+
if has_network_configuration:
|
|
62
|
+
raise ValueError(
|
|
63
|
+
f"{label}.network cannot be used when gateway_mode is Exclusive; "
|
|
64
|
+
"the Runtime follows the selected gateway instance network."
|
|
65
|
+
)
|
|
66
|
+
return
|
|
67
|
+
|
|
68
|
+
if gateway_instance_id:
|
|
69
|
+
raise ValueError(
|
|
70
|
+
f"{label}.gateway_instance_id is only valid when gateway_mode is Exclusive."
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def runtime_gateway_binding_changed(
|
|
75
|
+
*,
|
|
76
|
+
desired_mode: Optional[str],
|
|
77
|
+
desired_instance_id: Optional[str],
|
|
78
|
+
current_mode: Optional[str],
|
|
79
|
+
current_instance_id: Optional[str],
|
|
80
|
+
) -> bool:
|
|
81
|
+
desired_mode = effective_runtime_gateway_mode(desired_mode)
|
|
82
|
+
current_mode = effective_runtime_gateway_mode(current_mode)
|
|
83
|
+
|
|
84
|
+
if desired_mode not in RUNTIME_GATEWAY_MODES or current_mode not in RUNTIME_GATEWAY_MODES:
|
|
85
|
+
return desired_mode != current_mode
|
|
86
|
+
if desired_mode != current_mode:
|
|
87
|
+
return True
|
|
88
|
+
if desired_mode != "Exclusive":
|
|
89
|
+
return False
|
|
90
|
+
return (desired_instance_id or "").strip() != (current_instance_id or "").strip()
|
|
@@ -40,6 +40,11 @@ class AgentKitRuntimeVersionsForListRuntimeVersions(RuntimeTypeBaseModel):
|
|
|
40
40
|
created_at: Optional[str] = Field(default=None, alias="CreatedAt")
|
|
41
41
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
42
42
|
envs: Optional[list[EnvsForListRuntimeVersions]] = Field(default=None, alias="Envs")
|
|
43
|
+
gateway_instance_id: Optional[str] = Field(default=None, alias="GatewayInstanceId")
|
|
44
|
+
gateway_instance_name: Optional[str] = Field(
|
|
45
|
+
default=None, alias="GatewayInstanceName"
|
|
46
|
+
)
|
|
47
|
+
gateway_mode: Optional[str] = Field(default=None, alias="GatewayMode")
|
|
43
48
|
memory_mb: Optional[int] = Field(default=None, alias="MemoryMb")
|
|
44
49
|
role_name: Optional[str] = Field(default=None, alias="RoleName")
|
|
45
50
|
runtime_id: Optional[str] = Field(default=None, alias="RuntimeId")
|
|
@@ -63,6 +68,11 @@ class AgentKitRuntimesForListRuntimes(RuntimeTypeBaseModel):
|
|
|
63
68
|
)
|
|
64
69
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
65
70
|
envs: Optional[list[EnvsForListRuntimes]] = Field(default=None, alias="Envs")
|
|
71
|
+
gateway_instance_id: Optional[str] = Field(default=None, alias="GatewayInstanceId")
|
|
72
|
+
gateway_instance_name: Optional[str] = Field(
|
|
73
|
+
default=None, alias="GatewayInstanceName"
|
|
74
|
+
)
|
|
75
|
+
gateway_mode: Optional[str] = Field(default=None, alias="GatewayMode")
|
|
66
76
|
knowledge_id: Optional[str] = Field(default=None, alias="KnowledgeId")
|
|
67
77
|
mcp_toolset_id: Optional[str] = Field(default=None, alias="MCPToolsetId")
|
|
68
78
|
memory_id: Optional[str] = Field(default=None, alias="MemoryId")
|
|
@@ -326,6 +336,8 @@ class CreateRuntimeRequest(RuntimeTypeBaseModel):
|
|
|
326
336
|
client_token: Optional[str] = Field(default=None, alias="ClientToken")
|
|
327
337
|
cpu_milli: Optional[int] = Field(default=None, alias="CpuMilli")
|
|
328
338
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
339
|
+
gateway_instance_id: Optional[str] = Field(default=None, alias="GatewayInstanceId")
|
|
340
|
+
gateway_mode: Optional[str] = Field(default=None, alias="GatewayMode")
|
|
329
341
|
knowledge_id: Optional[str] = Field(default=None, alias="KnowledgeId")
|
|
330
342
|
mcp_toolset_id: Optional[str] = Field(default=None, alias="MCPToolsetId")
|
|
331
343
|
max_concurrency: Optional[int] = Field(default=None, alias="MaxConcurrency")
|
|
@@ -388,6 +400,11 @@ class GetRuntimeResponse(RuntimeTypeBaseModel):
|
|
|
388
400
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
389
401
|
envs: Optional[list[EnvsForGetRuntime]] = Field(default=None, alias="Envs")
|
|
390
402
|
failed_log_file_url: Optional[str] = Field(default=None, alias="FailedLogFileUrl")
|
|
403
|
+
gateway_instance_id: Optional[str] = Field(default=None, alias="GatewayInstanceId")
|
|
404
|
+
gateway_instance_name: Optional[str] = Field(
|
|
405
|
+
default=None, alias="GatewayInstanceName"
|
|
406
|
+
)
|
|
407
|
+
gateway_mode: Optional[str] = Field(default=None, alias="GatewayMode")
|
|
391
408
|
knowledge_id: Optional[str] = Field(default=None, alias="KnowledgeId")
|
|
392
409
|
mcp_toolset_id: Optional[str] = Field(default=None, alias="MCPToolsetId")
|
|
393
410
|
max_concurrency: Optional[int] = Field(default=None, alias="MaxConcurrency")
|
|
@@ -455,6 +472,11 @@ class GetRuntimeVersionResponse(RuntimeTypeBaseModel):
|
|
|
455
472
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
456
473
|
endpoint: Optional[str] = Field(default=None, alias="Endpoint")
|
|
457
474
|
envs: Optional[list[EnvsForGetRuntimeVersion]] = Field(default=None, alias="Envs")
|
|
475
|
+
gateway_instance_id: Optional[str] = Field(default=None, alias="GatewayInstanceId")
|
|
476
|
+
gateway_instance_name: Optional[str] = Field(
|
|
477
|
+
default=None, alias="GatewayInstanceName"
|
|
478
|
+
)
|
|
479
|
+
gateway_mode: Optional[str] = Field(default=None, alias="GatewayMode")
|
|
458
480
|
max_concurrency: Optional[int] = Field(default=None, alias="MaxConcurrency")
|
|
459
481
|
memory_mb: Optional[int] = Field(default=None, alias="MemoryMb")
|
|
460
482
|
model_agent_name: Optional[str] = Field(default=None, alias="ModelAgentName")
|
|
@@ -46,6 +46,10 @@ from .types import (
|
|
|
46
46
|
ListSessionsResponse,
|
|
47
47
|
ListToolsRequest,
|
|
48
48
|
ListToolsResponse,
|
|
49
|
+
PauseSessionRequest,
|
|
50
|
+
PauseSessionResponse,
|
|
51
|
+
ResumeSessionRequest,
|
|
52
|
+
ResumeSessionResponse,
|
|
49
53
|
ResumeSessionFromSnapshotRequest,
|
|
50
54
|
ResumeSessionFromSnapshotResponse,
|
|
51
55
|
SetSessionTtlRequest,
|
|
@@ -72,6 +76,8 @@ class AgentkitToolsClient(BaseAgentkitClient):
|
|
|
72
76
|
"ListSessionSnapshots": "ListSessionSnapshots",
|
|
73
77
|
"ListSessions": "ListSessions",
|
|
74
78
|
"ListTools": "ListTools",
|
|
79
|
+
"PauseSession": "PauseSession",
|
|
80
|
+
"ResumeSession": "ResumeSession",
|
|
75
81
|
"ResumeSessionFromSnapshot": "ResumeSessionFromSnapshot",
|
|
76
82
|
"SetSessionTtl": "SetSessionTtl",
|
|
77
83
|
"UpdateTool": "UpdateTool",
|
|
@@ -193,6 +199,20 @@ class AgentkitToolsClient(BaseAgentkitClient):
|
|
|
193
199
|
response_type=ListToolsResponse,
|
|
194
200
|
)
|
|
195
201
|
|
|
202
|
+
def pause_session(self, request: PauseSessionRequest) -> PauseSessionResponse:
|
|
203
|
+
return self._invoke_api(
|
|
204
|
+
api_action="PauseSession",
|
|
205
|
+
request=request,
|
|
206
|
+
response_type=PauseSessionResponse,
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
def resume_session(self, request: ResumeSessionRequest) -> ResumeSessionResponse:
|
|
210
|
+
return self._invoke_api(
|
|
211
|
+
api_action="ResumeSession",
|
|
212
|
+
request=request,
|
|
213
|
+
response_type=ResumeSessionResponse,
|
|
214
|
+
)
|
|
215
|
+
|
|
196
216
|
def resume_session_from_snapshot(
|
|
197
217
|
self, request: ResumeSessionFromSnapshotRequest
|
|
198
218
|
) -> ResumeSessionFromSnapshotResponse:
|
|
@@ -133,14 +133,31 @@ class SessionMetaForListSessions(ToolsBaseModel):
|
|
|
133
133
|
webshell_url: Optional[str] = Field(default=None, alias="WebshellUrl")
|
|
134
134
|
|
|
135
135
|
|
|
136
|
+
class SessionMetadataForGetSessionSnapshot(ToolsBaseModel):
|
|
137
|
+
key: Optional[str] = Field(default=None, alias="Key")
|
|
138
|
+
type: Optional[str] = Field(default=None, alias="Type")
|
|
139
|
+
value: Optional[str] = Field(default=None, alias="Value")
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class SessionMetadataForListSessionSnapshots(ToolsBaseModel):
|
|
143
|
+
key: Optional[str] = Field(default=None, alias="Key")
|
|
144
|
+
type: Optional[str] = Field(default=None, alias="Type")
|
|
145
|
+
value: Optional[str] = Field(default=None, alias="Value")
|
|
146
|
+
|
|
147
|
+
|
|
136
148
|
class SnapshotForGetSessionSnapshot(ToolsBaseModel):
|
|
137
149
|
created_at: Optional[str] = Field(default=None, alias="CreatedAt")
|
|
138
150
|
reason: Optional[str] = Field(default=None, alias="Reason")
|
|
139
151
|
sandbox_id: Optional[str] = Field(default=None, alias="SandboxId")
|
|
140
152
|
session_id: Optional[str] = Field(default=None, alias="SessionId")
|
|
153
|
+
session_metadata: Optional[list[SessionMetadataForGetSessionSnapshot]] = Field(
|
|
154
|
+
default=None, alias="SessionMetadata"
|
|
155
|
+
)
|
|
141
156
|
snapshot_id: Optional[str] = Field(default=None, alias="SnapshotId")
|
|
157
|
+
snapshot_type: Optional[str] = Field(default=None, alias="SnapshotType")
|
|
142
158
|
status: Optional[str] = Field(default=None, alias="Status")
|
|
143
159
|
tool_id: Optional[str] = Field(default=None, alias="ToolId")
|
|
160
|
+
user_session_id: Optional[str] = Field(default=None, alias="UserSessionId")
|
|
144
161
|
|
|
145
162
|
|
|
146
163
|
class SnapshotsForListSessionSnapshots(ToolsBaseModel):
|
|
@@ -148,7 +165,11 @@ class SnapshotsForListSessionSnapshots(ToolsBaseModel):
|
|
|
148
165
|
reason: Optional[str] = Field(default=None, alias="Reason")
|
|
149
166
|
sandbox_id: Optional[str] = Field(default=None, alias="SandboxId")
|
|
150
167
|
session_id: Optional[str] = Field(default=None, alias="SessionId")
|
|
168
|
+
session_metadata: Optional[list[SessionMetadataForListSessionSnapshots]] = Field(
|
|
169
|
+
default=None, alias="SessionMetadata"
|
|
170
|
+
)
|
|
151
171
|
snapshot_id: Optional[str] = Field(default=None, alias="SnapshotId")
|
|
172
|
+
snapshot_type: Optional[str] = Field(default=None, alias="SnapshotType")
|
|
152
173
|
status: Optional[str] = Field(default=None, alias="Status")
|
|
153
174
|
tool_id: Optional[str] = Field(default=None, alias="ToolId")
|
|
154
175
|
user_session_id: Optional[str] = Field(default=None, alias="UserSessionId")
|
|
@@ -186,6 +207,7 @@ class ToolsForListTools(ToolsBaseModel):
|
|
|
186
207
|
command: Optional[str] = Field(default=None, alias="Command")
|
|
187
208
|
created_at: Optional[str] = Field(default=None, alias="CreatedAt")
|
|
188
209
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
210
|
+
enable_mcp: Optional[bool] = Field(default=None, alias="EnableMcp")
|
|
189
211
|
envs: Optional[list[EnvsForListTools]] = Field(default=None, alias="Envs")
|
|
190
212
|
image_url: Optional[str] = Field(default=None, alias="ImageUrl")
|
|
191
213
|
model_agent_name: Optional[str] = Field(default=None, alias="ModelAgentName")
|
|
@@ -293,6 +315,7 @@ class CreateSessionResponse(ToolsBaseModel):
|
|
|
293
315
|
|
|
294
316
|
# CreateSessionSnapshot - Request
|
|
295
317
|
class CreateSessionSnapshotRequest(ToolsBaseModel):
|
|
318
|
+
retention_count: Optional[int] = Field(default=None, alias="RetentionCount")
|
|
296
319
|
session_id: str = Field(..., alias="SessionId")
|
|
297
320
|
tool_id: str = Field(..., alias="ToolId")
|
|
298
321
|
|
|
@@ -396,6 +419,7 @@ class CreateToolRequest(ToolsBaseModel):
|
|
|
396
419
|
command: Optional[str] = Field(default=None, alias="Command")
|
|
397
420
|
cpu_milli: Optional[int] = Field(default=None, alias="CpuMilli")
|
|
398
421
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
422
|
+
enable_mcp: Optional[bool] = Field(default=None, alias="EnableMcp")
|
|
399
423
|
enable_object_set_isolation: Optional[bool] = Field(
|
|
400
424
|
default=None, alias="EnableObjectSetIsolation"
|
|
401
425
|
)
|
|
@@ -533,6 +557,7 @@ class GetToolResponse(ToolsBaseModel):
|
|
|
533
557
|
cpu_milli: Optional[int] = Field(default=None, alias="CpuMilli")
|
|
534
558
|
created_at: Optional[str] = Field(default=None, alias="CreatedAt")
|
|
535
559
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
560
|
+
enable_mcp: Optional[bool] = Field(default=None, alias="EnableMcp")
|
|
536
561
|
enable_object_set_isolation: Optional[bool] = Field(
|
|
537
562
|
default=None, alias="EnableObjectSetIsolation"
|
|
538
563
|
)
|
|
@@ -576,6 +601,7 @@ class ListSessionSnapshotsRequest(ToolsBaseModel):
|
|
|
576
601
|
page_number: Optional[int] = Field(default=None, alias="PageNumber")
|
|
577
602
|
page_size: Optional[int] = Field(default=None, alias="PageSize")
|
|
578
603
|
session_id: Optional[str] = Field(default=None, alias="SessionId")
|
|
604
|
+
snapshot_type: Optional[str] = Field(default=None, alias="SnapshotType")
|
|
579
605
|
tool_id: str = Field(..., alias="ToolId")
|
|
580
606
|
user_session_id: Optional[str] = Field(default=None, alias="UserSessionId")
|
|
581
607
|
|
|
@@ -657,6 +683,33 @@ class ListToolsResponse(ToolsBaseModel):
|
|
|
657
683
|
tools: Optional[list[ToolsForListTools]] = Field(default=None, alias="Tools")
|
|
658
684
|
|
|
659
685
|
|
|
686
|
+
# PauseSession - Request
|
|
687
|
+
class PauseSessionRequest(ToolsBaseModel):
|
|
688
|
+
session_id: str = Field(..., alias="SessionId")
|
|
689
|
+
tool_id: str = Field(..., alias="ToolId")
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
# PauseSession - Response
|
|
693
|
+
class PauseSessionResponse(ToolsBaseModel):
|
|
694
|
+
session_id: Optional[str] = Field(default=None, alias="SessionId")
|
|
695
|
+
status: Optional[str] = Field(default=None, alias="Status")
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
# ResumeSession - Request
|
|
699
|
+
class ResumeSessionRequest(ToolsBaseModel):
|
|
700
|
+
session_id: str = Field(..., alias="SessionId")
|
|
701
|
+
tool_id: str = Field(..., alias="ToolId")
|
|
702
|
+
ttl: Optional[int] = Field(default=None, alias="Ttl")
|
|
703
|
+
ttl_unit: Optional[str] = Field(default=None, alias="TtlUnit")
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
# ResumeSession - Response
|
|
707
|
+
class ResumeSessionResponse(ToolsBaseModel):
|
|
708
|
+
expire_at: Optional[str] = Field(default=None, alias="ExpireAt")
|
|
709
|
+
session_id: Optional[str] = Field(default=None, alias="SessionId")
|
|
710
|
+
status: Optional[str] = Field(default=None, alias="Status")
|
|
711
|
+
|
|
712
|
+
|
|
660
713
|
# ResumeSessionFromSnapshot - Request
|
|
661
714
|
class ResumeSessionFromSnapshotRequest(ToolsBaseModel):
|
|
662
715
|
create_new_instance: Optional[bool] = Field(default=None, alias="CreateNewInstance")
|
|
@@ -722,6 +775,7 @@ class UpdateToolRequest(ToolsBaseModel):
|
|
|
722
775
|
command: Optional[str] = Field(default=None, alias="Command")
|
|
723
776
|
cpu_milli: Optional[int] = Field(default=None, alias="CpuMilli")
|
|
724
777
|
description: Optional[str] = Field(default=None, alias="Description")
|
|
778
|
+
enable_mcp: Optional[bool] = Field(default=None, alias="EnableMcp")
|
|
725
779
|
image_url: Optional[str] = Field(default=None, alias="ImageUrl")
|
|
726
780
|
lark_app_id: Optional[str] = Field(default=None, alias="LarkAppId")
|
|
727
781
|
lark_app_secret: Optional[str] = Field(default=None, alias="LarkAppSecret")
|
|
@@ -192,6 +192,18 @@ def config_command(
|
|
|
192
192
|
"--runtime_binding_mcp_toolset_id",
|
|
193
193
|
help="Bind Runtime to an MCP Toolset ID (cloud/hybrid only)",
|
|
194
194
|
),
|
|
195
|
+
runtime_gateway_mode: Optional[str] = typer.Option(
|
|
196
|
+
None,
|
|
197
|
+
"--runtime_gateway_mode",
|
|
198
|
+
"--runtime-gateway-mode",
|
|
199
|
+
help="Runtime gateway mode (cloud/hybrid, CreateRuntime only): Shared|Exclusive",
|
|
200
|
+
),
|
|
201
|
+
runtime_gateway_instance_id: Optional[str] = typer.Option(
|
|
202
|
+
None,
|
|
203
|
+
"--runtime_gateway_instance_id",
|
|
204
|
+
"--runtime-gateway-instance-id",
|
|
205
|
+
help="Exclusive Runtime gateway instance ID (cloud/hybrid, CreateRuntime only)",
|
|
206
|
+
),
|
|
195
207
|
# Runtime network configuration (advanced, CreateRuntime only)
|
|
196
208
|
runtime_network_mode: Optional[str] = typer.Option(
|
|
197
209
|
None,
|
|
@@ -344,6 +356,8 @@ def config_command(
|
|
|
344
356
|
runtime_vpc_id=runtime_vpc_id,
|
|
345
357
|
runtime_subnet_ids=runtime_subnet_ids,
|
|
346
358
|
runtime_enable_shared_internet_access=runtime_enable_shared_internet_access,
|
|
359
|
+
runtime_gateway_mode=runtime_gateway_mode,
|
|
360
|
+
runtime_gateway_instance_id=runtime_gateway_instance_id,
|
|
347
361
|
)
|
|
348
362
|
|
|
349
363
|
has_cli_params = ConfigParamHandler.has_cli_params(cli_params)
|
|
@@ -25,6 +25,10 @@ from rich.table import Table
|
|
|
25
25
|
from rich.panel import Panel
|
|
26
26
|
|
|
27
27
|
from agentkit.sdk.runtime.client import AgentkitRuntimeClient
|
|
28
|
+
from agentkit.sdk.runtime.gateway import (
|
|
29
|
+
normalize_runtime_gateway_mode,
|
|
30
|
+
validate_runtime_gateway_create_config,
|
|
31
|
+
)
|
|
28
32
|
from agentkit.sdk.runtime import types as rt
|
|
29
33
|
|
|
30
34
|
console = Console()
|
|
@@ -92,6 +96,60 @@ def _build_network_for_create_runtime(
|
|
|
92
96
|
)
|
|
93
97
|
|
|
94
98
|
|
|
99
|
+
def _has_network_configuration_for_create_runtime(
|
|
100
|
+
vpc_id: Optional[str],
|
|
101
|
+
subnet_ids: Optional[str],
|
|
102
|
+
enable_private_network: bool,
|
|
103
|
+
enable_public_network: bool,
|
|
104
|
+
enable_shared_internet_access: bool,
|
|
105
|
+
) -> bool:
|
|
106
|
+
return (
|
|
107
|
+
enable_private_network
|
|
108
|
+
or bool((vpc_id or "").strip())
|
|
109
|
+
or bool((subnet_ids or "").strip())
|
|
110
|
+
or enable_shared_internet_access
|
|
111
|
+
or enable_public_network is False
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _payload_value(payload: object, *keys: str) -> object:
|
|
116
|
+
if not isinstance(payload, dict):
|
|
117
|
+
return None
|
|
118
|
+
for key in keys:
|
|
119
|
+
if key in payload:
|
|
120
|
+
return payload[key]
|
|
121
|
+
return None
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def _payload_has_non_null_key(payload: object, *keys: str) -> bool:
|
|
125
|
+
if not isinstance(payload, dict):
|
|
126
|
+
return False
|
|
127
|
+
return any(key in payload and payload[key] is not None for key in keys)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def _unsupported_runtime_update_fields_message(payload: object) -> Optional[str]:
|
|
131
|
+
if not isinstance(payload, dict):
|
|
132
|
+
return None
|
|
133
|
+
unsupported = [
|
|
134
|
+
"GatewayMode",
|
|
135
|
+
"GatewayInstanceId",
|
|
136
|
+
"NetworkConfiguration",
|
|
137
|
+
"gateway_mode",
|
|
138
|
+
"gateway_instance_id",
|
|
139
|
+
"network_configuration",
|
|
140
|
+
"gatewayMode",
|
|
141
|
+
"gatewayInstanceId",
|
|
142
|
+
"networkConfiguration",
|
|
143
|
+
]
|
|
144
|
+
found = [key for key in unsupported if key in payload]
|
|
145
|
+
if not found:
|
|
146
|
+
return None
|
|
147
|
+
return (
|
|
148
|
+
f"{', '.join(found)} can only be set when creating a Runtime; "
|
|
149
|
+
"gateway mode, gateway instance, and network configuration cannot be updated."
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
|
|
95
153
|
def _validate_runtime_create_authorizer_options(
|
|
96
154
|
api_key_name: Optional[str],
|
|
97
155
|
jwt_discovery_url: Optional[str],
|
|
@@ -132,6 +190,16 @@ def create_runtime_command(
|
|
|
132
190
|
model_agent_name: Optional[str] = typer.Option(
|
|
133
191
|
None, "--model-agent-name", help="Model agent name"
|
|
134
192
|
),
|
|
193
|
+
gateway_mode: Optional[str] = typer.Option(
|
|
194
|
+
None,
|
|
195
|
+
"--gateway-mode",
|
|
196
|
+
help="Runtime gateway mode: Shared | Exclusive",
|
|
197
|
+
),
|
|
198
|
+
gateway_instance_id: Optional[str] = typer.Option(
|
|
199
|
+
None,
|
|
200
|
+
"--gateway-instance-id",
|
|
201
|
+
help="Exclusive Runtime gateway instance ID",
|
|
202
|
+
),
|
|
135
203
|
vpc_id: Optional[str] = typer.Option(None, "--vpc-id", help="VPC ID"),
|
|
136
204
|
subnet_ids: Optional[str] = typer.Option(
|
|
137
205
|
None, "--subnet-ids", help="Subnet IDs (comma-separated)"
|
|
@@ -187,12 +255,49 @@ def create_runtime_command(
|
|
|
187
255
|
try:
|
|
188
256
|
if json_body:
|
|
189
257
|
payload = json.loads(json_body)
|
|
258
|
+
validate_runtime_gateway_create_config(
|
|
259
|
+
gateway_mode=_payload_value(
|
|
260
|
+
payload,
|
|
261
|
+
"GatewayMode",
|
|
262
|
+
"gateway_mode",
|
|
263
|
+
"gatewayMode",
|
|
264
|
+
),
|
|
265
|
+
gateway_instance_id=_payload_value(
|
|
266
|
+
payload,
|
|
267
|
+
"GatewayInstanceId",
|
|
268
|
+
"gateway_instance_id",
|
|
269
|
+
"gatewayInstanceId",
|
|
270
|
+
),
|
|
271
|
+
has_network_configuration=_payload_has_non_null_key(
|
|
272
|
+
payload,
|
|
273
|
+
"NetworkConfiguration",
|
|
274
|
+
"network_configuration",
|
|
275
|
+
"networkConfiguration",
|
|
276
|
+
),
|
|
277
|
+
label="runtime",
|
|
278
|
+
)
|
|
190
279
|
req = rt.CreateRuntimeRequest(**payload)
|
|
191
280
|
else:
|
|
192
281
|
_validate_runtime_create_authorizer_options(
|
|
193
282
|
api_key_name=api_key_name,
|
|
194
283
|
jwt_discovery_url=jwt_discovery_url,
|
|
195
284
|
)
|
|
285
|
+
normalized_gateway_mode = normalize_runtime_gateway_mode(
|
|
286
|
+
gateway_mode,
|
|
287
|
+
"--gateway-mode",
|
|
288
|
+
)
|
|
289
|
+
validate_runtime_gateway_create_config(
|
|
290
|
+
gateway_mode=normalized_gateway_mode,
|
|
291
|
+
gateway_instance_id=gateway_instance_id,
|
|
292
|
+
has_network_configuration=_has_network_configuration_for_create_runtime(
|
|
293
|
+
vpc_id=vpc_id,
|
|
294
|
+
subnet_ids=subnet_ids,
|
|
295
|
+
enable_private_network=enable_private_network,
|
|
296
|
+
enable_public_network=enable_public_network,
|
|
297
|
+
enable_shared_internet_access=enable_shared_internet_access,
|
|
298
|
+
),
|
|
299
|
+
label="runtime",
|
|
300
|
+
)
|
|
196
301
|
|
|
197
302
|
authorizer = None
|
|
198
303
|
if any([api_key_name, api_key_location, jwt_discovery_url]):
|
|
@@ -253,6 +358,10 @@ def create_runtime_command(
|
|
|
253
358
|
tool_id=tool_id,
|
|
254
359
|
mcp_toolset_id=mcp_toolset_id,
|
|
255
360
|
model_agent_name=model_agent_name,
|
|
361
|
+
gateway_mode=normalized_gateway_mode,
|
|
362
|
+
gateway_instance_id=(
|
|
363
|
+
gateway_instance_id.strip() if gateway_instance_id else None
|
|
364
|
+
),
|
|
256
365
|
authorizer_configuration=authorizer,
|
|
257
366
|
network_configuration=network,
|
|
258
367
|
envs=envs,
|
|
@@ -343,6 +452,9 @@ def update_runtime_command(
|
|
|
343
452
|
client = AgentkitRuntimeClient(region=(region or "").strip())
|
|
344
453
|
if json_body:
|
|
345
454
|
payload = json.loads(json_body)
|
|
455
|
+
unsupported = _unsupported_runtime_update_fields_message(payload)
|
|
456
|
+
if unsupported:
|
|
457
|
+
raise ValueError(unsupported)
|
|
346
458
|
req = rt.UpdateRuntimeRequest(**payload)
|
|
347
459
|
else:
|
|
348
460
|
envs = None
|
|
@@ -467,6 +579,16 @@ def list_runtimes_command(
|
|
|
467
579
|
project_name: Optional[str] = typer.Option(
|
|
468
580
|
None, "--project-name", help="Filter by project name"
|
|
469
581
|
),
|
|
582
|
+
gateway_mode: Optional[str] = typer.Option(
|
|
583
|
+
None,
|
|
584
|
+
"--gateway-mode",
|
|
585
|
+
help="Filter by runtime gateway mode: Shared | Exclusive",
|
|
586
|
+
),
|
|
587
|
+
gateway_instance_id: Optional[str] = typer.Option(
|
|
588
|
+
None,
|
|
589
|
+
"--gateway-instance-id",
|
|
590
|
+
help="Filter by runtime gateway instance ID",
|
|
591
|
+
),
|
|
470
592
|
# Sorting options
|
|
471
593
|
sort_by: Optional[str] = typer.Option(
|
|
472
594
|
None, "--sort-by", help="Sort by field: Name|Status|CreatedAt|UpdatedAt"
|
|
@@ -618,6 +740,26 @@ def list_runtimes_command(
|
|
|
618
740
|
rt.FiltersItemForListRuntimes(name="Status", values=statuses)
|
|
619
741
|
)
|
|
620
742
|
|
|
743
|
+
if gateway_mode:
|
|
744
|
+
filters.append(
|
|
745
|
+
rt.FiltersItemForListRuntimes(
|
|
746
|
+
name="GatewayMode",
|
|
747
|
+
values=[
|
|
748
|
+
normalize_runtime_gateway_mode(
|
|
749
|
+
gateway_mode,
|
|
750
|
+
"--gateway-mode",
|
|
751
|
+
)
|
|
752
|
+
],
|
|
753
|
+
)
|
|
754
|
+
)
|
|
755
|
+
if gateway_instance_id:
|
|
756
|
+
filters.append(
|
|
757
|
+
rt.FiltersItemForListRuntimes(
|
|
758
|
+
name="GatewayInstanceId",
|
|
759
|
+
values=[gateway_instance_id],
|
|
760
|
+
)
|
|
761
|
+
)
|
|
762
|
+
|
|
621
763
|
# Setup console with color control
|
|
622
764
|
local_console = console if not no_color else Console(no_color=True)
|
|
623
765
|
|
|
@@ -696,6 +838,8 @@ def list_runtimes_command(
|
|
|
696
838
|
("Name", "Name", "white"),
|
|
697
839
|
("Status", "Status", "green"),
|
|
698
840
|
("ProjectName", "ProjectName", "yellow"),
|
|
841
|
+
("GatewayMode", "GatewayMode", "cyan"),
|
|
842
|
+
("GatewayInstanceName", "GatewayInstanceName", "blue"),
|
|
699
843
|
("UpdatedAt", "UpdatedAt", "magenta"),
|
|
700
844
|
]
|
|
701
845
|
|
|
@@ -108,6 +108,11 @@ def create_tool_command(
|
|
|
108
108
|
None, "--project-name", help="Project name"
|
|
109
109
|
),
|
|
110
110
|
role_name: Optional[str] = typer.Option(None, "--role-name", help="Role name"),
|
|
111
|
+
enable_mcp: Optional[bool] = typer.Option(
|
|
112
|
+
None,
|
|
113
|
+
"--enable-mcp/--disable-mcp",
|
|
114
|
+
help="Enable AgentGateway MCP capability for the tool.",
|
|
115
|
+
),
|
|
111
116
|
api_key_name: Optional[str] = typer.Option(
|
|
112
117
|
None, "--apikey-name", help="API key name"
|
|
113
118
|
),
|
|
@@ -234,6 +239,7 @@ def create_tool_command(
|
|
|
234
239
|
description=description,
|
|
235
240
|
project_name=project_name,
|
|
236
241
|
role_name=role_name,
|
|
242
|
+
enable_mcp=enable_mcp,
|
|
237
243
|
authorizer_configuration=authorizer,
|
|
238
244
|
network_configuration=network,
|
|
239
245
|
tags=tags_list or None,
|
|
@@ -306,6 +312,11 @@ def update_tool_command(
|
|
|
306
312
|
description: Optional[str] = typer.Option(
|
|
307
313
|
None, "--description", help="Description"
|
|
308
314
|
),
|
|
315
|
+
enable_mcp: Optional[bool] = typer.Option(
|
|
316
|
+
None,
|
|
317
|
+
"--enable-mcp/--disable-mcp",
|
|
318
|
+
help="Enable or disable AgentGateway MCP capability (KeyAuth tools only).",
|
|
319
|
+
),
|
|
309
320
|
json_body: Optional[str] = typer.Option(
|
|
310
321
|
None, "--json", help="Full JSON body for UpdateTool"
|
|
311
322
|
),
|
|
@@ -324,7 +335,7 @@ def update_tool_command(
|
|
|
324
335
|
),
|
|
325
336
|
),
|
|
326
337
|
):
|
|
327
|
-
"""Update tool
|
|
338
|
+
"""Update a tool."""
|
|
328
339
|
try:
|
|
329
340
|
client = AgentkitToolsClient(region=(region or "").strip())
|
|
330
341
|
if json_body:
|
|
@@ -335,7 +346,9 @@ def update_tool_command(
|
|
|
335
346
|
payload["ToolId"] = tool_id.strip()
|
|
336
347
|
else:
|
|
337
348
|
payload = tools_types.UpdateToolRequest(
|
|
338
|
-
tool_id=tool_id,
|
|
349
|
+
tool_id=tool_id,
|
|
350
|
+
description=description,
|
|
351
|
+
enable_mcp=enable_mcp,
|
|
339
352
|
).model_dump(by_alias=True, exclude_none=True)
|
|
340
353
|
|
|
341
354
|
if print_json:
|
|
@@ -34,6 +34,10 @@ from agentkit.sdk.tools.types import (
|
|
|
34
34
|
GetSessionResponse,
|
|
35
35
|
ListSessionsRequest,
|
|
36
36
|
ListSessionsResponse,
|
|
37
|
+
PauseSessionRequest,
|
|
38
|
+
PauseSessionResponse,
|
|
39
|
+
ResumeSessionRequest,
|
|
40
|
+
ResumeSessionResponse,
|
|
37
41
|
)
|
|
38
42
|
|
|
39
43
|
SANDBOX_APIG_ENDPOINT_ENV = "SANDBOX_APIG_ENDPOINT"
|
|
@@ -234,6 +238,20 @@ class TipAgentkitToolsClient(_OpenapiAgentkitToolsClient):
|
|
|
234
238
|
response_type=DeleteSessionResponse,
|
|
235
239
|
)
|
|
236
240
|
|
|
241
|
+
def pause_session(self, request: PauseSessionRequest) -> PauseSessionResponse:
|
|
242
|
+
return self._invoke_tip_api(
|
|
243
|
+
api_action="PauseSession",
|
|
244
|
+
request=request,
|
|
245
|
+
response_type=PauseSessionResponse,
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
def resume_session(self, request: ResumeSessionRequest) -> ResumeSessionResponse:
|
|
249
|
+
return self._invoke_tip_api(
|
|
250
|
+
api_action="ResumeSession",
|
|
251
|
+
request=request,
|
|
252
|
+
response_type=ResumeSessionResponse,
|
|
253
|
+
)
|
|
254
|
+
|
|
237
255
|
def _raise_tip_unsupported(self, api_action: str) -> None:
|
|
238
256
|
raise Exception(
|
|
239
257
|
f"{api_action} is not available with TIP sandbox auth. "
|