agentkit-sdk-python 0.2.2__tar.gz → 0.3.1__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.2.2/agentkit_sdk_python.egg-info → agentkit_sdk_python-0.3.1}/PKG-INFO +1 -1
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/agent_server_app/agent_server_app.py +34 -10
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/client/base_agentkit_client.py +1 -17
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/client/base_iam_client.py +1 -17
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/client/base_service_client.py +38 -45
- agentkit_sdk_python-0.3.1/agentkit/platform/__init__.py +89 -0
- agentkit_sdk_python-0.3.1/agentkit/platform/configuration.py +299 -0
- agentkit_sdk_python-0.3.1/agentkit/platform/constants.py +75 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/identity/auth.py +13 -16
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/builders/local_docker.py +0 -2
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/builders/ve_pipeline.py +54 -45
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_config.py +103 -101
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_init.py +4 -7
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_knowledge.py +54 -6
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_memory.py +63 -7
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_runtime.py +72 -8
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_tools.py +99 -11
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/global_config.py +13 -44
- agentkit_sdk_python-0.3.1/agentkit/toolkit/config/region_resolver.py +107 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/strategy_configs.py +22 -13
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/docker/container.py +3 -3
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/base_executor.py +38 -7
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/build_executor.py +4 -1
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/deploy_executor.py +4 -1
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/init_executor.py +4 -12
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/lifecycle_executor.py +9 -3
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/runners/ve_agentkit.py +37 -11
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/strategies/cloud_strategy.py +9 -2
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/strategies/hybrid_strategy.py +7 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/code_pipeline.py +29 -13
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/cr.py +11 -11
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/services/cr_service.py +31 -20
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/services/tos_service.py +19 -19
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/sts.py +1 -9
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/global_config_io.py +16 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/ve_sign.py +0 -142
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/version.py +1 -1
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1/agentkit_sdk_python.egg-info}/PKG-INFO +1 -1
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit_sdk_python.egg-info/SOURCES.txt +4 -1
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/pyproject.toml +1 -1
- agentkit_sdk_python-0.2.2/agentkit/utils/credential.py +0 -58
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/LICENSE +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/MANIFEST.in +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/README.md +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/a2a_app/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/a2a_app/a2a_app.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/a2a_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/agent_server_app/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/agent_server_app/middleware.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/agent_server_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/base_app.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/mcp_app/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/mcp_app/mcp_app.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/mcp_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/simple_app/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/simple_app/simple_app.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/simple_app/simple_app_handlers.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/simple_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/apps/utils.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/client/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/account/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/account/types.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/identity/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/knowledge/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/knowledge/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/knowledge/types.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/mcp/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/mcp/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/mcp/types.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/memory/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/memory/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/memory/types.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/runtime/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/runtime/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/runtime/types.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/tools/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/tools/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/sdk/tools/types.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/builders/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/builders/base.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/__main__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_build.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_deploy.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_destroy.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_invoke.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_launch.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_status.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/cli_version.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/console_reporter.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/interactive_config.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/cli/utils.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/config.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/config_handler.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/config_validator.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/constants.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/dataclass_utils.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/docker_build_config.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/config/utils.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/context.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/docker/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/docker/dockerfile/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/docker/dockerfile/manager.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/docker/dockerfile/metadata.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/docker/utils.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/errors.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/invoke_executor.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/executors/status_executor.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/models.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/reporter.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/__pycache__/customer_support_assistant.cpython-312.pyc +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/__pycache__/financial_analyst.cpython-312.pyc +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/__pycache__/simple_app_veadk.cpython-312.pyc +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/__pycache__/simple_mcp_veadk.cpython-312.pyc +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/a2a.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/basic.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/basic_stream.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/customer_support_assistant.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/eino_a2a/agent.go +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/eino_a2a/build.sh +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/eino_a2a/go.mod +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/eino_a2a/go.sum +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/eino_a2a/main.go +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/financial_analyst.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/simple_app_veadk.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/samples/simple_mcp_veadk.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/templates/code-pipeline-tos-cr-step.j2 +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/templates/golang/Dockerfile.j2 +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/templates/python/Dockerfile.j2 +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/wrappers/wrapper_basic.py.jinja2 +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/resources/wrappers/wrapper_stream.py.jinja2 +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/runners/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/runners/base.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/runners/local_docker.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/bindings/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/bindings/memory.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/builder.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/client.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/config.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/deployer.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/initializer.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/invoker.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/lifecycle.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/sdk/status.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/strategies/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/strategies/base_strategy.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/strategies/local_strategy.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/utils/agent_parser.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/iam.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/services/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/toolkit/volcengine/utils/project_archiver.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/logging_config.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/misc.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/request.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/utils/template_utils.py +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit_sdk_python.egg-info/dependency_links.txt +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit_sdk_python.egg-info/entry_points.txt +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit_sdk_python.egg-info/requires.txt +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit_sdk_python.egg-info/top_level.txt +0 -0
- {agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/setup.cfg +0 -0
{agentkit_sdk_python-0.2.2/agentkit_sdk_python.egg-info → agentkit_sdk_python-0.3.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentkit-sdk-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
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
|
|
@@ -12,15 +12,17 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
+
import json
|
|
16
|
+
import logging
|
|
17
|
+
from contextlib import asynccontextmanager
|
|
15
18
|
from typing import override
|
|
16
19
|
|
|
17
20
|
import uvicorn
|
|
18
|
-
import
|
|
19
|
-
from fastapi import Request
|
|
20
|
-
from fastapi import HTTPException
|
|
21
|
+
from fastapi import FastAPI, HTTPException, Request
|
|
21
22
|
from fastapi.responses import StreamingResponse
|
|
22
|
-
from
|
|
23
|
+
from google.adk.a2a.utils.agent_to_a2a import to_a2a
|
|
23
24
|
from google.adk.agents.base_agent import BaseAgent
|
|
25
|
+
from google.adk.agents.run_config import RunConfig, StreamingMode
|
|
24
26
|
from google.adk.artifacts.in_memory_artifact_service import (
|
|
25
27
|
InMemoryArtifactService,
|
|
26
28
|
)
|
|
@@ -35,15 +37,20 @@ from google.adk.evaluation.local_eval_set_results_manager import (
|
|
|
35
37
|
from google.adk.evaluation.local_eval_sets_manager import LocalEvalSetsManager
|
|
36
38
|
from google.adk.memory.in_memory_memory_service import InMemoryMemoryService
|
|
37
39
|
from google.adk.sessions.base_session_service import BaseSessionService
|
|
38
|
-
from google.adk.agents.run_config import RunConfig, StreamingMode
|
|
39
40
|
from google.adk.utils.context_utils import Aclosing
|
|
40
41
|
from google.genai import types
|
|
42
|
+
from opentelemetry import trace
|
|
41
43
|
from veadk import Agent
|
|
42
44
|
from veadk.memory.short_term_memory import ShortTermMemory
|
|
45
|
+
from veadk.runner import Runner
|
|
43
46
|
|
|
44
|
-
from agentkit.apps.
|
|
47
|
+
from agentkit.apps.agent_server_app.middleware import (
|
|
48
|
+
AgentkitTelemetryHTTPMiddleware,
|
|
49
|
+
)
|
|
45
50
|
from agentkit.apps.agent_server_app.telemetry import telemetry
|
|
46
|
-
from agentkit.apps.
|
|
51
|
+
from agentkit.apps.base_app import BaseAgentkitApp
|
|
52
|
+
|
|
53
|
+
logger = logging.getLogger(__name__)
|
|
47
54
|
|
|
48
55
|
|
|
49
56
|
class AgentKitAgentLoader(BaseAgentLoader):
|
|
@@ -63,7 +70,9 @@ class AgentKitAgentLoader(BaseAgentLoader):
|
|
|
63
70
|
|
|
64
71
|
class AgentkitAgentServerApp(BaseAgentkitApp):
|
|
65
72
|
def __init__(
|
|
66
|
-
self,
|
|
73
|
+
self,
|
|
74
|
+
agent: BaseAgent,
|
|
75
|
+
short_term_memory: BaseSessionService | ShortTermMemory,
|
|
67
76
|
) -> None:
|
|
68
77
|
super().__init__()
|
|
69
78
|
|
|
@@ -88,7 +97,20 @@ class AgentkitAgentServerApp(BaseAgentkitApp):
|
|
|
88
97
|
agents_dir=".",
|
|
89
98
|
)
|
|
90
99
|
|
|
91
|
-
|
|
100
|
+
runner = Runner(agent=agent)
|
|
101
|
+
_a2a_server_app = to_a2a(agent=agent, runner=runner)
|
|
102
|
+
|
|
103
|
+
@asynccontextmanager
|
|
104
|
+
async def lifespan(app: FastAPI):
|
|
105
|
+
# trigger A2A server app startup
|
|
106
|
+
logger.info("Triggering A2A server app startup within API server...")
|
|
107
|
+
for handler in _a2a_server_app.router.on_startup:
|
|
108
|
+
await handler()
|
|
109
|
+
yield
|
|
110
|
+
|
|
111
|
+
self.app = self.server.get_fast_api_app(lifespan=lifespan)
|
|
112
|
+
|
|
113
|
+
self.app.mount("/", _a2a_server_app)
|
|
92
114
|
|
|
93
115
|
# Attach ASGI middleware for unified telemetry across all routes
|
|
94
116
|
self.app.add_middleware(AgentkitTelemetryHTTPMiddleware)
|
|
@@ -171,7 +193,9 @@ class AgentkitAgentServerApp(BaseAgentkitApp):
|
|
|
171
193
|
pass
|
|
172
194
|
except Exception as e:
|
|
173
195
|
yield f'data: {{"error": "{str(e)}"}}\n\n'
|
|
174
|
-
telemetry.trace_agent_server_finish(
|
|
196
|
+
telemetry.trace_agent_server_finish(
|
|
197
|
+
path="/invoke", func_result="", exception=e
|
|
198
|
+
)
|
|
175
199
|
|
|
176
200
|
return StreamingResponse(
|
|
177
201
|
event_generator(),
|
{agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/client/base_agentkit_client.py
RENAMED
|
@@ -20,7 +20,6 @@ Provides common initialization and API invocation logic.
|
|
|
20
20
|
from typing import Any, Dict, Union, Optional
|
|
21
21
|
|
|
22
22
|
from agentkit.client.base_service_client import BaseServiceClient, ApiConfig
|
|
23
|
-
from agentkit.utils.ve_sign import get_volc_agentkit_host_info, get_volc_agentkit_scheme
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
class BaseAgentkitClient(BaseServiceClient):
|
|
@@ -60,30 +59,15 @@ class BaseAgentkitClient(BaseServiceClient):
|
|
|
60
59
|
service_name: Service name for logging (e.g., 'knowledge', 'memory')
|
|
61
60
|
"""
|
|
62
61
|
super().__init__(
|
|
62
|
+
service="agentkit",
|
|
63
63
|
access_key=access_key,
|
|
64
64
|
secret_key=secret_key,
|
|
65
65
|
region=region,
|
|
66
66
|
session_token=session_token,
|
|
67
67
|
service_name=service_name,
|
|
68
|
-
credential_env_prefix="AGENTKIT",
|
|
69
68
|
header=header,
|
|
70
69
|
)
|
|
71
70
|
|
|
72
|
-
def _get_service_config(self) -> Dict[str, str]:
|
|
73
|
-
"""
|
|
74
|
-
Get AgentKit service configuration.
|
|
75
|
-
|
|
76
|
-
Returns:
|
|
77
|
-
Dictionary with host, api_version, and service
|
|
78
|
-
"""
|
|
79
|
-
host, api_version, service = get_volc_agentkit_host_info()
|
|
80
|
-
return {
|
|
81
|
-
"host": host,
|
|
82
|
-
"api_version": api_version,
|
|
83
|
-
"service": service,
|
|
84
|
-
"scheme": get_volc_agentkit_scheme(),
|
|
85
|
-
}
|
|
86
|
-
|
|
87
71
|
def _get(self, api_action: str, params: Dict[str, Any] = None) -> str:
|
|
88
72
|
"""Legacy method for GET requests."""
|
|
89
73
|
try:
|
|
@@ -20,7 +20,6 @@ Uses the same volcengine.base.Service approach as AgentKit services.
|
|
|
20
20
|
from typing import Dict, Union
|
|
21
21
|
|
|
22
22
|
from agentkit.client.base_service_client import BaseServiceClient, ApiConfig
|
|
23
|
-
from agentkit.utils.ve_sign import get_volc_iam_host_scheme
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
class BaseIAMClient(BaseServiceClient):
|
|
@@ -64,25 +63,10 @@ class BaseIAMClient(BaseServiceClient):
|
|
|
64
63
|
service_name: Service name for logging
|
|
65
64
|
"""
|
|
66
65
|
super().__init__(
|
|
66
|
+
service="iam",
|
|
67
67
|
access_key=access_key,
|
|
68
68
|
secret_key=secret_key,
|
|
69
69
|
region=region,
|
|
70
70
|
session_token=session_token,
|
|
71
71
|
service_name=service_name,
|
|
72
|
-
credential_env_prefix="IAM",
|
|
73
72
|
)
|
|
74
|
-
|
|
75
|
-
def _get_service_config(self) -> Dict[str, str]:
|
|
76
|
-
"""
|
|
77
|
-
Get IAM service configuration.
|
|
78
|
-
|
|
79
|
-
Returns:
|
|
80
|
-
Dictionary with host, api_version, and service
|
|
81
|
-
"""
|
|
82
|
-
host, scheme = get_volc_iam_host_scheme()
|
|
83
|
-
return {
|
|
84
|
-
"host": host or self.IAM_HOST,
|
|
85
|
-
"api_version": self.IAM_API_VERSION,
|
|
86
|
-
"service": self.IAM_SERVICE_CODE,
|
|
87
|
-
"scheme": scheme,
|
|
88
|
-
}
|
{agentkit_sdk_python-0.2.2 → agentkit_sdk_python-0.3.1}/agentkit/client/base_service_client.py
RENAMED
|
@@ -26,10 +26,12 @@ from volcengine.base.Service import Service
|
|
|
26
26
|
from volcengine.Credentials import Credentials
|
|
27
27
|
from volcengine.ServiceInfo import ServiceInfo
|
|
28
28
|
|
|
29
|
-
from agentkit.
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
from agentkit.platform import (
|
|
30
|
+
VolcConfiguration,
|
|
31
|
+
resolve_credentials,
|
|
32
|
+
resolve_endpoint,
|
|
32
33
|
)
|
|
34
|
+
from agentkit.utils.ve_sign import ensure_x_custom_source_header
|
|
33
35
|
|
|
34
36
|
T = TypeVar("T")
|
|
35
37
|
|
|
@@ -62,7 +64,6 @@ class BaseServiceClient(Service):
|
|
|
62
64
|
|
|
63
65
|
Subclasses should:
|
|
64
66
|
1. Override API_ACTIONS with their API action configurations
|
|
65
|
-
2. Implement _get_service_config() to provide service-specific configuration
|
|
66
67
|
"""
|
|
67
68
|
|
|
68
69
|
# Subclasses should override this with their API action configurations
|
|
@@ -70,42 +71,53 @@ class BaseServiceClient(Service):
|
|
|
70
71
|
|
|
71
72
|
def __init__(
|
|
72
73
|
self,
|
|
74
|
+
service: str,
|
|
73
75
|
access_key: str = "",
|
|
74
76
|
secret_key: str = "",
|
|
75
77
|
region: str = "",
|
|
76
78
|
session_token: str = "",
|
|
77
79
|
service_name: str = "",
|
|
78
|
-
|
|
80
|
+
platform_config: Optional[VolcConfiguration] = None,
|
|
79
81
|
header: Optional[Dict[str, Any]] = None,
|
|
80
82
|
) -> None:
|
|
81
83
|
"""
|
|
82
84
|
Initialize the service client.
|
|
83
85
|
|
|
84
86
|
Args:
|
|
87
|
+
service: Logical service name for signing and endpoint resolution
|
|
85
88
|
access_key: Volcengine access key
|
|
86
89
|
secret_key: Volcengine secret key
|
|
87
|
-
region: Volcengine region
|
|
90
|
+
region: Volcengine region override for endpoint
|
|
88
91
|
session_token: Optional session token
|
|
89
92
|
service_name: Service name for logging
|
|
90
|
-
|
|
93
|
+
platform_config: Optional platform-level configuration overrides
|
|
91
94
|
"""
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
if platform_config is None:
|
|
96
|
+
platform_config = VolcConfiguration()
|
|
97
|
+
|
|
98
|
+
creds = resolve_credentials(
|
|
99
|
+
service=service,
|
|
100
|
+
explicit_access_key=access_key or None,
|
|
101
|
+
explicit_secret_key=secret_key or None,
|
|
102
|
+
platform_config=platform_config,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
ep = resolve_endpoint(
|
|
106
|
+
service=service,
|
|
107
|
+
region=region or None,
|
|
108
|
+
platform_config=platform_config,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
self.access_key = creds.access_key
|
|
112
|
+
self.secret_key = creds.secret_key
|
|
113
|
+
self.session_token = creds.session_token
|
|
114
|
+
|
|
115
|
+
self.host = ep.host
|
|
116
|
+
self.region = ep.region
|
|
117
|
+
self.service = ep.service
|
|
118
|
+
self.scheme = ep.scheme
|
|
119
|
+
self.api_version = ep.api_version
|
|
103
120
|
|
|
104
|
-
# Store credentials and service info
|
|
105
|
-
self.access_key = access_key
|
|
106
|
-
self.secret_key = secret_key
|
|
107
|
-
self.region = region
|
|
108
|
-
self.session_token = session_token
|
|
109
121
|
self.service_name = service_name
|
|
110
122
|
|
|
111
123
|
if header is None:
|
|
@@ -116,14 +128,6 @@ class BaseServiceClient(Service):
|
|
|
116
128
|
effective_header = {"Accept": "application/json", **effective_header}
|
|
117
129
|
|
|
118
130
|
effective_header = ensure_x_custom_source_header(effective_header)
|
|
119
|
-
|
|
120
|
-
# Get service-specific configuration from subclass
|
|
121
|
-
config = self._get_service_config()
|
|
122
|
-
self.host = config["host"]
|
|
123
|
-
self.api_version = config["api_version"]
|
|
124
|
-
self.service = config["service"]
|
|
125
|
-
self.scheme = config.get("scheme", "https")
|
|
126
|
-
|
|
127
131
|
# Create ServiceInfo
|
|
128
132
|
self.service_info = ServiceInfo(
|
|
129
133
|
host=self.host,
|
|
@@ -145,20 +149,9 @@ class BaseServiceClient(Service):
|
|
|
145
149
|
|
|
146
150
|
# Initialize parent Service class
|
|
147
151
|
Service.__init__(self, service_info=self.service_info, api_info=self.api_info)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
Get service-specific configuration.
|
|
152
|
-
|
|
153
|
-
Subclasses must override this method to provide:
|
|
154
|
-
- host: API endpoint host
|
|
155
|
-
- api_version: API version string
|
|
156
|
-
- service: Service name for signing
|
|
157
|
-
|
|
158
|
-
Returns:
|
|
159
|
-
Dictionary with 'host', 'api_version', and 'service' keys
|
|
160
|
-
"""
|
|
161
|
-
raise NotImplementedError("Subclasses must implement _get_service_config()")
|
|
152
|
+
# need setting ak/sk after initializing Service to avoid volcengine SDK bugs
|
|
153
|
+
self.set_ak(self.access_key)
|
|
154
|
+
self.set_sk(self.secret_key)
|
|
162
155
|
|
|
163
156
|
def _build_api_info(self) -> Dict[str, ApiInfo]:
|
|
164
157
|
"""
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Copyright (c) 2025 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 Optional
|
|
18
|
+
|
|
19
|
+
from agentkit.platform.configuration import VolcConfiguration, Endpoint, Credentials
|
|
20
|
+
from agentkit.platform.constants import DEFAULT_REGION_RULES
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"VolcConfiguration",
|
|
24
|
+
"Endpoint",
|
|
25
|
+
"Credentials",
|
|
26
|
+
"resolve_endpoint",
|
|
27
|
+
"resolve_credentials",
|
|
28
|
+
"DEFAULT_REGION_RULES",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
# Backward compatibility wrappers
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def resolve_endpoint(
|
|
35
|
+
service: str,
|
|
36
|
+
*,
|
|
37
|
+
region: Optional[str] = None,
|
|
38
|
+
platform_config: Optional[VolcConfiguration] = None,
|
|
39
|
+
) -> Endpoint:
|
|
40
|
+
"""
|
|
41
|
+
Resolves the endpoint for a service.
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
service: Service identifier (e.g. 'agentkit', 'cr')
|
|
45
|
+
region: Explicit region override
|
|
46
|
+
platform_config: Optional configuration object. If provided, 'region' arg overrides config.
|
|
47
|
+
"""
|
|
48
|
+
# If region is provided explicitly, it should override the config's region.
|
|
49
|
+
# We can achieve this by creating a new ephemeral config or just letting VolcConfiguration handle it?
|
|
50
|
+
# Since VolcConfiguration is immutable-ish, we can just instantiate one if needed.
|
|
51
|
+
|
|
52
|
+
if platform_config:
|
|
53
|
+
# If explicit region is passed, it overrides the config's region for this call
|
|
54
|
+
if region and region != platform_config.region:
|
|
55
|
+
# Create a temporary lightweight clone with new region, keeping creds
|
|
56
|
+
# Or more simply, VolcConfiguration handles service-specific region overrides internally
|
|
57
|
+
# but here 'region' is a global override for this call.
|
|
58
|
+
# Let's create a new config merging both.
|
|
59
|
+
cfg = VolcConfiguration(
|
|
60
|
+
region=region,
|
|
61
|
+
access_key=platform_config._ak,
|
|
62
|
+
secret_key=platform_config._sk,
|
|
63
|
+
)
|
|
64
|
+
else:
|
|
65
|
+
cfg = platform_config
|
|
66
|
+
else:
|
|
67
|
+
cfg = VolcConfiguration(region=region)
|
|
68
|
+
|
|
69
|
+
return cfg.get_service_endpoint(service)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def resolve_credentials(
|
|
73
|
+
service: str,
|
|
74
|
+
*,
|
|
75
|
+
explicit_access_key: Optional[str] = None,
|
|
76
|
+
explicit_secret_key: Optional[str] = None,
|
|
77
|
+
platform_config: Optional[VolcConfiguration] = None,
|
|
78
|
+
) -> Credentials:
|
|
79
|
+
"""
|
|
80
|
+
Resolves credentials for a service.
|
|
81
|
+
"""
|
|
82
|
+
# 1. Explicit args take absolute precedence
|
|
83
|
+
if explicit_access_key and explicit_secret_key:
|
|
84
|
+
return Credentials(
|
|
85
|
+
access_key=explicit_access_key, secret_key=explicit_secret_key
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
cfg = platform_config or VolcConfiguration()
|
|
89
|
+
return cfg.get_service_credentials(service)
|