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.
Files changed (214) hide show
  1. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/PKG-INFO +2 -3
  2. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/a2a_app/a2a_app.py +0 -1
  3. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/mcp_app/mcp_app.py +0 -1
  4. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/mcp_app/telemetry.py +0 -2
  5. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/simple_app_handlers.py +4 -1
  6. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/telemetry.py +1 -1
  7. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/client/__init__.py +6 -2
  8. agentkit_sdk_python-0.1.11/agentkit/client/base_agentkit_client.py +92 -0
  9. agentkit_sdk_python-0.1.11/agentkit/client/base_iam_client.py +85 -0
  10. 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
  11. agentkit_sdk_python-0.1.11/agentkit/sdk/__init__.py +14 -0
  12. agentkit_sdk_python-0.1.11/agentkit/sdk/account/client.py +110 -0
  13. agentkit_sdk_python-0.1.11/agentkit/sdk/account/types.py +45 -0
  14. {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/identity/auth.py +6 -5
  15. {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/knowledge/__init__.py +3 -6
  16. agentkit_sdk_python-0.1.6/agentkit/knowledge/knowledge.py → agentkit_sdk_python-0.1.11/agentkit/sdk/knowledge/client.py +37 -40
  17. agentkit_sdk_python-0.1.11/agentkit/sdk/knowledge/types.py +207 -0
  18. {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/mcp/__init__.py +3 -3
  19. agentkit_sdk_python-0.1.6/agentkit/mcp/mcp.py → agentkit_sdk_python-0.1.11/agentkit/sdk/mcp/client.py +66 -121
  20. agentkit_sdk_python-0.1.11/agentkit/sdk/mcp/types.py +736 -0
  21. {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/memory/__init__.py +3 -3
  22. agentkit_sdk_python-0.1.6/agentkit/memory/memory.py → agentkit_sdk_python-0.1.11/agentkit/sdk/memory/client.py +32 -63
  23. agentkit_sdk_python-0.1.11/agentkit/sdk/memory/types.py +288 -0
  24. agentkit_sdk_python-0.1.6/agentkit/runtime/runtime_v1.py → agentkit_sdk_python-0.1.11/agentkit/sdk/runtime/client.py +54 -101
  25. agentkit_sdk_python-0.1.11/agentkit/sdk/runtime/types.py +463 -0
  26. agentkit_sdk_python-0.1.11/agentkit/sdk/tools/__init__.py +15 -0
  27. agentkit_sdk_python-0.1.6/agentkit/tools/tools.py → agentkit_sdk_python-0.1.11/agentkit/sdk/tools/client.py +64 -81
  28. agentkit_sdk_python-0.1.11/agentkit/sdk/tools/types.py +330 -0
  29. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/__init__.py +4 -1
  30. agentkit_sdk_python-0.1.11/agentkit/toolkit/builders/__init__.py +46 -0
  31. agentkit_sdk_python-0.1.11/agentkit/toolkit/builders/base.py +111 -0
  32. 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
  33. 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
  34. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/__main__.py +1 -1
  35. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli.py +3 -3
  36. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_build.py +27 -15
  37. agentkit_sdk_python-0.1.11/agentkit/toolkit/cli/cli_config.py +441 -0
  38. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_deploy.py +15 -8
  39. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_destroy.py +3 -4
  40. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_init.py +75 -34
  41. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_invoke.py +51 -35
  42. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_launch.py +17 -12
  43. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_status.py +57 -30
  44. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/cli_version.py +1 -1
  45. agentkit_sdk_python-0.1.11/agentkit/toolkit/cli/console_reporter.py +211 -0
  46. 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
  47. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/utils.py +8 -0
  48. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/__init__.py +7 -19
  49. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/config.py +122 -174
  50. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/config_handler.py +92 -114
  51. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/config_validator.py +26 -42
  52. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/constants.py +7 -10
  53. agentkit_sdk_python-0.1.11/agentkit/toolkit/config/dataclass_utils.py +340 -0
  54. agentkit_sdk_python-0.1.11/agentkit/toolkit/config/docker_build_config.py +89 -0
  55. agentkit_sdk_python-0.1.11/agentkit/toolkit/config/global_config.py +376 -0
  56. agentkit_sdk_python-0.1.11/agentkit/toolkit/config/strategy_configs.py +153 -0
  57. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/config/utils.py +11 -16
  58. agentkit_sdk_python-0.1.11/agentkit/toolkit/context.py +234 -0
  59. agentkit_sdk_python-0.1.11/agentkit/toolkit/docker/__init__.py +38 -0
  60. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/container.py +4 -7
  61. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/dockerfile/manager.py +24 -32
  62. agentkit_sdk_python-0.1.11/agentkit/toolkit/errors.py +145 -0
  63. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/__init__.py +50 -0
  64. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/base_executor.py +493 -0
  65. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/build_executor.py +167 -0
  66. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/deploy_executor.py +136 -0
  67. 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
  68. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/invoke_executor.py +143 -0
  69. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/lifecycle_executor.py +372 -0
  70. agentkit_sdk_python-0.1.11/agentkit/toolkit/executors/status_executor.py +121 -0
  71. agentkit_sdk_python-0.1.11/agentkit/toolkit/models.py +591 -0
  72. agentkit_sdk_python-0.1.11/agentkit/toolkit/reporter.py +354 -0
  73. agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/a2a.py +86 -0
  74. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/basic.py +3 -10
  75. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/basic_stream.py +5 -3
  76. agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/agent.go +63 -0
  77. agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/build.sh +27 -0
  78. agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/go.mod +129 -0
  79. agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/go.sum +1130 -0
  80. agentkit_sdk_python-0.1.11/agentkit/toolkit/resources/samples/eino_a2a/main.go +135 -0
  81. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/financial_analyst.py +1 -5
  82. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/templates/golang/Dockerfile.j2 +7 -8
  83. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/templates/python/Dockerfile.j2 +1 -2
  84. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/wrappers/wrapper_stream.py.jinja2 +2 -2
  85. agentkit_sdk_python-0.1.11/agentkit/toolkit/runners/__init__.py +48 -0
  86. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner → agentkit_sdk_python-0.1.11/agentkit/toolkit/runners}/base.py +93 -48
  87. agentkit_sdk_python-0.1.11/agentkit/toolkit/runners/local_docker.py +585 -0
  88. agentkit_sdk_python-0.1.11/agentkit/toolkit/runners/ve_agentkit.py +865 -0
  89. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/__init__.py +3 -3
  90. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/builder.py +18 -8
  91. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/client.py +3 -4
  92. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/config.py +8 -8
  93. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/deployer.py +10 -4
  94. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/initializer.py +7 -6
  95. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/invoker.py +12 -5
  96. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/lifecycle.py +20 -10
  97. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/sdk/status.py +10 -4
  98. 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
  99. agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/base_strategy.py +169 -0
  100. agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/cloud_strategy.py +297 -0
  101. agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/hybrid_strategy.py +412 -0
  102. agentkit_sdk_python-0.1.11/agentkit/toolkit/strategies/local_strategy.py +243 -0
  103. 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
  104. 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
  105. agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/__init__.py +50 -0
  106. 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
  107. 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
  108. agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/iam.py +312 -0
  109. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/services/cr_service.py +114 -119
  110. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/services/tos_service.py +100 -81
  111. agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine/sts.py +102 -0
  112. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/utils/project_archiver.py +1 -1
  113. agentkit_sdk_python-0.1.11/agentkit/utils/logging_config.py +436 -0
  114. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/misc.py +35 -1
  115. agentkit_sdk_python-0.1.11/agentkit/utils/template_utils.py +179 -0
  116. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/ve_sign.py +10 -1
  117. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/version.py +1 -1
  118. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/PKG-INFO +2 -3
  119. agentkit_sdk_python-0.1.11/agentkit_sdk_python.egg-info/SOURCES.txt +152 -0
  120. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/requires.txt +0 -1
  121. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/pyproject.toml +2 -2
  122. agentkit_sdk_python-0.1.6/agentkit/knowledge/knowledge_all_types.py +0 -189
  123. agentkit_sdk_python-0.1.6/agentkit/mcp/mcp_all_types.py +0 -1010
  124. agentkit_sdk_python-0.1.6/agentkit/memory/memory_all_types.py +0 -349
  125. agentkit_sdk_python-0.1.6/agentkit/runtime/runtime.py +0 -191
  126. agentkit_sdk_python-0.1.6/agentkit/runtime/runtime_all_types.py +0 -518
  127. agentkit_sdk_python-0.1.6/agentkit/runtime/types.py +0 -188
  128. agentkit_sdk_python-0.1.6/agentkit/toolkit/cli/cli_config.py +0 -404
  129. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/config_manager.py +0 -48
  130. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/dataclass_utils.py +0 -181
  131. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/deploy_config.py +0 -15
  132. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/docker_build_config.py +0 -75
  133. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/global_config.py +0 -281
  134. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/global_config_resolver.py +0 -120
  135. agentkit_sdk_python-0.1.6/agentkit/toolkit/config/workflow_configs.py +0 -158
  136. agentkit_sdk_python-0.1.6/agentkit/toolkit/consts.py +0 -15
  137. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/__init__.py +0 -46
  138. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/__init__.py +0 -13
  139. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/base_builder.py +0 -20
  140. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/cloud_builder.py +0 -0
  141. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/build/local_builder.py +0 -0
  142. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/__init__.py +0 -13
  143. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/base_deployer.py +0 -20
  144. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/cloud_deployer.py +0 -0
  145. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/deploy/local_deployer.py +0 -0
  146. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/field_mapper.py +0 -288
  147. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/__init__.py +0 -29
  148. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/agent_file_info.py +0 -55
  149. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/build_result.py +0 -62
  150. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/deploy_result.py +0 -66
  151. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/init_result.py +0 -176
  152. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/invoke_result.py +0 -84
  153. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/lifecycle_result.py +0 -49
  154. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/models/status_result.py +0 -76
  155. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/__init__.py +0 -29
  156. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/base_service.py +0 -150
  157. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/build_service.py +0 -104
  158. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/deploy_service.py +0 -97
  159. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/invoke_service.py +0 -113
  160. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/lifecycle_service.py +0 -220
  161. agentkit_sdk_python-0.1.6/agentkit/toolkit/core/services/status_service.py +0 -144
  162. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/__init__.py +0 -17
  163. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/builder/__init__.py +0 -23
  164. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/builder/base.py +0 -59
  165. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner/__init__.py +0 -26
  166. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner/local_docker_runner.py +0 -407
  167. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/runner/ve_agentkit_runner.py +0 -705
  168. agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations/ve_iam.py +0 -210
  169. agentkit_sdk_python-0.1.6/agentkit/toolkit/resources/samples/simple_a2a_veadk.py +0 -46
  170. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/__init__.py +0 -27
  171. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/base.py +0 -160
  172. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/hybird_local_ve_workflow.py +0 -554
  173. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/local_workflow.py +0 -447
  174. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/models.py +0 -168
  175. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/progress.py +0 -328
  176. agentkit_sdk_python-0.1.6/agentkit/toolkit/workflows/ve_agentkit_workflow.py +0 -497
  177. agentkit_sdk_python-0.1.6/agentkit/tools/__init__.py +0 -17
  178. agentkit_sdk_python-0.1.6/agentkit/tools/tools_all_types.py +0 -398
  179. agentkit_sdk_python-0.1.6/agentkit/utils/logging_config.py +0 -366
  180. agentkit_sdk_python-0.1.6/agentkit/utils/template_utils.py +0 -256
  181. agentkit_sdk_python-0.1.6/agentkit_sdk_python.egg-info/SOURCES.txt +0 -162
  182. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/LICENSE +0 -0
  183. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/MANIFEST.in +0 -0
  184. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/README.md +0 -0
  185. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/__init__.py +0 -0
  186. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/__init__.py +0 -0
  187. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/a2a_app/__init__.py +0 -0
  188. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/a2a_app/telemetry.py +0 -0
  189. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/agent_server_app/__init__.py +0 -0
  190. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/agent_server_app/agent_server_app.py +0 -0
  191. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/base_app.py +0 -0
  192. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/mcp_app/__init__.py +0 -0
  193. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/__init__.py +0 -0
  194. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/simple_app/simple_app.py +0 -0
  195. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/apps/utils.py +0 -0
  196. {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/identity/__init__.py +0 -0
  197. {agentkit_sdk_python-0.1.6/agentkit → agentkit_sdk_python-0.1.11/agentkit/sdk}/runtime/__init__.py +0 -0
  198. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/cli/__init__.py +0 -0
  199. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/dockerfile/__init__.py +0 -0
  200. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/docker}/dockerfile/metadata.py +0 -0
  201. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/customer_support_assistant.py +0 -0
  202. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/simple_app_veadk.py +0 -0
  203. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/samples/simple_mcp_veadk.py +0 -0
  204. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/templates/code-pipeline-tos-cr-step.j2 +0 -0
  205. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/toolkit/resources/wrappers/wrapper_basic.py.jinja2 +0 -0
  206. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/services/__init__.py +0 -0
  207. {agentkit_sdk_python-0.1.6/agentkit/toolkit/integrations → agentkit_sdk_python-0.1.11/agentkit/toolkit/volcengine}/utils/__init__.py +0 -0
  208. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/__init__.py +0 -0
  209. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/credential.py +0 -0
  210. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit/utils/request.py +0 -0
  211. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/dependency_links.txt +0 -0
  212. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/entry_points.txt +0 -0
  213. {agentkit_sdk_python-0.1.6 → agentkit_sdk_python-0.1.11}/agentkit_sdk_python.egg-info/top_level.txt +0 -0
  214. {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.6
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
@@ -13,7 +13,6 @@
13
13
  # limitations under the License.
14
14
 
15
15
  import logging
16
- import time
17
16
  from typing import Callable, override
18
17
 
19
18
  import uvicorn
@@ -15,7 +15,6 @@
15
15
 
16
16
  import inspect
17
17
  import logging
18
- import time
19
18
  from functools import wraps
20
19
  from typing import Any, Callable, override
21
20
 
@@ -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
- json_string = safe_serialize_to_json_string(obj)
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
 
@@ -58,7 +58,7 @@ def dont_throw(func):
58
58
  def wrapper(*args, **kwargs):
59
59
  try:
60
60
  return func(*args, **kwargs)
61
- except Exception as e:
61
+ except Exception:
62
62
  logger.error(
63
63
  "Agentkit failed to trace in %s, error: %s",
64
64
  func.__name__,
@@ -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.base_client import BaseAgentkitClient, ApiConfig
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 AgentKit services.
17
- Provides common initialization and API invocation logic.
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, TYPE_CHECKING, Union, Optional
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
- if TYPE_CHECKING:
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 BaseAgentkitClient(Service):
50
+ class BaseServiceClient(Service):
53
51
  """
54
- Base client for all AgentKit services.
52
+ Base class for all Volcengine service clients.
55
53
 
56
54
  This class provides:
57
- 1. Common credential initialization
58
- 2. Unified API invocation logic with error handling
59
- 3. Automatic ApiInfo generation with flexible configuration
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 override API_ACTIONS with either:
62
- - Simple dict mapping: {"ActionName": "ActionName"}
63
- - Detailed ApiConfig: {"ActionName": ApiConfig(action="ActionName", method="GET", path="/custom")}
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 AgentKit client.
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 (e.g., 'knowledge', 'memory')
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('AGENTKIT')
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={'Accept': 'application/json'},
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
- super().__init__(service_info=self.service_info, api_info=self.api_info)
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., 'ListKnowledgeBases')
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
+
@@ -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="2023-10-01",
57
- service="cis_test",
58
- host="open.volcengineapi.com",
59
- region="cn-beijing",
57
+ version=version,
58
+ service=service,
59
+ host=host,
60
+ region=region,
60
61
  )
61
62
 
62
63
  try:
@@ -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 agentkit.knowledge.knowledge import AgentkitKnowledge
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
+ ]