agentkit-sdk-python 0.8.4__tar.gz → 0.8.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/PKG-INFO +1 -1
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/model_replacement.py +115 -8
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/tools/types.py +15 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_tools.py +4 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_create.py +40 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/config_store.py +5 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/tos_config.py +52 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/init_executor.py +8 -2
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/harness/config_builder.py +16 -10
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/harness/deploy.py +54 -28
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/version.py +1 -1
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_sdk_python.egg-info/PKG-INFO +1 -1
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_sdk_python.egg-info/SOURCES.txt +2 -1
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/pyproject.toml +1 -1
- agentkit_sdk_python-0.8.6/tests/test_version.py +17 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/LICENSE +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/MANIFEST.in +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/README.md +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/a2a_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/a2a_app/a2a_app.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/a2a_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/agent_server_app.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/credential_service.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/inbound_auth.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/inbound_auth_adapter.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/middleware.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/origin.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/agent_server_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/auth/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/auth/inbound.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/base_app.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/langgraph_server_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/langgraph_server_app/langgraph_server_app.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/mcp_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/mcp_app/mcp_app.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/mcp_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/simple_app/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/simple_app/simple_app.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/simple_app/simple_app_handlers.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/simple_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/apps/utils.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/_openapi.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/_redact.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/_sigv4.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/admin.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/credential_hosting.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/errors.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/model_login.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/oauth.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/profile.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/providers.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/resolve.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/session.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/ssl_trust.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/sso.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/store.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/auth/sts.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/client/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/client/base_agentkit_client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/client/base_iam_client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/client/base_service_client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/errors.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/_common.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/agentcore.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/langchain.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/langgraph.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/migration.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/serving/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/serving/fastapi_mount.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/serving/langserve.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/strands.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/_runtime_dependency.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/context.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/errors.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/jwt.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/middleware.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/runtime.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/transport.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/identity/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/platform/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/platform/configuration.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/platform/console_urls.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/platform/constants.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/platform/context.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/platform/provider.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/account/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/account/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/identity/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/identity/auth.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/identity/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/identity/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/knowledge/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/knowledge/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/knowledge/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/mcp/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/mcp/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/mcp/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/memory/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/memory/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/memory/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/model_gateway/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/model_gateway/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/model_gateway/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/runtime/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/runtime/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/runtime/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/skills/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/skills/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/skills/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/tools/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/sdk/tools/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/builders/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/builders/base.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/builders/local_docker.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/builders/ve_pipeline.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/builders/ve_sandbox_pipeline.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/__main__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_add.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_auth.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_build.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_delete.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_deploy.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_destroy.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_init.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_invoke.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_knowledge.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_launch.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_list.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_logs.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_memory.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_model_gateway.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_runtime.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_skill.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_skills.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_skills_workflow.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_status.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/cli_version.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/console_reporter.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/interactive_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/a2a_client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/agentkit_client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_build.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_delete.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_exec.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_init.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_invoke.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_list.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_model_login.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_mount.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_run.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_scp.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_shell.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_web.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/env_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/git_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/model_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/sandbox_client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/session_create.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/session_sync.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/tool_resolve.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/tool_lookup.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/utils.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/choice_resolvers.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/cloud_provider.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/config_handler.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/config_validator.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/constants.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/dataclass_utils.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/docker_build_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/global_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/region_defaults.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/region_resolver.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/strategy_configs.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/config/utils.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/context.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/base_images.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/container.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/dockerfile/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/dockerfile/manager.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/dockerfile/metadata.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/docker/utils.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/errors.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/base_executor.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/build_executor.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/deploy_executor.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/invoke_executor.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/lifecycle_executor.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/status_executor.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/harness/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/harness/env_mapping.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/models.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/reporter.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/a2a.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/agent_server.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/basic.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/basic_stream.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/customer_support_assistant.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/eino_a2a/agent.go +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/eino_a2a/build.sh +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/eino_a2a/go.mod +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/eino_a2a/go.sum +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/eino_a2a/main.go +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/financial_analyst.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/langchain_basic_stream.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/simple_app_veadk.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/simple_mcp_veadk.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_a2a/agent.go +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_a2a/build.sh +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_a2a/go.mod +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_a2a/go.sum +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_a2a/main.go +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_basic/agent.go +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_basic/build.sh +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_basic/go.mod +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_basic/go.sum +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/samples/veadk_go_basic/main.go +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/code-pipeline-sandbox-tos-cr-step.j2 +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/code-pipeline-tos-cr-step.j2 +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/golang/Dockerfile.j2 +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/python/Dockerfile.j2 +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/sandbox/Dockerfile.install-package +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/sandbox/Dockerfile.install-skills +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/templates/sandbox/Dockerfile.web-server +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/wrappers/wrapper_basic.py.jinja2 +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/resources/wrappers/wrapper_stream.py.jinja2 +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/runners/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/runners/base.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/runners/local_docker.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/runners/ve_agentkit.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/bindings/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/bindings/memory.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/builder.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/client.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/deployer.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/initializer.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/invoker.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/lifecycle.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/sdk/status.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/strategies/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/strategies/base_strategy.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/strategies/cloud_strategy.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/strategies/hybrid_strategy.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/strategies/local_strategy.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/utils/agent_parser.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/apmplus_logs.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/code_pipeline.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/cr.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/iam.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/services/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/services/cr_service.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/services/tos_service.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/sts.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/volcengine/utils/project_archiver.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/global_config_io.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/http_defaults.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/logging_config.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/misc.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/redact.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/request.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/template_utils.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/utils/ve_sign.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/__init__.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/context.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/errors.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/jwt.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/middleware.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/py.typed +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/runtime.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/transport.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_identity/types.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_sdk_python.egg-info/dependency_links.txt +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_sdk_python.egg-info/entry_points.txt +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_sdk_python.egg-info/requires.txt +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit_sdk_python.egg-info/top_level.txt +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/setup.cfg +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/tests/test_client_uses_platform_context.py +0 -0
- {agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/tests/test_error_hierarchy.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.6
|
|
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
|
{agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/frameworks/model_replacement.py
RENAMED
|
@@ -7,10 +7,12 @@ import logging
|
|
|
7
7
|
import os
|
|
8
8
|
from typing import Any
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
logger = logging.getLogger(__name__)
|
|
12
11
|
ARK_DEFAULT_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3"
|
|
12
|
+
VEADK_SOURCE_HEADER = "veadk-source"
|
|
13
|
+
VEADK_SOURCE_VALUE = "veadk"
|
|
13
14
|
_DISABLED_VALUES = {"0", "false", "off", "none", "disabled"}
|
|
15
|
+
_HEADER_PATCH_MARKER = "__agentkit_veadk_source_header__"
|
|
14
16
|
_MODEL_PARAM_KEYS = {
|
|
15
17
|
"frequency_penalty",
|
|
16
18
|
"max_tokens",
|
|
@@ -49,6 +51,55 @@ def _replacement_enabled() -> bool:
|
|
|
49
51
|
return value not in _DISABLED_VALUES
|
|
50
52
|
|
|
51
53
|
|
|
54
|
+
def _merge_veadk_source_header(headers: Any = None) -> dict[str, Any]:
|
|
55
|
+
merged = {
|
|
56
|
+
key: value
|
|
57
|
+
for key, value in dict(headers or {}).items()
|
|
58
|
+
if key.lower() != VEADK_SOURCE_HEADER
|
|
59
|
+
}
|
|
60
|
+
merged[VEADK_SOURCE_HEADER] = VEADK_SOURCE_VALUE
|
|
61
|
+
return merged
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _header_kwarg_model_cls(base_cls: type[Any], header_kwarg: str) -> type[Any]:
|
|
65
|
+
if getattr(base_cls, _HEADER_PATCH_MARKER, False):
|
|
66
|
+
return base_cls
|
|
67
|
+
|
|
68
|
+
class AgentKitHeaderModel(base_cls):
|
|
69
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
70
|
+
kwargs[header_kwarg] = _merge_veadk_source_header(kwargs.get(header_kwarg))
|
|
71
|
+
super().__init__(*args, **kwargs)
|
|
72
|
+
|
|
73
|
+
AgentKitHeaderModel.__name__ = base_cls.__name__
|
|
74
|
+
AgentKitHeaderModel.__qualname__ = base_cls.__qualname__
|
|
75
|
+
AgentKitHeaderModel.__module__ = base_cls.__module__
|
|
76
|
+
setattr(AgentKitHeaderModel, _HEADER_PATCH_MARKER, True)
|
|
77
|
+
return AgentKitHeaderModel
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _openai_client_args_model_cls(base_cls: type[Any]) -> type[Any]:
|
|
81
|
+
if getattr(base_cls, _HEADER_PATCH_MARKER, False):
|
|
82
|
+
return base_cls
|
|
83
|
+
|
|
84
|
+
class AgentKitHeaderModel(base_cls):
|
|
85
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
86
|
+
if args or kwargs.get("client") is not None:
|
|
87
|
+
super().__init__(*args, **kwargs)
|
|
88
|
+
return
|
|
89
|
+
client_args = dict(kwargs.get("client_args") or {})
|
|
90
|
+
client_args["default_headers"] = _merge_veadk_source_header(
|
|
91
|
+
client_args.get("default_headers")
|
|
92
|
+
)
|
|
93
|
+
kwargs["client_args"] = client_args
|
|
94
|
+
super().__init__(*args, **kwargs)
|
|
95
|
+
|
|
96
|
+
AgentKitHeaderModel.__name__ = base_cls.__name__
|
|
97
|
+
AgentKitHeaderModel.__qualname__ = base_cls.__qualname__
|
|
98
|
+
AgentKitHeaderModel.__module__ = base_cls.__module__
|
|
99
|
+
setattr(AgentKitHeaderModel, _HEADER_PATCH_MARKER, True)
|
|
100
|
+
return AgentKitHeaderModel
|
|
101
|
+
|
|
102
|
+
|
|
52
103
|
def _replacement_model_config(config: dict[str, Any]) -> dict[str, Any]:
|
|
53
104
|
model_id = _target_model_id()
|
|
54
105
|
if not model_id:
|
|
@@ -90,6 +141,7 @@ def _agentkit_openai_model_cls() -> type[Any]:
|
|
|
90
141
|
client_args={
|
|
91
142
|
"base_url": _target_base_url(),
|
|
92
143
|
"api_key": api_key,
|
|
144
|
+
"default_headers": _merge_veadk_source_header(),
|
|
93
145
|
},
|
|
94
146
|
**_replacement_model_config(kwargs),
|
|
95
147
|
)
|
|
@@ -101,7 +153,7 @@ def _agentkit_openai_model_cls() -> type[Any]:
|
|
|
101
153
|
def _patch_model_attr(module_name: str, attr: str, replacement: type[Any]) -> bool:
|
|
102
154
|
try:
|
|
103
155
|
module = importlib.import_module(module_name)
|
|
104
|
-
except Exception:
|
|
156
|
+
except Exception: # noqa: BLE001 - optional framework imports are best effort
|
|
105
157
|
return False
|
|
106
158
|
if hasattr(module, attr):
|
|
107
159
|
setattr(module, attr, replacement)
|
|
@@ -109,6 +161,49 @@ def _patch_model_attr(module_name: str, attr: str, replacement: type[Any]) -> bo
|
|
|
109
161
|
return False
|
|
110
162
|
|
|
111
163
|
|
|
164
|
+
def _patch_langchain_model_headers() -> bool:
|
|
165
|
+
try:
|
|
166
|
+
module = importlib.import_module("langchain_openai.chat_models.base")
|
|
167
|
+
replacement = _header_kwarg_model_cls(module.ChatOpenAI, "default_headers")
|
|
168
|
+
except Exception: # noqa: BLE001 - optional framework imports are best effort
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
patched = False
|
|
172
|
+
for module_name in (
|
|
173
|
+
"langchain_openai",
|
|
174
|
+
"langchain_openai.chat_models",
|
|
175
|
+
"langchain_openai.chat_models.base",
|
|
176
|
+
):
|
|
177
|
+
patched = _patch_model_attr(module_name, "ChatOpenAI", replacement) or patched
|
|
178
|
+
return patched
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def _patch_adk_model_headers() -> bool:
|
|
182
|
+
try:
|
|
183
|
+
module = importlib.import_module("google.adk.models.lite_llm")
|
|
184
|
+
replacement = _header_kwarg_model_cls(module.LiteLlm, "extra_headers")
|
|
185
|
+
except Exception: # noqa: BLE001 - optional framework imports are best effort
|
|
186
|
+
return False
|
|
187
|
+
|
|
188
|
+
patched = False
|
|
189
|
+
for module_name in ("google.adk.models", "google.adk.models.lite_llm"):
|
|
190
|
+
patched = _patch_model_attr(module_name, "LiteLlm", replacement) or patched
|
|
191
|
+
return patched
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def _patch_strands_openai_model_headers() -> bool:
|
|
195
|
+
try:
|
|
196
|
+
module = importlib.import_module("strands.models.openai")
|
|
197
|
+
replacement = _openai_client_args_model_cls(module.OpenAIModel)
|
|
198
|
+
except Exception: # noqa: BLE001 - optional framework imports are best effort
|
|
199
|
+
return False
|
|
200
|
+
|
|
201
|
+
patched = False
|
|
202
|
+
for module_name in ("strands.models", "strands.models.openai"):
|
|
203
|
+
patched = _patch_model_attr(module_name, "OpenAIModel", replacement) or patched
|
|
204
|
+
return patched
|
|
205
|
+
|
|
206
|
+
|
|
112
207
|
def _apply_env_aliases() -> bool:
|
|
113
208
|
changed = False
|
|
114
209
|
model_id = _target_model_id()
|
|
@@ -138,7 +233,7 @@ def _apply_env_aliases() -> bool:
|
|
|
138
233
|
def _patch_strands_model_classes() -> bool:
|
|
139
234
|
try:
|
|
140
235
|
replacement = _agentkit_openai_model_cls()
|
|
141
|
-
except Exception:
|
|
236
|
+
except Exception: # noqa: BLE001 - optional framework imports are best effort
|
|
142
237
|
return False
|
|
143
238
|
|
|
144
239
|
patched = False
|
|
@@ -155,21 +250,33 @@ def apply_agentkit_model_replacement() -> bool:
|
|
|
155
250
|
"""Apply explicit target-model replacement for generated migration wrappers.
|
|
156
251
|
|
|
157
252
|
The helper intentionally stays low-intrusion: it normalizes common model
|
|
158
|
-
environment variables and patches
|
|
159
|
-
|
|
160
|
-
|
|
253
|
+
environment variables and patches stable framework model constructors before
|
|
254
|
+
user code constructs them. It does not rewrite project source code or patch
|
|
255
|
+
global HTTP/OpenAI clients.
|
|
161
256
|
"""
|
|
162
257
|
|
|
163
258
|
if not _replacement_enabled():
|
|
164
259
|
logger.info("AgentKit model replacement disabled by ARK_MODEL_REPLACEMENT.")
|
|
165
260
|
return False
|
|
166
261
|
env_changed = _apply_env_aliases()
|
|
262
|
+
langchain_headers_patched = _patch_langchain_model_headers()
|
|
263
|
+
adk_headers_patched = _patch_adk_model_headers()
|
|
264
|
+
strands_headers_patched = _patch_strands_openai_model_headers()
|
|
167
265
|
patched = _patch_strands_model_classes()
|
|
168
266
|
logger.info(
|
|
169
|
-
"AgentKit model replacement enabled: env_aliases=%s strands_model_patch=%s target_model_configured=%s base_url_configured=%s",
|
|
267
|
+
"AgentKit model replacement enabled: env_aliases=%s langchain_headers=%s adk_headers=%s strands_headers=%s strands_model_patch=%s target_model_configured=%s base_url_configured=%s",
|
|
170
268
|
env_changed,
|
|
269
|
+
langchain_headers_patched,
|
|
270
|
+
adk_headers_patched,
|
|
271
|
+
strands_headers_patched,
|
|
171
272
|
patched,
|
|
172
273
|
bool(_target_model_id()),
|
|
173
274
|
bool(_target_base_url()),
|
|
174
275
|
)
|
|
175
|
-
return
|
|
276
|
+
return (
|
|
277
|
+
env_changed
|
|
278
|
+
or langchain_headers_patched
|
|
279
|
+
or adk_headers_patched
|
|
280
|
+
or strands_headers_patched
|
|
281
|
+
or patched
|
|
282
|
+
)
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
20
|
+
from enum import Enum
|
|
20
21
|
from typing import Optional
|
|
21
22
|
from pydantic import BaseModel, Field
|
|
22
23
|
|
|
@@ -28,6 +29,11 @@ class ToolsBaseModel(BaseModel):
|
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
# Data Types
|
|
32
|
+
class CredentialType(str, Enum):
|
|
33
|
+
TOS_CREDENTIAL_TYPE_ACCESS_KEY = "TOS_CREDENTIAL_TYPE_ACCESS_KEY"
|
|
34
|
+
TOS_CREDENTIAL_TYPE_IAM_ROLE = "TOS_CREDENTIAL_TYPE_IAM_ROLE"
|
|
35
|
+
|
|
36
|
+
|
|
31
37
|
class AssociatedRuntimesForGetTool(ToolsBaseModel):
|
|
32
38
|
id: Optional[str] = Field(default=None, alias="Id")
|
|
33
39
|
name: Optional[str] = Field(default=None, alias="Name")
|
|
@@ -204,6 +210,9 @@ class TosMountConfigForGetTool(ToolsBaseModel):
|
|
|
204
210
|
credentials: Optional[CredentialsForGetTool] = Field(
|
|
205
211
|
default=None, alias="Credentials"
|
|
206
212
|
)
|
|
213
|
+
credential_type: Optional[CredentialType] = Field(
|
|
214
|
+
default=None, alias="CredentialType"
|
|
215
|
+
)
|
|
207
216
|
enable_tos: Optional[bool] = Field(default=None, alias="EnableTos")
|
|
208
217
|
mount_points: Optional[list[MountPointsForGetTool]] = Field(
|
|
209
218
|
default=None, alias="MountPoints"
|
|
@@ -348,6 +357,9 @@ class TosMountForCreateTool(ToolsBaseModel):
|
|
|
348
357
|
credentials: Optional[TosMountCredentialsForCreateTool] = Field(
|
|
349
358
|
default=None, alias="Credentials"
|
|
350
359
|
)
|
|
360
|
+
credential_type: Optional[CredentialType] = Field(
|
|
361
|
+
default=None, alias="CredentialType"
|
|
362
|
+
)
|
|
351
363
|
mount_points: Optional[list[TosMountMountPointsItemForCreateTool]] = Field(
|
|
352
364
|
default=None, alias="MountPoints"
|
|
353
365
|
)
|
|
@@ -678,6 +690,9 @@ class TosMountForUpdateTool(ToolsBaseModel):
|
|
|
678
690
|
credentials: Optional[TosMountCredentialsForUpdateTool] = Field(
|
|
679
691
|
default=None, alias="Credentials"
|
|
680
692
|
)
|
|
693
|
+
credential_type: Optional[CredentialType] = Field(
|
|
694
|
+
default=None, alias="CredentialType"
|
|
695
|
+
)
|
|
681
696
|
mount_points: Optional[list[TosMountMountPointsItemForUpdateTool]] = Field(
|
|
682
697
|
default=None, alias="MountPoints"
|
|
683
698
|
)
|
|
@@ -329,6 +329,10 @@ def update_tool_command(
|
|
|
329
329
|
client = AgentkitToolsClient(region=(region or "").strip())
|
|
330
330
|
if json_body:
|
|
331
331
|
payload = json.loads(json_body)
|
|
332
|
+
if not isinstance(payload, dict):
|
|
333
|
+
raise ValueError("--json must contain a JSON object")
|
|
334
|
+
payload.pop("tool_id", None)
|
|
335
|
+
payload["ToolId"] = tool_id.strip()
|
|
332
336
|
else:
|
|
333
337
|
payload = tools_types.UpdateToolRequest(
|
|
334
338
|
tool_id=tool_id, description=description
|
{agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/cli_create.py
RENAMED
|
@@ -56,8 +56,10 @@ from agentkit.toolkit.cli.sandbox.model_config import (
|
|
|
56
56
|
)
|
|
57
57
|
from agentkit.toolkit.cli.sandbox.tool_resolve import save_tool_result_if_resolvable
|
|
58
58
|
from agentkit.toolkit.cli.sandbox.tos_config import (
|
|
59
|
+
DEFAULT_TOS_CREDENTIAL_TYPE,
|
|
59
60
|
DEFAULT_TOS_LOCAL_PATH,
|
|
60
61
|
build_create_tool_tos_mount_config,
|
|
62
|
+
normalize_tos_credential_type,
|
|
61
63
|
)
|
|
62
64
|
from agentkit.toolkit.cli.sandbox.sandbox_client import error
|
|
63
65
|
from agentkit.toolkit.volcengine.services.tos_service import (
|
|
@@ -206,6 +208,7 @@ def _build_create_tool_request(
|
|
|
206
208
|
tos_bucket: Optional[str],
|
|
207
209
|
tos_region: str,
|
|
208
210
|
tos_mount_path: str = DEFAULT_TOS_LOCAL_PATH,
|
|
211
|
+
tos_credential_type: str | tools_types.CredentialType | None = None,
|
|
209
212
|
cpu: int = DEFAULT_CPU,
|
|
210
213
|
model_name: Optional[str] = None,
|
|
211
214
|
model_api_key: Optional[str] = None,
|
|
@@ -228,6 +231,16 @@ def _build_create_tool_request(
|
|
|
228
231
|
is_private_tool = resolved_tool_type == PRIVATE_TOOL_TYPE
|
|
229
232
|
if is_private_tool and not (image_url or "").strip():
|
|
230
233
|
error("--image-url is required when --tool-type Private")
|
|
234
|
+
resolved_tos_credential_type = normalize_tos_credential_type(
|
|
235
|
+
tos_credential_type
|
|
236
|
+
)
|
|
237
|
+
if (
|
|
238
|
+
is_private_tool
|
|
239
|
+
and (tos_bucket or "").strip()
|
|
240
|
+
and resolved_tos_credential_type
|
|
241
|
+
== tools_types.CredentialType.TOS_CREDENTIAL_TYPE_IAM_ROLE
|
|
242
|
+
):
|
|
243
|
+
error("TOS IAM Role mounting is only supported for Built-in Tools")
|
|
231
244
|
command = PRIVATE_TOOL_COMMAND if is_private_tool else None
|
|
232
245
|
port = PRIVATE_TOOL_PORT if is_private_tool else None
|
|
233
246
|
envs = (
|
|
@@ -256,6 +269,7 @@ def _build_create_tool_request(
|
|
|
256
269
|
tos_bucket,
|
|
257
270
|
tos_region,
|
|
258
271
|
local_mount_path=tos_mount_path,
|
|
272
|
+
credential_type=resolved_tos_credential_type,
|
|
259
273
|
tos_service_cls=TOSService,
|
|
260
274
|
tos_service_config_cls=TOSServiceConfig,
|
|
261
275
|
)
|
|
@@ -451,6 +465,7 @@ def create_tool(
|
|
|
451
465
|
tool_name: Optional[str] = None,
|
|
452
466
|
tos_bucket: Optional[str] = None,
|
|
453
467
|
tos_mount_path: str = DEFAULT_TOS_LOCAL_PATH,
|
|
468
|
+
tos_credential_type: str | tools_types.CredentialType | None = None,
|
|
454
469
|
cpu: int = DEFAULT_CPU,
|
|
455
470
|
model_name: Optional[str] = None,
|
|
456
471
|
model_api_key: Optional[str] = None,
|
|
@@ -508,6 +523,7 @@ def create_tool(
|
|
|
508
523
|
tos_bucket=tos_bucket,
|
|
509
524
|
tos_region=tos_region,
|
|
510
525
|
tos_mount_path=tos_mount_path,
|
|
526
|
+
tos_credential_type=tos_credential_type,
|
|
511
527
|
cpu=cpu,
|
|
512
528
|
model_name=model_name,
|
|
513
529
|
model_api_key=model_api_key,
|
|
@@ -571,6 +587,15 @@ def create_command(
|
|
|
571
587
|
f"Defaults to {DEFAULT_TOS_LOCAL_PATH} when omitted."
|
|
572
588
|
),
|
|
573
589
|
),
|
|
590
|
+
tos_credential_type: Optional[str] = typer.Option(
|
|
591
|
+
None,
|
|
592
|
+
"--tos-credential-type",
|
|
593
|
+
help=(
|
|
594
|
+
"TOS mount authentication: access-key or iam-role. "
|
|
595
|
+
"IAM Role is only supported for Built-in Tools. "
|
|
596
|
+
"Defaults to access-key."
|
|
597
|
+
),
|
|
598
|
+
),
|
|
574
599
|
cpu: int = typer.Option(
|
|
575
600
|
DEFAULT_CPU,
|
|
576
601
|
"--cpu",
|
|
@@ -672,6 +697,13 @@ def create_command(
|
|
|
672
697
|
tos_mount = config_default_if_unprovided(
|
|
673
698
|
ctx, "tos_mount", "tos-mount", tos_mount, data=config_defaults
|
|
674
699
|
)
|
|
700
|
+
tos_credential_type = config_default_if_unprovided(
|
|
701
|
+
ctx,
|
|
702
|
+
"tos_credential_type",
|
|
703
|
+
"tos-credential-type",
|
|
704
|
+
tos_credential_type,
|
|
705
|
+
data=config_defaults,
|
|
706
|
+
)
|
|
675
707
|
cpu = config_default_if_unprovided(
|
|
676
708
|
ctx,
|
|
677
709
|
"cpu",
|
|
@@ -777,6 +809,11 @@ def create_command(
|
|
|
777
809
|
)
|
|
778
810
|
if tos_mount is not None and not (tos_bucket or "").strip():
|
|
779
811
|
error("--tos-mount requires --tos-bucket")
|
|
812
|
+
if (
|
|
813
|
+
tos_credential_type is not None
|
|
814
|
+
and not (tos_bucket or "").strip()
|
|
815
|
+
):
|
|
816
|
+
error("--tos-credential-type requires --tos-bucket")
|
|
780
817
|
model_provider_was_provided = param_was_provided(ctx, "model_provider")
|
|
781
818
|
model_base_url_was_provided = param_was_provided(ctx, "model_base_url")
|
|
782
819
|
result = create_tool(
|
|
@@ -784,6 +821,9 @@ def create_command(
|
|
|
784
821
|
tool_name=tool_name,
|
|
785
822
|
tos_bucket=tos_bucket,
|
|
786
823
|
tos_mount_path=tos_mount or DEFAULT_TOS_LOCAL_PATH,
|
|
824
|
+
tos_credential_type=(
|
|
825
|
+
tos_credential_type or DEFAULT_TOS_CREDENTIAL_TYPE
|
|
826
|
+
),
|
|
787
827
|
cpu=cpu,
|
|
788
828
|
model_name=model_name,
|
|
789
829
|
model_api_key=model_api_key,
|
{agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/config_store.py
RENAMED
|
@@ -157,6 +157,11 @@ CONFIG_KEY_SPECS: dict[str, ConfigKeySpec] = {
|
|
|
157
157
|
"cpu": ConfigKeySpec(("tool", "cpu"), _int_value, VALID_CPU_VALUES),
|
|
158
158
|
"tos-bucket": ConfigKeySpec(("tool", "tos_bucket"), _str_value),
|
|
159
159
|
"tos-mount": ConfigKeySpec(("tool", "tos_mount"), _str_value),
|
|
160
|
+
"tos-credential-type": ConfigKeySpec(
|
|
161
|
+
("tool", "tos_credential_type"),
|
|
162
|
+
_str_value,
|
|
163
|
+
("access-key", "iam-role"),
|
|
164
|
+
),
|
|
160
165
|
"role-name": ConfigKeySpec(("tool", "role_name"), _str_value),
|
|
161
166
|
"enable-snapshot": ConfigKeySpec(("tool", "enable_snapshot"), _bool_value),
|
|
162
167
|
"websearch-apikey": ConfigKeySpec(("tool", "websearch_apikey"), _str_value),
|
{agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/cli/sandbox/tos_config.py
RENAMED
|
@@ -29,6 +29,35 @@ from agentkit.toolkit.volcengine.services.tos_service import (
|
|
|
29
29
|
DEFAULT_TOS_BUCKET_PATH = "/sandbox-session/default/default"
|
|
30
30
|
DEFAULT_TOS_LOCAL_PATH = "/home/gem/workspace"
|
|
31
31
|
DEFAULT_SANDBOX_WORKSPACE = "/home/gem"
|
|
32
|
+
DEFAULT_TOS_CREDENTIAL_TYPE = (
|
|
33
|
+
tools_types.CredentialType.TOS_CREDENTIAL_TYPE_ACCESS_KEY
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def normalize_tos_credential_type(
|
|
38
|
+
value: str | tools_types.CredentialType | None,
|
|
39
|
+
) -> tools_types.CredentialType:
|
|
40
|
+
if isinstance(value, tools_types.CredentialType):
|
|
41
|
+
return value
|
|
42
|
+
|
|
43
|
+
normalized = (value or "").strip().upper().replace("-", "_")
|
|
44
|
+
aliases = {
|
|
45
|
+
"": DEFAULT_TOS_CREDENTIAL_TYPE,
|
|
46
|
+
"ACCESS_KEY": tools_types.CredentialType.TOS_CREDENTIAL_TYPE_ACCESS_KEY,
|
|
47
|
+
"TOS_CREDENTIAL_TYPE_ACCESS_KEY": (
|
|
48
|
+
tools_types.CredentialType.TOS_CREDENTIAL_TYPE_ACCESS_KEY
|
|
49
|
+
),
|
|
50
|
+
"IAM_ROLE": tools_types.CredentialType.TOS_CREDENTIAL_TYPE_IAM_ROLE,
|
|
51
|
+
"TOS_CREDENTIAL_TYPE_IAM_ROLE": (
|
|
52
|
+
tools_types.CredentialType.TOS_CREDENTIAL_TYPE_IAM_ROLE
|
|
53
|
+
),
|
|
54
|
+
}
|
|
55
|
+
credential_type = aliases.get(normalized)
|
|
56
|
+
if credential_type is None:
|
|
57
|
+
error(
|
|
58
|
+
"--tos-credential-type must be one of: access-key, iam-role"
|
|
59
|
+
)
|
|
60
|
+
return credential_type
|
|
32
61
|
|
|
33
62
|
|
|
34
63
|
def resolve_tos_bucket(tos_bucket: Optional[str]) -> str:
|
|
@@ -50,6 +79,7 @@ def build_create_tool_tos_mount_config(
|
|
|
50
79
|
region: str,
|
|
51
80
|
*,
|
|
52
81
|
local_mount_path: str = DEFAULT_TOS_LOCAL_PATH,
|
|
82
|
+
credential_type: str | tools_types.CredentialType | None = None,
|
|
53
83
|
tos_service_cls=TOSService,
|
|
54
84
|
tos_service_config_cls=TOSServiceConfig,
|
|
55
85
|
) -> tools_types.TosMountForCreateTool | None:
|
|
@@ -58,6 +88,25 @@ def build_create_tool_tos_mount_config(
|
|
|
58
88
|
|
|
59
89
|
resolved_bucket = resolve_tos_bucket(tos_bucket)
|
|
60
90
|
resolved_local_mount_path = resolve_tos_mount_path(local_mount_path)
|
|
91
|
+
resolved_credential_type = normalize_tos_credential_type(credential_type)
|
|
92
|
+
if (
|
|
93
|
+
resolved_credential_type
|
|
94
|
+
== tools_types.CredentialType.TOS_CREDENTIAL_TYPE_IAM_ROLE
|
|
95
|
+
):
|
|
96
|
+
return tools_types.TosMountForCreateTool(
|
|
97
|
+
EnableTos=True,
|
|
98
|
+
CredentialType=resolved_credential_type,
|
|
99
|
+
MountPoints=[
|
|
100
|
+
tools_types.TosMountMountPointsItemForCreateTool(
|
|
101
|
+
BucketName=resolved_bucket,
|
|
102
|
+
BucketPath=DEFAULT_TOS_BUCKET_PATH,
|
|
103
|
+
Endpoint=TOSService.build_mount_endpoint(region),
|
|
104
|
+
LocalMountPath=resolved_local_mount_path,
|
|
105
|
+
ReadOnly=False,
|
|
106
|
+
)
|
|
107
|
+
],
|
|
108
|
+
)
|
|
109
|
+
|
|
61
110
|
service = tos_service_cls(
|
|
62
111
|
tos_service_config_cls(
|
|
63
112
|
bucket=resolved_bucket,
|
|
@@ -76,6 +125,9 @@ def to_create_tool_tos_mount_config(
|
|
|
76
125
|
) -> tools_types.TosMountForCreateTool:
|
|
77
126
|
return tools_types.TosMountForCreateTool(
|
|
78
127
|
EnableTos=True,
|
|
128
|
+
CredentialType=(
|
|
129
|
+
tools_types.CredentialType.TOS_CREDENTIAL_TYPE_ACCESS_KEY
|
|
130
|
+
),
|
|
79
131
|
Credentials=tools_types.TosMountCredentialsForCreateTool(
|
|
80
132
|
AccessKeyId=mount_config.credentials.access_key_id,
|
|
81
133
|
SecretAccessKey=mount_config.credentials.secret_access_key,
|
{agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/executors/init_executor.py
RENAMED
|
@@ -131,13 +131,19 @@ TEMPLATES = {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
# `.env.example` written into a harness directory.
|
|
135
|
-
#
|
|
134
|
+
# `.env.example` written into a harness directory. Copy it to `.env` and fill in
|
|
135
|
+
# the credential pair for the selected cloud provider before deploying.
|
|
136
136
|
_HARNESS_ENV_EXAMPLE = """\
|
|
137
137
|
# Volcengine credentials for harness deploy. Copy this file to `.env` and fill in.
|
|
138
138
|
VOLCENGINE_ACCESS_KEY=
|
|
139
139
|
VOLCENGINE_SECRET_KEY=
|
|
140
140
|
# VOLCENGINE_REGION=cn-beijing
|
|
141
|
+
|
|
142
|
+
# BytePlus credentials (uncomment these lines and set CLOUD_PROVIDER=byteplus).
|
|
143
|
+
# CLOUD_PROVIDER=byteplus
|
|
144
|
+
# BYTEPLUS_ACCESS_KEY=
|
|
145
|
+
# BYTEPLUS_SECRET_KEY=
|
|
146
|
+
# BYTEPLUS_REGION=ap-southeast-1
|
|
141
147
|
"""
|
|
142
148
|
|
|
143
149
|
# Container image for the harness server. The base image's apt mirror is an
|
{agentkit_sdk_python-0.8.4 → agentkit_sdk_python-0.8.6}/agentkit/toolkit/harness/config_builder.py
RENAMED
|
@@ -23,6 +23,7 @@ def build_agentkit_config(
|
|
|
23
23
|
envs: Dict[str, str],
|
|
24
24
|
auth: Optional[Dict[str, Any]] = None,
|
|
25
25
|
runtime_id: str = "Auto",
|
|
26
|
+
cloud_provider: Optional[str] = None,
|
|
26
27
|
) -> Dict[str, Any]:
|
|
27
28
|
"""Build the cloud AgentKit launch config dict (auto-provision).
|
|
28
29
|
|
|
@@ -37,7 +38,8 @@ def build_agentkit_config(
|
|
|
37
38
|
|
|
38
39
|
When ``auth`` (a normalized ``{discovery_url, allowed_ids}`` block) is given,
|
|
39
40
|
the runtime is gated by OAuth2/JWT (``custom_jwt``); otherwise it keeps the
|
|
40
|
-
default API-key auth (``key_auth``).
|
|
41
|
+
default API-key auth (``key_auth``). ``cloud_provider`` pins the generated
|
|
42
|
+
launch config to the same provider used to resolve credentials and region.
|
|
41
43
|
"""
|
|
42
44
|
cloud: Dict[str, Any] = {
|
|
43
45
|
"region": region,
|
|
@@ -64,16 +66,20 @@ def build_agentkit_config(
|
|
|
64
66
|
cloud["runtime_apikey_name"] = "Auto"
|
|
65
67
|
cloud["runtime_apikey"] = "Auto"
|
|
66
68
|
cloud["runtime_jwt_allowed_clients"] = []
|
|
69
|
+
common: Dict[str, Any] = {
|
|
70
|
+
"agent_name": runtime_name,
|
|
71
|
+
"entry_point": "app.py",
|
|
72
|
+
"description": "Harness Server - VeADK",
|
|
73
|
+
"language": "Python",
|
|
74
|
+
"language_version": "3.12",
|
|
75
|
+
"runtime_envs": envs,
|
|
76
|
+
"launch_type": "cloud",
|
|
77
|
+
}
|
|
78
|
+
if cloud_provider:
|
|
79
|
+
common["cloud_provider"] = cloud_provider
|
|
80
|
+
|
|
67
81
|
return {
|
|
68
|
-
"common":
|
|
69
|
-
"agent_name": runtime_name,
|
|
70
|
-
"entry_point": "app.py",
|
|
71
|
-
"description": "Harness Server - VeADK",
|
|
72
|
-
"language": "Python",
|
|
73
|
-
"language_version": "3.12",
|
|
74
|
-
"runtime_envs": envs,
|
|
75
|
-
"launch_type": "cloud",
|
|
76
|
-
},
|
|
82
|
+
"common": common,
|
|
77
83
|
"launch_types": {"cloud": cloud},
|
|
78
84
|
"docker_build": {},
|
|
79
85
|
}
|