agentkit-sdk-python 0.1.6__tar.gz → 0.1.11__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.1.6 → agentkit_sdk_python-0.1.11}/PKG-INFO +2 -3
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/a2a_app/a2a_app.py +0 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/mcp_app/mcp_app.py +0 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/mcp_app/telemetry.py +0 -2
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/simple_app_handlers.py +4 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/telemetry.py +1 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/client/__init__.py +6 -2
- agentkit_sdk_python-0.1.11/agentkit/client/base_agentkit_client.py +92 -0
- agentkit_sdk_python-0.1.11/agentkit/client/base_iam_client.py +85 -0
- agentkit_sdk_python-0.1.6/agentkit/client/base_client.py → agentkit_sdk_python-0.1.11/agentkit/client/base_service_client.py +43 -30
- agentkit_sdk_python-0.1.11/agentkit/sdk/__init__.py +14 -0
- agentkit_sdk_python-0.1.11/agentkit/sdk/account/client.py +110 -0
- agentkit_sdk_python-0.1.11/agentkit/sdk/account/types.py +45 -0
- {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/identity/auth.py +6 -5
- {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/knowledge/__init__.py +3 -6
- agentkit_sdk_python-0.1.6/agentkit/knowledge/knowledge.py → agentkit_sdk_python-0.1.11/agentkit/sdk/knowledge/client.py +37 -40
- agentkit_sdk_python-0.1.11/agentkit/sdk/knowledge/types.py +207 -0
- {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/mcp/__init__.py +3 -3
- agentkit_sdk_python-0.1.6/agentkit/mcp/mcp.py → agentkit_sdk_python-0.1.11/agentkit/sdk/mcp/client.py +66 -121
- agentkit_sdk_python-0.1.11/agentkit/sdk/mcp/types.py +736 -0
- {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/memory/__init__.py +3 -3
- agentkit_sdk_python-0.1.6/agentkit/memory/memory.py → agentkit_sdk_python-0.1.11/agentkit/sdk/memory/client.py +32 -63
- agentkit_sdk_python-0.1.11/agentkit/sdk/memory/types.py +288 -0
- agentkit_sdk_python-0.1.6/agentkit/runtime/runtime_v1.py → agentkit_sdk_python-0.1.11/agentkit/sdk/runtime/client.py +54 -101
- agentkit_sdk_python-0.1.11/agentkit/sdk/runtime/types.py +463 -0
- agentkit_sdk_python-0.1.11/agentkit/sdk/tools/__init__.py +15 -0
- agentkit_sdk_python-0.1.6/agentkit/tools/tools.py → agentkit_sdk_python-0.1.11/agentkit/sdk/tools/client.py +64 -81
- agentkit_sdk_python-0.1.11/agentkit/sdk/tools/types.py +330 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/__init__.py +4 -1
- agentkit_sdk_python-0.1.11/agentkit/toolkit/builders/__init__.py +46 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/builders/base.py +111 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/builder/local_docker_builder.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/builders/local_docker.py +137 -76
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/builder/ve_core_pipeline_builder.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/builders/ve_pipeline.py +494 -395
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/__main__.py +1 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli.py +3 -3
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_build.py +27 -15
- agentkit_sdk_python-0.1.11/agentkit/toolkit/cli/cli_config.py +441 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_deploy.py +15 -8
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_destroy.py +3 -4
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_init.py +75 -34
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_invoke.py +51 -35
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_launch.py +17 -12
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_status.py +57 -30
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_version.py +1 -1
- agentkit_sdk_python-0.1.11/agentkit/toolkit/cli/console_reporter.py +211 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/auto_prompt.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/cli/interactive_config.py +281 -242
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/utils.py +8 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/__init__.py +7 -19
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/config.py +122 -174
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/config_handler.py +92 -114
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/config_validator.py +26 -42
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/constants.py +7 -10
- agentkit_sdk_python-0.1.11/agentkit/toolkit/config/dataclass_utils.py +340 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/config/docker_build_config.py +89 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/config/global_config.py +376 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/config/strategy_configs.py +153 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/utils.py +11 -16
- agentkit_sdk_python-0.1.11/agentkit/toolkit/context.py +234 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/docker/__init__.py +38 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/container.py +4 -7
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/dockerfile/manager.py +24 -32
- agentkit_sdk_python-0.1.11/agentkit/toolkit/errors.py +145 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/__init__.py +50 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/base_executor.py +493 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/build_executor.py +167 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/deploy_executor.py +136 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/init_service.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/init_executor.py +85 -104
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/invoke_executor.py +143 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/lifecycle_executor.py +372 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/status_executor.py +121 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/models.py +591 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/reporter.py +354 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/a2a.py +86 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/basic.py +3 -10
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/basic_stream.py +5 -3
- agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/agent.go +63 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/build.sh +27 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/go.mod +129 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/go.sum +1130 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/main.go +135 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/financial_analyst.py +1 -5
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/templates/golang/Dockerfile.j2 +7 -8
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/templates/python/Dockerfile.j2 +1 -2
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/wrappers/wrapper_stream.py.jinja2 +2 -2
- agentkit_sdk_python-0.1.11/agentkit/toolkit/runners/__init__.py +48 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner → agentkit_sdk_python-0.1.11/agentkit/toolkit/runners}/base.py +93 -48
- agentkit_sdk_python-0.1.11/agentkit/toolkit/runners/local_docker.py +585 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/runners/ve_agentkit.py +865 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/__init__.py +3 -3
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/builder.py +18 -8
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/client.py +3 -4
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/config.py +8 -8
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/deployer.py +10 -4
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/initializer.py +7 -6
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/invoker.py +12 -5
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/lifecycle.py +20 -10
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/status.py +10 -4
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/build_config.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/__init__.py +15 -10
- agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/base_strategy.py +169 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/cloud_strategy.py +297 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/hybrid_strategy.py +412 -0
- agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/local_strategy.py +243 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/common_config.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/utils/__init__.py +3 -2
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/agent_parser_service.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/utils/agent_parser.py +25 -17
- agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/__init__.py +50 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/ve_code_pipeline.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/code_pipeline.py +1 -28
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/ve_cr.py → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/cr.py +1 -3
- agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/iam.py +312 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/services/cr_service.py +114 -119
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/services/tos_service.py +100 -81
- agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/sts.py +102 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/utils/project_archiver.py +1 -1
- agentkit_sdk_python-0.1.11/agentkit/utils/logging_config.py +436 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/misc.py +35 -1
- agentkit_sdk_python-0.1.11/agentkit/utils/template_utils.py +179 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/ve_sign.py +10 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/version.py +1 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/PKG-INFO +2 -3
- agentkit_sdk_python-0.1.11/agentkit_sdk_python.egg-info/SOURCES.txt +152 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/requires.txt +0 -1
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/pyproject.toml +2 -2
- agentkit_sdk_python-0.1.6/agentkit/knowledge/knowledge_all_types.py +0 -189
- agentkit_sdk_python-0.1.6/agentkit/mcp/mcp_all_types.py +0 -1010
- agentkit_sdk_python-0.1.6/agentkit/memory/memory_all_types.py +0 -349
- agentkit_sdk_python-0.1.6/agentkit/runtime/runtime.py +0 -191
- agentkit_sdk_python-0.1.6/agentkit/runtime/runtime_all_types.py +0 -518
- agentkit_sdk_python-0.1.6/agentkit/runtime/types.py +0 -188
- agentkit_sdk_python-0.1.6/agentkit/toolkit/cli/cli_config.py +0 -404
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/config_manager.py +0 -48
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/dataclass_utils.py +0 -181
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/deploy_config.py +0 -15
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/docker_build_config.py +0 -75
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/global_config.py +0 -281
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/global_config_resolver.py +0 -120
- agentkit_sdk_python-0.1.6/agentkit/toolkit/config/workflow_configs.py +0 -158
- agentkit_sdk_python-0.1.6/agentkit/toolkit/consts.py +0 -15
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/__init__.py +0 -46
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/__init__.py +0 -13
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/base_builder.py +0 -20
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/cloud_builder.py +0 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/local_builder.py +0 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/__init__.py +0 -13
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/base_deployer.py +0 -20
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/cloud_deployer.py +0 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/local_deployer.py +0 -0
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/field_mapper.py +0 -288
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/__init__.py +0 -29
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/agent_file_info.py +0 -55
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/build_result.py +0 -62
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/deploy_result.py +0 -66
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/init_result.py +0 -176
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/invoke_result.py +0 -84
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/lifecycle_result.py +0 -49
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/status_result.py +0 -76
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/__init__.py +0 -29
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/base_service.py +0 -150
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/build_service.py +0 -104
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/deploy_service.py +0 -97
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/invoke_service.py +0 -113
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/lifecycle_service.py +0 -220
- agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/status_service.py +0 -144
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/__init__.py +0 -17
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/builder/__init__.py +0 -23
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/builder/base.py +0 -59
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner/__init__.py +0 -26
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner/local_docker_runner.py +0 -407
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner/ve_agentkit_runner.py +0 -705
- agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/ve_iam.py +0 -210
- agentkit_sdk_python-0.1.6/agentkit/toolkit/resources/samples/simple_a2a_veadk.py +0 -46
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/__init__.py +0 -27
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/base.py +0 -160
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/hybird_local_ve_workflow.py +0 -554
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/local_workflow.py +0 -447
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/models.py +0 -168
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/progress.py +0 -328
- agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/ve_agentkit_workflow.py +0 -497
- agentkit_sdk_python-0.1.6/agentkit/tools/__init__.py +0 -17
- agentkit_sdk_python-0.1.6/agentkit/tools/tools_all_types.py +0 -398
- agentkit_sdk_python-0.1.6/agentkit/utils/logging_config.py +0 -366
- agentkit_sdk_python-0.1.6/agentkit/utils/template_utils.py +0 -256
- agentkit_sdk_python-0.1.6/agentkit_sdk_python.egg-info/SOURCES.txt +0 -162
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/LICENSE +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/MANIFEST.in +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/README.md +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/a2a_app/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/a2a_app/telemetry.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/agent_server_app/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/agent_server_app/agent_server_app.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/base_app.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/mcp_app/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/simple_app.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/utils.py +0 -0
- {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/identity/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/runtime/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/dockerfile/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/dockerfile/metadata.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/customer_support_assistant.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/simple_app_veadk.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/simple_mcp_veadk.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/templates/code-pipeline-tos-cr-step.j2 +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/wrappers/wrapper_basic.py.jinja2 +0 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/services/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/__init__.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/credential.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/request.py +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/dependency_links.txt +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/entry_points.txt +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/top_level.txt +0 -0
- {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentkit-sdk-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
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
|
-
Author-email: Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>, Xiangrui Cheng <innsdcc@gmail.com>
|
|
5
|
+
Author-email: Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>, Xiangrui Cheng <innsdcc@gmail.com>, Yumeng Bao <baoyumeng.123@gmail.com>
|
|
6
6
|
License: Apache License
|
|
7
7
|
Version 2.0, January 2004
|
|
8
8
|
http://www.apache.org/licenses/
|
|
@@ -226,7 +226,6 @@ Requires-Dist: docker
|
|
|
226
226
|
Requires-Dist: jinja2
|
|
227
227
|
Requires-Dist: tos>=2.8.7
|
|
228
228
|
Requires-Dist: volcengine
|
|
229
|
-
Requires-Dist: volcengine-python-sdk
|
|
230
229
|
Requires-Dist: pyfiglet>=1.0.2
|
|
231
230
|
Provides-Extra: extensions
|
|
232
231
|
Provides-Extra: toolkit
|
|
@@ -21,8 +21,6 @@ from opentelemetry import trace
|
|
|
21
21
|
from opentelemetry.trace import get_tracer
|
|
22
22
|
from opentelemetry.metrics import get_meter
|
|
23
23
|
from opentelemetry.trace.span import Span
|
|
24
|
-
from a2a.server.agent_execution.context import RequestContext
|
|
25
|
-
from google.adk.a2a.converters.request_converter import _get_user_id
|
|
26
24
|
|
|
27
25
|
from agentkit.apps.utils import safe_serialize_to_json_string
|
|
28
26
|
|
|
@@ -133,7 +133,10 @@ class InvokeHandler(BaseHandler):
|
|
|
133
133
|
Returns:
|
|
134
134
|
bytes: SSE-formatted data ready for streaming
|
|
135
135
|
"""
|
|
136
|
-
|
|
136
|
+
if isinstance(obj, str):
|
|
137
|
+
json_string = obj
|
|
138
|
+
else:
|
|
139
|
+
json_string = safe_serialize_to_json_string(obj)
|
|
137
140
|
sse_data = f"data: {json_string}\n\n"
|
|
138
141
|
return sse_data.encode("utf-8")
|
|
139
142
|
|
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
"""
|
|
16
16
|
AgentKit Client Module
|
|
17
17
|
|
|
18
|
-
Provides base client infrastructure for all AgentKit services.
|
|
18
|
+
Provides base client infrastructure for all AgentKit and Volcengine services.
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
from agentkit.client.
|
|
21
|
+
from agentkit.client.base_service_client import BaseServiceClient, ApiConfig
|
|
22
|
+
from agentkit.client.base_agentkit_client import BaseAgentkitClient
|
|
23
|
+
from agentkit.client.base_iam_client import BaseIAMClient
|
|
22
24
|
|
|
23
25
|
__all__ = [
|
|
26
|
+
'BaseServiceClient',
|
|
24
27
|
'BaseAgentkitClient',
|
|
28
|
+
'BaseIAMClient',
|
|
25
29
|
'ApiConfig',
|
|
26
30
|
]
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
"""
|
|
16
|
+
Base client for AgentKit services.
|
|
17
|
+
Provides common initialization and API invocation logic.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from typing import Any, Dict, Union, Optional
|
|
21
|
+
|
|
22
|
+
from agentkit.client.base_service_client import BaseServiceClient, ApiConfig
|
|
23
|
+
from agentkit.utils.ve_sign import get_volc_agentkit_host_info
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class BaseAgentkitClient(BaseServiceClient):
|
|
27
|
+
"""
|
|
28
|
+
Base client for all AgentKit services.
|
|
29
|
+
|
|
30
|
+
This class provides:
|
|
31
|
+
1. Common credential initialization
|
|
32
|
+
2. Unified API invocation logic with error handling
|
|
33
|
+
3. Automatic ApiInfo generation with flexible configuration
|
|
34
|
+
|
|
35
|
+
Subclasses should override API_ACTIONS with either:
|
|
36
|
+
- Simple dict mapping: {"ActionName": "ActionName"}
|
|
37
|
+
- Detailed ApiConfig: {"ActionName": ApiConfig(action="ActionName", method="GET", path="/custom")}
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
# Subclasses should override this with their API action configurations
|
|
41
|
+
API_ACTIONS: Dict[str, Union[str, ApiConfig]] = {}
|
|
42
|
+
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
access_key: str = "",
|
|
46
|
+
secret_key: str = "",
|
|
47
|
+
region: str = "",
|
|
48
|
+
session_token: str = "",
|
|
49
|
+
service_name: str = "",
|
|
50
|
+
header: Optional[Dict[str, Any]] = {"Accept": "application/json"},
|
|
51
|
+
) -> None:
|
|
52
|
+
"""
|
|
53
|
+
Initialize the AgentKit client.
|
|
54
|
+
|
|
55
|
+
Args:
|
|
56
|
+
access_key: Volcengine access key
|
|
57
|
+
secret_key: Volcengine secret key
|
|
58
|
+
region: Volcengine region
|
|
59
|
+
session_token: Optional session token
|
|
60
|
+
service_name: Service name for logging (e.g., 'knowledge', 'memory')
|
|
61
|
+
"""
|
|
62
|
+
super().__init__(
|
|
63
|
+
access_key=access_key,
|
|
64
|
+
secret_key=secret_key,
|
|
65
|
+
region=region,
|
|
66
|
+
session_token=session_token,
|
|
67
|
+
service_name=service_name,
|
|
68
|
+
credential_env_prefix='AGENTKIT',
|
|
69
|
+
header=header,
|
|
70
|
+
)
|
|
71
|
+
|
|
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
|
+
}
|
|
85
|
+
|
|
86
|
+
def _get(self, api_action: str, params: Dict[str, Any] = None) -> str:
|
|
87
|
+
"""Legacy method for GET requests."""
|
|
88
|
+
try:
|
|
89
|
+
resp = self.get(api_action, params)
|
|
90
|
+
return resp
|
|
91
|
+
except Exception as e:
|
|
92
|
+
raise Exception(f"Failed to {api_action}: {str(e)}")
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
"""
|
|
16
|
+
Base client for IAM services.
|
|
17
|
+
Uses the same volcengine.base.Service approach as AgentKit services.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from typing import Dict, Union
|
|
21
|
+
|
|
22
|
+
from agentkit.client.base_service_client import BaseServiceClient, ApiConfig
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class BaseIAMClient(BaseServiceClient):
|
|
26
|
+
"""
|
|
27
|
+
Base client for IAM services.
|
|
28
|
+
|
|
29
|
+
This class provides the same interface as BaseAgentkitClient but for IAM services:
|
|
30
|
+
1. Common credential initialization
|
|
31
|
+
2. Unified API invocation logic with error handling
|
|
32
|
+
3. Automatic ApiInfo generation with flexible configuration
|
|
33
|
+
|
|
34
|
+
Subclasses should override API_ACTIONS with either:
|
|
35
|
+
- Simple dict mapping: {"ActionName": "ActionName"}
|
|
36
|
+
- Detailed ApiConfig: {"ActionName": ApiConfig(action="ActionName", method="GET", path="/custom")}
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
# Subclasses should override this with their API action configurations
|
|
40
|
+
API_ACTIONS: Dict[str, Union[str, ApiConfig]] = {}
|
|
41
|
+
|
|
42
|
+
# IAM service specific configuration
|
|
43
|
+
IAM_API_VERSION = "2018-01-01"
|
|
44
|
+
IAM_SERVICE_CODE = "iam"
|
|
45
|
+
IAM_HOST ="open.volcengineapi.com"
|
|
46
|
+
|
|
47
|
+
def __init__(
|
|
48
|
+
self,
|
|
49
|
+
access_key: str = "",
|
|
50
|
+
secret_key: str = "",
|
|
51
|
+
region: str = "",
|
|
52
|
+
session_token: str = "",
|
|
53
|
+
service_name: str = "iam",
|
|
54
|
+
) -> None:
|
|
55
|
+
"""
|
|
56
|
+
Initialize the IAM client.
|
|
57
|
+
|
|
58
|
+
Args:
|
|
59
|
+
access_key: Volcengine access key
|
|
60
|
+
secret_key: Volcengine secret key
|
|
61
|
+
region: Volcengine region
|
|
62
|
+
session_token: Optional session token
|
|
63
|
+
service_name: Service name for logging
|
|
64
|
+
"""
|
|
65
|
+
super().__init__(
|
|
66
|
+
access_key=access_key,
|
|
67
|
+
secret_key=secret_key,
|
|
68
|
+
region=region,
|
|
69
|
+
session_token=session_token,
|
|
70
|
+
service_name=service_name,
|
|
71
|
+
credential_env_prefix='IAM',
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
def _get_service_config(self) -> Dict[str, str]:
|
|
75
|
+
"""
|
|
76
|
+
Get IAM service configuration.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
Dictionary with host, api_version, and service
|
|
80
|
+
"""
|
|
81
|
+
return {
|
|
82
|
+
'host': self.IAM_HOST,
|
|
83
|
+
'api_version': self.IAM_API_VERSION,
|
|
84
|
+
'service': self.IAM_SERVICE_CODE,
|
|
85
|
+
}
|
|
@@ -13,22 +13,20 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
"""
|
|
16
|
-
Base client for
|
|
17
|
-
|
|
16
|
+
Base service client that provides common implementation for all Volcengine services.
|
|
17
|
+
This is the top-level base class for all service clients.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
import json
|
|
21
|
-
from typing import Any, Dict, Type, TypeVar,
|
|
21
|
+
from typing import Any, Dict, Type, TypeVar, Union, Optional
|
|
22
22
|
from dataclasses import dataclass
|
|
23
23
|
|
|
24
24
|
from volcengine.ApiInfo import ApiInfo
|
|
25
25
|
from volcengine.base.Service import Service
|
|
26
26
|
from volcengine.Credentials import Credentials
|
|
27
27
|
from volcengine.ServiceInfo import ServiceInfo
|
|
28
|
-
from agentkit.utils.ve_sign import get_volc_ak_sk_region, get_volc_agentkit_host_info
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
from pydantic import BaseModel
|
|
29
|
+
from agentkit.utils.ve_sign import get_volc_ak_sk_region
|
|
32
30
|
|
|
33
31
|
T = TypeVar('T')
|
|
34
32
|
|
|
@@ -49,18 +47,18 @@ class ApiConfig:
|
|
|
49
47
|
self.header = {}
|
|
50
48
|
|
|
51
49
|
|
|
52
|
-
class
|
|
50
|
+
class BaseServiceClient(Service):
|
|
53
51
|
"""
|
|
54
|
-
Base
|
|
52
|
+
Base class for all Volcengine service clients.
|
|
55
53
|
|
|
56
54
|
This class provides:
|
|
57
|
-
1.
|
|
58
|
-
2.
|
|
59
|
-
3.
|
|
55
|
+
1. Unified interface for all Volcengine services (AgentKit, IAM, etc.)
|
|
56
|
+
2. Common implementation using volcengine.base.Service
|
|
57
|
+
3. Shared credential management and API invocation logic
|
|
60
58
|
|
|
61
|
-
Subclasses should
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
Subclasses should:
|
|
60
|
+
1. Override API_ACTIONS with their API action configurations
|
|
61
|
+
2. Implement _get_service_config() to provide service-specific configuration
|
|
64
62
|
"""
|
|
65
63
|
|
|
66
64
|
# Subclasses should override this with their API action configurations
|
|
@@ -73,20 +71,23 @@ class BaseAgentkitClient(Service):
|
|
|
73
71
|
region: str = "",
|
|
74
72
|
session_token: str = "",
|
|
75
73
|
service_name: str = "",
|
|
74
|
+
credential_env_prefix: str = "",
|
|
75
|
+
header: Optional[Dict[str, Any]] = {"Accept": "application/json"},
|
|
76
76
|
) -> None:
|
|
77
77
|
"""
|
|
78
|
-
Initialize the
|
|
78
|
+
Initialize the service client.
|
|
79
79
|
|
|
80
80
|
Args:
|
|
81
81
|
access_key: Volcengine access key
|
|
82
82
|
secret_key: Volcengine secret key
|
|
83
83
|
region: Volcengine region
|
|
84
84
|
session_token: Optional session token
|
|
85
|
-
service_name: Service name for logging
|
|
85
|
+
service_name: Service name for logging
|
|
86
|
+
credential_env_prefix: Environment variable prefix for credentials (e.g., 'AGENTKIT', 'IAM')
|
|
86
87
|
"""
|
|
87
88
|
# Validate and get credentials
|
|
88
89
|
if not any([access_key, secret_key, region]):
|
|
89
|
-
access_key, secret_key, region = get_volc_ak_sk_region(
|
|
90
|
+
access_key, secret_key, region = get_volc_ak_sk_region(credential_env_prefix)
|
|
90
91
|
else:
|
|
91
92
|
if not all([access_key, secret_key, region]):
|
|
92
93
|
raise ValueError(
|
|
@@ -94,18 +95,23 @@ class BaseAgentkitClient(Service):
|
|
|
94
95
|
"missing access key, secret key or region"
|
|
95
96
|
)
|
|
96
97
|
|
|
98
|
+
# Store credentials and service info
|
|
97
99
|
self.access_key = access_key
|
|
98
100
|
self.secret_key = secret_key
|
|
99
101
|
self.region = region
|
|
100
102
|
self.session_token = session_token
|
|
103
|
+
self.service_name = service_name
|
|
104
|
+
|
|
105
|
+
# Get service-specific configuration from subclass
|
|
106
|
+
config = self._get_service_config()
|
|
107
|
+
self.host = config['host']
|
|
108
|
+
self.api_version = config['api_version']
|
|
109
|
+
self.service = config['service']
|
|
101
110
|
|
|
102
|
-
# Get service configuration
|
|
103
|
-
self.host, self.api_version, self.service = get_volc_agentkit_host_info()
|
|
104
|
-
|
|
105
111
|
# Create ServiceInfo
|
|
106
112
|
self.service_info = ServiceInfo(
|
|
107
113
|
host=self.host,
|
|
108
|
-
header=
|
|
114
|
+
header=header,
|
|
109
115
|
credentials=Credentials(
|
|
110
116
|
ak=self.access_key,
|
|
111
117
|
sk=self.secret_key,
|
|
@@ -122,7 +128,21 @@ class BaseAgentkitClient(Service):
|
|
|
122
128
|
self.api_info = self._build_api_info()
|
|
123
129
|
|
|
124
130
|
# Initialize parent Service class
|
|
125
|
-
|
|
131
|
+
Service.__init__(self, service_info=self.service_info, api_info=self.api_info)
|
|
132
|
+
|
|
133
|
+
def _get_service_config(self) -> Dict[str, str]:
|
|
134
|
+
"""
|
|
135
|
+
Get service-specific configuration.
|
|
136
|
+
|
|
137
|
+
Subclasses must override this method to provide:
|
|
138
|
+
- host: API endpoint host
|
|
139
|
+
- api_version: API version string
|
|
140
|
+
- service: Service name for signing
|
|
141
|
+
|
|
142
|
+
Returns:
|
|
143
|
+
Dictionary with 'host', 'api_version', and 'service' keys
|
|
144
|
+
"""
|
|
145
|
+
raise NotImplementedError("Subclasses must implement _get_service_config()")
|
|
126
146
|
|
|
127
147
|
def _build_api_info(self) -> Dict[str, ApiInfo]:
|
|
128
148
|
"""
|
|
@@ -161,12 +181,6 @@ class BaseAgentkitClient(Service):
|
|
|
161
181
|
f"expected str or ApiConfig, got {type(action_config)}"
|
|
162
182
|
)
|
|
163
183
|
return api_info
|
|
164
|
-
def _get(self, api_action: str, params: Dict[str, Any] = None) -> str:
|
|
165
|
-
try:
|
|
166
|
-
resp = self.get(api_action, params)
|
|
167
|
-
return resp
|
|
168
|
-
except Exception as e:
|
|
169
|
-
raise Exception(f"Failed to {api_action}: {str(e)}")
|
|
170
184
|
|
|
171
185
|
def _invoke_api(
|
|
172
186
|
self,
|
|
@@ -179,7 +193,7 @@ class BaseAgentkitClient(Service):
|
|
|
179
193
|
Unified API invocation with error handling.
|
|
180
194
|
|
|
181
195
|
Args:
|
|
182
|
-
api_action: The API action name (e.g., '
|
|
196
|
+
api_action: The API action name (e.g., 'GetUser', 'ListRuntimes')
|
|
183
197
|
request: The request object (Pydantic model)
|
|
184
198
|
response_type: The response type to parse into
|
|
185
199
|
params: Additional query parameters
|
|
@@ -213,5 +227,4 @@ class BaseAgentkitClient(Service):
|
|
|
213
227
|
raise Exception(f"Failed to {api_action}: {error_msg}")
|
|
214
228
|
|
|
215
229
|
# Return typed response
|
|
216
|
-
# print(json.dumps(response_data, indent=2, ensure_ascii=False))
|
|
217
230
|
return response_type(**response_data.get('Result', {}))
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
# Auto-generated from API JSON definition
|
|
16
|
+
# Do not edit manually
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
from typing import Dict, List, Optional
|
|
21
|
+
from agentkit.client import BaseAgentkitClient
|
|
22
|
+
from agentkit.sdk.account.types import (
|
|
23
|
+
ListAccountLinkedServicesRequest,
|
|
24
|
+
ListAccountLinkedServicesResponse,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AgentkitAccountClient(BaseAgentkitClient):
|
|
29
|
+
"""AgentKit Account Management Service"""
|
|
30
|
+
API_ACTIONS: Dict[str, str] = {
|
|
31
|
+
"ListAccountLinkedServices": "ListAccountLinkedServices",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
def __init__(
|
|
35
|
+
self,
|
|
36
|
+
access_key: str = "",
|
|
37
|
+
secret_key: str = "",
|
|
38
|
+
region: str = "",
|
|
39
|
+
session_token: str = "",
|
|
40
|
+
) -> None:
|
|
41
|
+
super().__init__(
|
|
42
|
+
access_key=access_key,
|
|
43
|
+
secret_key=secret_key,
|
|
44
|
+
region=region,
|
|
45
|
+
session_token=session_token,
|
|
46
|
+
service_name="account",
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def list_account_linked_services(self, request: ListAccountLinkedServicesRequest) -> ListAccountLinkedServicesResponse:
|
|
51
|
+
return self._invoke_api(
|
|
52
|
+
api_action="ListAccountLinkedServices",
|
|
53
|
+
request=request,
|
|
54
|
+
response_type=ListAccountLinkedServicesResponse,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
def get_service_status(self, service_name: str) -> Optional[str]:
|
|
58
|
+
"""
|
|
59
|
+
Query the LinkServices status for a specific service.
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
service_name: The name of the service to query (e.g., 'ark', 'vefaas')
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
The status string ('Enabled' or 'Disabled'), or None if service not found.
|
|
66
|
+
"""
|
|
67
|
+
print(1)
|
|
68
|
+
response = self.list_account_linked_services(ListAccountLinkedServicesRequest())
|
|
69
|
+
print(2)
|
|
70
|
+
if not response.service_statuses:
|
|
71
|
+
return None
|
|
72
|
+
for svc in response.service_statuses:
|
|
73
|
+
if svc.service_name == service_name:
|
|
74
|
+
return svc.status
|
|
75
|
+
return None
|
|
76
|
+
|
|
77
|
+
def get_services_status(self, service_names: List[str]) -> Dict[str, Optional[str]]:
|
|
78
|
+
"""
|
|
79
|
+
Query the LinkServices status for multiple services.
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
service_names: List of service names to query (e.g., ['ark', 'vefaas', 'cr'])
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
A dict mapping service_name -> status ('Enabled'/'Disabled'/None if not found).
|
|
86
|
+
"""
|
|
87
|
+
response = self.list_account_linked_services(ListAccountLinkedServicesRequest())
|
|
88
|
+
status_map: Dict[str, Optional[str]] = {name: None for name in service_names}
|
|
89
|
+
if response.service_statuses:
|
|
90
|
+
for svc in response.service_statuses:
|
|
91
|
+
if svc.service_name in status_map:
|
|
92
|
+
status_map[svc.service_name] = svc.status
|
|
93
|
+
return status_map
|
|
94
|
+
|
|
95
|
+
def has_disabled_services(self) -> List[str]:
|
|
96
|
+
"""
|
|
97
|
+
Check if any returned service has a disabled status.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
A list of service names that are disabled (status != 'Enabled').
|
|
101
|
+
Returns empty list if all services are enabled.
|
|
102
|
+
"""
|
|
103
|
+
response = self.list_account_linked_services(ListAccountLinkedServicesRequest())
|
|
104
|
+
disabled = []
|
|
105
|
+
if response.service_statuses:
|
|
106
|
+
for svc in response.service_statuses:
|
|
107
|
+
if svc.status != "Enabled":
|
|
108
|
+
disabled.append(svc.service_name)
|
|
109
|
+
return disabled
|
|
110
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
# Auto-generated from API JSON definition
|
|
16
|
+
# Do not edit manually
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from pydantic import BaseModel, Field
|
|
22
|
+
|
|
23
|
+
class AccountBaseModel(BaseModel):
|
|
24
|
+
"""AgentKit auto-generated base model"""
|
|
25
|
+
model_config = {
|
|
26
|
+
"populate_by_name": True,
|
|
27
|
+
"arbitrary_types_allowed": True
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Data Types
|
|
32
|
+
class ServiceStatusesForListAccountLinkedServices(AccountBaseModel):
|
|
33
|
+
service_name: Optional[str] = Field(default=None, alias="ServiceName")
|
|
34
|
+
status: Optional[str] = Field(default=None, alias="Status")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# ListAccountLinkedServices - Request
|
|
38
|
+
class ListAccountLinkedServicesRequest(AccountBaseModel):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# ListAccountLinkedServices - Response
|
|
43
|
+
class ListAccountLinkedServicesResponse(AccountBaseModel):
|
|
44
|
+
service_statuses: Optional[list[ServiceStatusesForListAccountLinkedServices]] = Field(default=None, alias="ServiceStatuses")
|
|
45
|
+
|
{agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/identity/auth.py
RENAMED
|
@@ -18,7 +18,7 @@ from functools import wraps
|
|
|
18
18
|
from typing import Any, Callable
|
|
19
19
|
|
|
20
20
|
from agentkit.utils.credential import get_credential_from_vefaas_iam
|
|
21
|
-
from agentkit.utils.ve_sign import ve_request
|
|
21
|
+
from agentkit.utils.ve_sign import ve_request, get_identity_host_info
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
def requires_api_key(*, provider_name: str, into: str = "api_key"):
|
|
@@ -37,6 +37,7 @@ def requires_api_key(*, provider_name: str, into: str = "api_key"):
|
|
|
37
37
|
access_key = os.getenv("VOLCENGINE_ACCESS_KEY")
|
|
38
38
|
secret_key = os.getenv("VOLCENGINE_SECRET_KEY")
|
|
39
39
|
session_token = ""
|
|
40
|
+
host, version, service, region = get_identity_host_info()
|
|
40
41
|
|
|
41
42
|
if not (access_key and secret_key):
|
|
42
43
|
cred = get_credential_from_vefaas_iam()
|
|
@@ -53,10 +54,10 @@ def requires_api_key(*, provider_name: str, into: str = "api_key"):
|
|
|
53
54
|
header={"X-Security-Token": session_token} if session_token else {},
|
|
54
55
|
ak=access_key,
|
|
55
56
|
sk=secret_key,
|
|
56
|
-
version=
|
|
57
|
-
service=
|
|
58
|
-
host=
|
|
59
|
-
region=
|
|
57
|
+
version=version,
|
|
58
|
+
service=service,
|
|
59
|
+
host=host,
|
|
60
|
+
region=region,
|
|
60
61
|
)
|
|
61
62
|
|
|
62
63
|
try:
|
{agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/knowledge/__init__.py
RENAMED
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
from
|
|
16
|
-
from agentkit.knowledge.knowledge_all_types import (
|
|
14
|
+
from .client import AgentkitKnowledge
|
|
15
|
+
from .types import (
|
|
17
16
|
ListKnowledgeBasesRequest,
|
|
18
17
|
ListKnowledgeBasesResponse,
|
|
19
18
|
AddKnowledgeBaseRequest,
|
|
@@ -25,8 +24,6 @@ from agentkit.knowledge.knowledge_all_types import (
|
|
|
25
24
|
KnowledgeBasesForListKnowledgeBases,
|
|
26
25
|
KnowledgeBasesForAddKnowledgeBase,
|
|
27
26
|
ConnectionInfosForGetKnowledgeConnectionInfo,
|
|
28
|
-
KnowledgeBasesItem,
|
|
29
|
-
FiltersItem,
|
|
30
27
|
)
|
|
31
28
|
|
|
32
29
|
__all__ = [
|
|
@@ -44,4 +41,4 @@ __all__ = [
|
|
|
44
41
|
"ConnectionInfosForGetKnowledgeConnectionInfo",
|
|
45
42
|
"KnowledgeBasesItem",
|
|
46
43
|
"FiltersItem",
|
|
47
|
-
]
|
|
44
|
+
]
|