veadk-python 0.5.18__tar.gz → 0.5.20__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 (339) hide show
  1. {veadk_python-0.5.18/veadk_python.egg-info → veadk_python-0.5.20}/PKG-INFO +1 -1
  2. {veadk_python-0.5.18 → veadk_python-0.5.20}/pyproject.toml +1 -1
  3. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agent.py +18 -0
  4. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/config.py +23 -0
  5. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/vikingdb_memory_backend.py +4 -2
  6. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/models/ark_llm.py +29 -1
  7. veadk_python-0.5.20/veadk/toolkits/dataset_auto_gen_callback.py +145 -0
  8. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/telemetry.py +4 -1
  9. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/misc.py +10 -0
  10. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/version.py +1 -1
  11. {veadk_python-0.5.18 → veadk_python-0.5.20/veadk_python.egg-info}/PKG-INFO +1 -1
  12. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/SOURCES.txt +1 -0
  13. {veadk_python-0.5.18 → veadk_python-0.5.20}/LICENSE +0 -0
  14. {veadk_python-0.5.18 → veadk_python-0.5.20}/README.md +0 -0
  15. {veadk_python-0.5.18 → veadk_python-0.5.20}/setup.cfg +0 -0
  16. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_agent.py +0 -0
  17. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_cloud.py +0 -0
  18. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_evaluator.py +0 -0
  19. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_knowledgebase.py +0 -0
  20. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_long_term_memory.py +0 -0
  21. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_misc.py +0 -0
  22. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_multiple_agents.py +0 -0
  23. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_runner.py +0 -0
  24. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_runtime_data_collecting.py +0 -0
  25. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_short_term_memory.py +0 -0
  26. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_tracing.py +0 -0
  27. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_a2a_middlewares.py +0 -0
  28. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_auth_config.py +0 -0
  29. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_function_tool.py +0 -0
  30. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_mcp_tool.py +0 -0
  31. {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_mcp_toolset.py +0 -0
  32. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/__init__.py +0 -0
  33. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/__init__.py +0 -0
  34. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/agent_card.py +0 -0
  35. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/__init__.py +0 -0
  36. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/a2a_hub_client.py +0 -0
  37. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/a2a_hub_server.py +0 -0
  38. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/models.py +0 -0
  39. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/rocketmq_middleware.py +0 -0
  40. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/remote_ve_agent.py +0 -0
  41. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/utils/__init__.py +0 -0
  42. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/utils/agent_to_a2a.py +0 -0
  43. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_a2a_server.py +0 -0
  44. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_agent_executor.py +0 -0
  45. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_middlewares.py +0 -0
  46. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_task_store.py +0 -0
  47. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agent_builder.py +0 -0
  48. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/loop_agent.py +0 -0
  49. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/parallel_agent.py +0 -0
  50. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/sequential_agent.py +0 -0
  51. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/supervise_agent.py +0 -0
  52. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/__init__.py +0 -0
  53. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/base_auth.py +0 -0
  54. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/middleware/__init__.py +0 -0
  55. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/middleware/oauth2_auth.py +0 -0
  56. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/ve_credential_service.py +0 -0
  57. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/__init__.py +0 -0
  58. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/apmplus_veauth.py +0 -0
  59. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/ark_veauth.py +0 -0
  60. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/base_veauth.py +0 -0
  61. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/cozeloop_veauth.py +0 -0
  62. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/mse_veauth.py +0 -0
  63. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/opensearch_veauth.py +0 -0
  64. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/postgresql_veauth.py +0 -0
  65. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/prompt_pilot_veauth.py +0 -0
  66. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/speech_veauth.py +0 -0
  67. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/utils.py +0 -0
  68. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/vesearch_veauth.py +0 -0
  69. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/viking_mem0_veauth.py +0 -0
  70. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/__init__.py +0 -0
  71. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli.py +0 -0
  72. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_agentkit.py +0 -0
  73. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_clean.py +0 -0
  74. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_create.py +0 -0
  75. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_deploy.py +0 -0
  76. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_eval.py +0 -0
  77. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_init.py +0 -0
  78. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_kb.py +0 -0
  79. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_pipeline.py +0 -0
  80. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_prompt.py +0 -0
  81. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_rl.py +0 -0
  82. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_update.py +0 -0
  83. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_uploadevalset.py +0 -0
  84. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_web.py +0 -0
  85. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/README.md +0 -0
  86. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/arkworkspace.toml +0 -0
  87. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/data/demo_dataset.jsonl +0 -0
  88. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/job.py +0 -0
  89. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/job.yaml +0 -0
  90. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/random_reward.py +0 -0
  91. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/raw_async_veadk_rollout.py +0 -0
  92. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/test_utils.py +0 -0
  93. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/requirements.txt +0 -0
  94. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/test_faas.py +0 -0
  95. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/README.md +0 -0
  96. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/data/demo_test.parquet +0 -0
  97. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/data/demo_train.parquet +0 -0
  98. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/demo_calculate_agent.py +0 -0
  99. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/restart_ray.sh +0 -0
  100. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/train.sh +0 -0
  101. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cloud/__init__.py +0 -0
  102. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cloud/cloud_agent_engine.py +0 -0
  103. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cloud/cloud_app.py +0 -0
  104. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/checkpoint/__init__.py +0 -0
  105. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/checkpoint/memory/__init__.py +0 -0
  106. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/middlewares/__init__.py +0 -0
  107. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/middlewares/save_session.py +0 -0
  108. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/models/__init__.py +0 -0
  109. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/models/ark_model.py +0 -0
  110. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/store/__init__.py +0 -0
  111. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/store/memory/__init__.py +0 -0
  112. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/store/memory/viking_memory.py +0 -0
  113. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/__init__.py +0 -0
  114. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/execute_skills.py +0 -0
  115. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/load_knowledgebase.py +0 -0
  116. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/load_memory.py +0 -0
  117. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/run_code.py +0 -0
  118. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/web_search.py +0 -0
  119. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/__init__.py +0 -0
  120. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/auth_configs.py +0 -0
  121. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/database_configs.py +0 -0
  122. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/dynamic_config_manager.py +0 -0
  123. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/model_configs.py +0 -0
  124. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/tool_configs.py +0 -0
  125. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/tracing_configs.py +0 -0
  126. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/consts.py +0 -0
  127. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/__init__.py +0 -0
  128. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/adk_evaluator/__init__.py +0 -0
  129. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/adk_evaluator/adk_evaluator.py +0 -0
  130. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/base_evaluator.py +0 -0
  131. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/deepeval_evaluator/__init__.py +0 -0
  132. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/deepeval_evaluator/deepeval_evaluator.py +0 -0
  133. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/eval_set_file_loader.py +0 -0
  134. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/eval_set_recorder.py +0 -0
  135. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/types.py +0 -0
  136. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/utils/prometheus.py +0 -0
  137. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/examples/in_memory_example_store.py +0 -0
  138. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/examples/types.py +0 -0
  139. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/flows/__init__.py +0 -0
  140. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/flows/supervise_auto_flow.py +0 -0
  141. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/flows/supervise_single_flow.py +0 -0
  142. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/__init__.py +0 -0
  143. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_apig/__init__.py +0 -0
  144. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_apig/ve_apig.py +0 -0
  145. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_apig/ve_apig_utils.py +0 -0
  146. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_code_pipeline/__init__.py +0 -0
  147. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_code_pipeline/ve_code_pipeline.py +0 -0
  148. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cozeloop/__init__.py +0 -0
  149. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cozeloop/ve_cozeloop.py +0 -0
  150. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cr/__init__.py +0 -0
  151. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cr/ve_cr.py +0 -0
  152. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/__init__.py +0 -0
  153. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/cookiecutter.json +0 -0
  154. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/__init__.py +0 -0
  155. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/clean.py +0 -0
  156. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/config.yaml.example +0 -0
  157. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/deploy.py +0 -0
  158. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/__init__.py +0 -0
  159. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/agent.py +0 -0
  160. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py +0 -0
  161. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/requirements.txt +0 -0
  162. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/run.sh +0 -0
  163. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name }}/__init__.py +0 -0
  164. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name }}/agent.py +0 -0
  165. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/ve_faas.py +0 -0
  166. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/ve_faas_utils.py +0 -0
  167. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/cookiecutter.json +0 -0
  168. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/__init__.py +0 -0
  169. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/clean.py +0 -0
  170. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/config.yaml.example +0 -0
  171. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/deploy.py +0 -0
  172. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/Dockerfile +0 -0
  173. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/app.py +0 -0
  174. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/init_db.py +0 -0
  175. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/models.py +0 -0
  176. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/requirements.txt +0 -0
  177. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/run.sh +0 -0
  178. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/static/css/style.css +0 -0
  179. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/static/js/admin.js +0 -0
  180. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/dashboard.html +0 -0
  181. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/edit_post.html +0 -0
  182. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/login.html +0 -0
  183. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/posts.html +0 -0
  184. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/base.html +0 -0
  185. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/index.html +0 -0
  186. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/post.html +0 -0
  187. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/__init__.py +0 -0
  188. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/auth_config.py +0 -0
  189. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/auth_mixins.py +0 -0
  190. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/auth_processor.py +0 -0
  191. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/function_tool.py +0 -0
  192. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/identity_client.py +0 -0
  193. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/mcp_tool.py +0 -0
  194. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/mcp_toolset.py +0 -0
  195. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/models.py +0 -0
  196. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/token_manager.py +0 -0
  197. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/utils.py +0 -0
  198. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_prompt_pilot/__init__.py +0 -0
  199. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_prompt_pilot/ve_prompt_pilot.py +0 -0
  200. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tls/__init__.py +0 -0
  201. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tls/utils.py +0 -0
  202. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tls/ve_tls.py +0 -0
  203. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tos/ve_tos.py +0 -0
  204. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_viking_db_memory/__init__.py +0 -0
  205. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_viking_db_memory/ve_viking_db_memory.py +0 -0
  206. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/__init__.py +0 -0
  207. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/__init__.py +0 -0
  208. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/base_backend.py +0 -0
  209. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/in_memory_backend.py +0 -0
  210. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/opensearch_backend.py +0 -0
  211. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/redis_backend.py +0 -0
  212. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/tos_vector_backend.py +0 -0
  213. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/utils.py +0 -0
  214. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/vikingdb_knowledge_backend.py +0 -0
  215. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/entry.py +0 -0
  216. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/knowledgebase.py +0 -0
  217. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/types.py +0 -0
  218. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/__init__.py +0 -0
  219. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory.py +0 -0
  220. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/__init__.py +0 -0
  221. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/base_backend.py +0 -0
  222. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/in_memory_backend.py +0 -0
  223. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/mem0_backend.py +0 -0
  224. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/opensearch_backend.py +0 -0
  225. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/redis_backend.py +0 -0
  226. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/save_session_callback.py +0 -0
  227. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory.py +0 -0
  228. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/__init__.py +0 -0
  229. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/base_backend.py +0 -0
  230. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/mysql_backend.py +0 -0
  231. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/postgresql_backend.py +0 -0
  232. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/sqlite_backend.py +0 -0
  233. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_processor.py +0 -0
  234. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/types.py +0 -0
  235. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/models/__init__.py +0 -0
  236. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/models/ark_embedding.py +0 -0
  237. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/processors/__init__.py +0 -0
  238. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/processors/base_run_processor.py +0 -0
  239. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/__init__.py +0 -0
  240. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/agent_default_prompt.py +0 -0
  241. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_evaluator.py +0 -0
  242. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_manager.py +0 -0
  243. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_memory_processor.py +0 -0
  244. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_optimization.py +0 -0
  245. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/__init__.py +0 -0
  246. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/client.py +0 -0
  247. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/doubao_realtime_voice_llm.py +0 -0
  248. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/doubao_realtime_voice_llm_connection.py +0 -0
  249. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/live.py +0 -0
  250. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/protocol.py +0 -0
  251. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/reflector/__init__.py +0 -0
  252. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/reflector/base_reflector.py +0 -0
  253. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/reflector/local_reflector.py +0 -0
  254. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/runner.py +0 -0
  255. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/skills/__init__.py +0 -0
  256. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/skills/skill.py +0 -0
  257. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/skills/utils.py +0 -0
  258. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/__init__.py +0 -0
  259. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/__init__.py +0 -0
  260. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/reverse_mcp/__init__.py +0 -0
  261. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/reverse_mcp/client_with_reverse_mcp.py +0 -0
  262. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/reverse_mcp/server_with_reverse_mcp.py +0 -0
  263. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/__init__.py +0 -0
  264. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/asr/__init__.py +0 -0
  265. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/asr/asr_client.py +0 -0
  266. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/tts/__init__.py +0 -0
  267. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/tts/protocols.py +0 -0
  268. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/tts/tts_client.py +0 -0
  269. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/__init__.py +0 -0
  270. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/__init__.py +0 -0
  271. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/agent_authorization.py +0 -0
  272. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/execute_skills.py +0 -0
  273. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/generate_image.py +0 -0
  274. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/image_edit.py +0 -0
  275. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/image_generate.py +0 -0
  276. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/lark.py +0 -0
  277. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/las.py +0 -0
  278. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/link_reader.py +0 -0
  279. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/llm_shield.py +0 -0
  280. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/load_kb_queries.py +0 -0
  281. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/load_knowledgebase.py +0 -0
  282. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/mcp_router.py +0 -0
  283. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/mobile_run.py +0 -0
  284. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/parallel_web_search.py +0 -0
  285. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/playwright.py +0 -0
  286. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/run_code.py +0 -0
  287. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/supabase_toolset.py +0 -0
  288. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/tts.py +0 -0
  289. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/vesearch.py +0 -0
  290. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/video_generate.py +0 -0
  291. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/vod.py +0 -0
  292. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/web_scraper.py +0 -0
  293. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/web_search.py +0 -0
  294. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/demo_tools.py +0 -0
  295. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/ghost_char.py +0 -0
  296. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/load_history_events.py +0 -0
  297. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/load_knowledgebase_tool.py +0 -0
  298. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/mcp_tool/__init__.py +0 -0
  299. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/mcp_tool/trusted_mcp_session_manager.py +0 -0
  300. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/mcp_tool/trusted_mcp_toolset.py +0 -0
  301. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/__init__.py +0 -0
  302. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/browser_sandbox.py +0 -0
  303. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/code_sandbox.py +0 -0
  304. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/computer_sandbox.py +0 -0
  305. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/__init__.py +0 -0
  306. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/bash_tool.py +0 -0
  307. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/download_skills_tool.py +0 -0
  308. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/file_tool.py +0 -0
  309. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/register_skills_tool.py +0 -0
  310. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/session_path.py +0 -0
  311. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/skills_tool.py +0 -0
  312. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/skills_toolset.py +0 -0
  313. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/__init__.py +0 -0
  314. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/base_tracer.py +0 -0
  315. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/__init__.py +0 -0
  316. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/attributes.py +0 -0
  317. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/common_attributes_extractors.py +0 -0
  318. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/llm_attributes_extractors.py +0 -0
  319. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/tool_attributes_extractors.py +0 -0
  320. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/types.py +0 -0
  321. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/__init__.py +0 -0
  322. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/apmplus_exporter.py +0 -0
  323. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/base_exporter.py +0 -0
  324. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/cozeloop_exporter.py +0 -0
  325. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/inmemory_exporter.py +0 -0
  326. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/tls_exporter.py +0 -0
  327. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/opentelemetry_tracer.py +0 -0
  328. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/types.py +0 -0
  329. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/__init__.py +0 -0
  330. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/audio_manager.py +0 -0
  331. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/auth.py +0 -0
  332. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/logger.py +0 -0
  333. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/mcp_utils.py +0 -0
  334. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/patches.py +0 -0
  335. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/volcengine_sign.py +0 -0
  336. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/dependency_links.txt +0 -0
  337. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/entry_points.txt +0 -0
  338. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/requires.txt +0 -0
  339. {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veadk-python
3
- Version: 0.5.18
3
+ Version: 0.5.20
4
4
  Summary: Volcengine agent development kit, integrations with Volcengine cloud services.
5
5
  Author-email: Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>, Zhi Han <sliverydayday@gmail.com>, Meng Wang <mengwangwm@gmail.com>
6
6
  License: Apache License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "veadk-python"
3
- version = "0.5.18"
3
+ version = "0.5.20"
4
4
  description = "Volcengine agent development kit, integrations with Volcengine cloud services."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -154,6 +154,8 @@ class Agent(LlmAgent):
154
154
 
155
155
  enable_ghostchar: bool = False
156
156
 
157
+ enable_dataset_gen: bool = False
158
+
157
159
  def model_post_init(self, __context: Any) -> None:
158
160
  super().model_post_init(None) # for sub_agents init
159
161
 
@@ -312,6 +314,22 @@ class Agent(LlmAgent):
312
314
 
313
315
  self.instruction += "Please add a character `< at the beginning of you each text-based response."
314
316
 
317
+ if self.enable_dataset_gen:
318
+ from veadk.toolkits.dataset_auto_gen_callback import (
319
+ dataset_auto_gen_callback,
320
+ )
321
+
322
+ if self.after_agent_callback:
323
+ if isinstance(self.after_agent_callback, list):
324
+ self.after_agent_callback.append(dataset_auto_gen_callback)
325
+ else:
326
+ self.after_agent_callback = [
327
+ self.after_agent_callback,
328
+ dataset_auto_gen_callback,
329
+ ]
330
+ else:
331
+ self.after_agent_callback = dataset_auto_gen_callback
332
+
315
333
  logger.info(f"VeADK version: {VERSION}")
316
334
 
317
335
  logger.info(f"{self.__class__.__name__} `{self.name}` init done.")
@@ -49,6 +49,15 @@ else:
49
49
  env_from_dotenv = {}
50
50
  logger.info("No `.env` file found.")
51
51
 
52
+ provider = (os.getenv("CLOUD_PROVIDER") or "").lower()
53
+ if provider == "byteplus":
54
+ byteplus_access_key = os.getenv("BYTEPLUS_ACCESS_KEY")
55
+ if byteplus_access_key:
56
+ os.environ["VOLCENGINE_ACCESS_KEY"] = byteplus_access_key
57
+ byteplus_secret_key = os.getenv("BYTEPLUS_SECRET_KEY")
58
+ if byteplus_secret_key:
59
+ os.environ["VOLCENGINE_SECRET_KEY"] = byteplus_secret_key
60
+
52
61
 
53
62
  class VeADKConfig(BaseModel):
54
63
  model: ModelConfig = Field(default_factory=ModelConfig)
@@ -90,6 +99,20 @@ def getenv(
90
99
  """
91
100
  value = os.getenv(env_name, default_value)
92
101
 
102
+ if value == default_value or not value:
103
+ provider = (os.getenv("CLOUD_PROVIDER") or "").lower()
104
+ if provider == "byteplus":
105
+ if env_name == "VOLCENGINE_ACCESS_KEY":
106
+ byteplus_key = os.getenv("BYTEPLUS_ACCESS_KEY")
107
+ if byteplus_key:
108
+ os.environ["VOLCENGINE_ACCESS_KEY"] = byteplus_key
109
+ value = byteplus_key
110
+ elif env_name == "VOLCENGINE_SECRET_KEY":
111
+ byteplus_key = os.getenv("BYTEPLUS_SECRET_KEY")
112
+ if byteplus_key:
113
+ os.environ["VOLCENGINE_SECRET_KEY"] = byteplus_key
114
+ value = byteplus_key
115
+
93
116
  if allow_false_values:
94
117
  return value
95
118
 
@@ -152,7 +152,8 @@ class VikingDBLTMBackend(BaseLongTermMemoryBackend):
152
152
  ak, sk, sts_token = self._get_ak_sk_sts()
153
153
  if self.cloud_provider.lower() == "byteplus":
154
154
  host = f"api-knowledgebase.mlp.{self.region}.bytepluses.com"
155
-
155
+ else:
156
+ host = f"api-knowledgebase.mlp.{self.region}.volces.com"
156
157
  logger.info(f"Cloud provider: {self.cloud_provider.lower()}")
157
158
  logger.info(f"VikingDBLTMBackend: region={self.region}, host={host}")
158
159
 
@@ -168,7 +169,8 @@ class VikingDBLTMBackend(BaseLongTermMemoryBackend):
168
169
  ak, sk, sts_token = self._get_ak_sk_sts()
169
170
  if self.cloud_provider.lower() == "byteplus":
170
171
  host = f"api-knowledgebase.mlp.{self.region}.bytepluses.com"
171
-
172
+ else:
173
+ host = f"api-knowledgebase.mlp.{self.region}.volces.com"
172
174
  logger.info(f"Cloud provider: {self.cloud_provider.lower()}")
173
175
  logger.info(f"VikingDBLTMBackend: region={self.region}, host={host}")
174
176
 
@@ -37,6 +37,11 @@ from volcenginesdkarkruntime.types.responses import (
37
37
  ResponseReasoningSummaryTextDeltaEvent,
38
38
  ResponseTextDeltaEvent,
39
39
  ResponseCompletedEvent,
40
+ ResponseIncompleteEvent,
41
+ ResponseError,
42
+ )
43
+ from volcenginesdkarkruntime.types.responses.response_incomplete_details import (
44
+ IncompleteDetails,
40
45
  )
41
46
  from volcenginesdkarkruntime.types.responses.response_input_message_content_list_param import (
42
47
  ResponseInputTextParam,
@@ -551,6 +556,26 @@ def request_reorganization_by_ark(request_data: Dict) -> Dict:
551
556
 
552
557
  # ---------------------------------------
553
558
  # output transfer -----------------------
559
+ def record_logs(raw_response: ArkTypeResponse):
560
+ try:
561
+ if isinstance(raw_response, ArkTypeResponse):
562
+ error_message = ""
563
+ if raw_response.error and isinstance(raw_response.error, ResponseError):
564
+ error_message += f"The response with error code `{raw_response.error.code}`, error message is `{raw_response.error.message}`"
565
+
566
+ if raw_response.incomplete_details and isinstance(
567
+ raw_response.incomplete_details, IncompleteDetails
568
+ ):
569
+ error_message += f"The reason for the incomplete return is `{raw_response.incomplete_details.reason}`, content_filter: `{raw_response.incomplete_details.content_filter}`"
570
+ logger.debug(
571
+ f"Ark response: Received Response from model `{raw_response.model}` with id `{raw_response.id}`. "
572
+ f"Status: `{raw_response.status}`. "
573
+ f"{error_message}"
574
+ )
575
+ except Exception as e:
576
+ logger.error(f"Failed to record ark logs: {e}")
577
+
578
+
554
579
  def event_to_generate_content_response(
555
580
  event: Union[ArkTypeResponse, ResponseStreamEvent],
556
581
  *,
@@ -587,7 +612,9 @@ def event_to_generate_content_response(
587
612
  parts.append(types.Part(text=event.delta, thought=True))
588
613
  elif isinstance(event, ResponseTextDeltaEvent):
589
614
  parts.append(types.Part.from_text(text=event.delta))
590
- elif isinstance(event, ResponseCompletedEvent):
615
+ elif isinstance(event, ResponseCompletedEvent) or isinstance(
616
+ event, ResponseIncompleteEvent
617
+ ):
591
618
  raw_response = event.response
592
619
  llm_response = ark_response_to_generate_content_response(raw_response)
593
620
  return llm_response
@@ -607,6 +634,7 @@ def ark_response_to_generate_content_response(
607
634
  ArkTypeResponse -> LlmResponse
608
635
  instead of `_model_response_to_generate_content_response`,
609
636
  """
637
+ record_logs(raw_response)
610
638
  outputs = raw_response.output
611
639
  status = raw_response.status
612
640
  incomplete_details = getattr(
@@ -0,0 +1,145 @@
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
+ import json
16
+ import os
17
+ import re
18
+ from pathlib import Path
19
+ from typing import Optional
20
+
21
+ from google.adk.agents.callback_context import CallbackContext
22
+ from google.genai import types
23
+
24
+ from veadk.utils.logger import get_logger
25
+
26
+ logger = get_logger(__name__)
27
+
28
+ JUDGE_PROMPT = """You are an AI quality evaluator. Analyze the agent interaction trace and classify it.
29
+
30
+ ## Trace Data
31
+ {trace}
32
+
33
+ ## Evaluation Dimensions
34
+
35
+ ### 1. Task Completion
36
+ - Did the agent understand the user's intent correctly?
37
+ - Was the user's request fully addressed?
38
+ - Did the agent provide the expected output?
39
+
40
+ ### 2. Tool Usage (if applicable)
41
+ - Were the correct tools/functions selected for the task?
42
+ - Were the function arguments accurate and complete?
43
+ - Was the function response handled properly?
44
+ - Did the agent interpret tool results correctly?
45
+
46
+ ### 3. Response Quality
47
+ - Is the response accurate and factually correct?
48
+ - Is the response complete without missing information?
49
+ - Is the response clear and well-structured?
50
+ - Does it match the tool/function output when applicable?
51
+
52
+ ### 4. Error Handling
53
+ - Were there any errors or exceptions in the trace?
54
+ - Did the agent handle edge cases appropriately?
55
+ - Were error messages helpful if errors occurred?
56
+
57
+ ### 5. Conversation Flow
58
+ - Is the dialogue natural and coherent?
59
+ - Did the agent maintain context across turns?
60
+ - Were there any unnecessary or redundant steps?
61
+
62
+ ## Classification Criteria
63
+ - **good (1)**: Task completed successfully with correct tool usage, accurate response, and smooth conversation flow
64
+ - **general (0)**: Normal interaction without notable issues or achievements, routine responses
65
+ - **bad (-1)**: Contains errors, incorrect tool usage, wrong/incomplete response, or failed to address user needs
66
+
67
+ ## Output Format (JSON only, no other text)
68
+ {{"type": <-1|0|1>, "reason": "<brief explanation covering key evaluation points>"}}"""
69
+
70
+
71
+ async def dataset_auto_gen_callback(
72
+ callback_context: CallbackContext,
73
+ ) -> Optional[types.Content]:
74
+ """After agent callback to auto-generate dataset from traces."""
75
+ ctx = callback_context._invocation_context
76
+ agent = ctx.agent
77
+ session = ctx.session
78
+
79
+ if not session or not session.events:
80
+ return None
81
+
82
+ # Build trace json
83
+ trace_data = {
84
+ "session_id": session.id,
85
+ "events": [
86
+ {
87
+ "author": e.author,
88
+ "content": e.content.model_dump() if e.content else None,
89
+ }
90
+ for e in session.events
91
+ ],
92
+ }
93
+ trace_json = json.dumps(trace_data, ensure_ascii=False)
94
+
95
+ # Judge using LLM
96
+ try:
97
+ from litellm import acompletion
98
+
99
+ model_name = getattr(agent.model, "model", "openai/gpt-4o-mini")
100
+ api_key = getattr(agent, "model_api_key", None) or getattr(
101
+ agent.model, "api_key", None
102
+ )
103
+ api_base = getattr(agent, "model_api_base", None) or getattr(
104
+ agent.model, "api_base", None
105
+ )
106
+
107
+ response = await acompletion(
108
+ model=model_name,
109
+ messages=[
110
+ {"role": "user", "content": JUDGE_PROMPT.format(trace=trace_json)}
111
+ ],
112
+ api_key=api_key,
113
+ api_base=api_base,
114
+ )
115
+ raw_content = response.choices[0].message.content
116
+
117
+ # Extract JSON from response
118
+ json_match = re.search(r'\{[^{}]*"type"[^{}]*\}', raw_content)
119
+ if not json_match:
120
+ logger.debug("No valid JSON found in LLM response")
121
+ return None
122
+ result = json.loads(json_match.group())
123
+ except Exception as e:
124
+ logger.warning(f"Dataset auto gen failed: {e}")
125
+ return None
126
+
127
+ # Save to file based on type
128
+ case_type = result.get("type", 0)
129
+
130
+ output_dir = Path(os.getcwd()) / "dataset" / agent.name
131
+ output_dir.mkdir(parents=True, exist_ok=True)
132
+
133
+ if case_type == 1:
134
+ file_name = "good_case.jsonl"
135
+ elif case_type == -1:
136
+ file_name = "bad_case.jsonl"
137
+ else:
138
+ file_name = "general_case.jsonl"
139
+ record = {"trace": trace_data, "reason": result.get("reason", "")}
140
+
141
+ with open(output_dir / file_name, "a", encoding="utf-8") as f:
142
+ f.write(json.dumps(record, ensure_ascii=False) + "\n")
143
+
144
+ logger.info(f"Dataset case saved to {output_dir / file_name}")
145
+ return None
@@ -305,6 +305,7 @@ def trace_tool_call(
305
305
  tool: BaseTool,
306
306
  args: dict[str, Any],
307
307
  function_response_event: Event,
308
+ **kwargs,
308
309
  ) -> None:
309
310
  """Trace a tool function call with comprehensive telemetry data.
310
311
 
@@ -344,6 +345,8 @@ def trace_call_llm(
344
345
  event_id: str,
345
346
  llm_request: LlmRequest,
346
347
  llm_response: LlmResponse,
348
+ *args,
349
+ **kwargs,
347
350
  ) -> None:
348
351
  """Trace a language model call with comprehensive telemetry data.
349
352
 
@@ -413,4 +416,4 @@ def trace_call_llm(
413
416
 
414
417
 
415
418
  # Do not modify this function
416
- def trace_send_data(): ...
419
+ def trace_send_data(**kwargs): ...
@@ -152,6 +152,16 @@ def set_envs(config_yaml_path: str, env_from_dotenv: dict = None) -> tuple[dict,
152
152
  continue
153
153
  veadk_environments[k] = str(config_upper_map.get(k))
154
154
  os.environ[k] = str(config_upper_map.get(k))
155
+
156
+ provider = (os.getenv("CLOUD_PROVIDER") or "").lower()
157
+ if provider == "byteplus":
158
+ byteplus_access_key = veadk_environments.get("BYTEPLUS_ACCESS_KEY")
159
+ if byteplus_access_key:
160
+ os.environ["VOLCENGINE_ACCESS_KEY"] = byteplus_access_key
161
+ byteplus_secret_key = veadk_environments.get("BYTEPLUS_SECRET_KEY")
162
+ if byteplus_secret_key:
163
+ os.environ["VOLCENGINE_SECRET_KEY"] = byteplus_secret_key
164
+
155
165
  return config_dict, veadk_environments
156
166
 
157
167
 
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- VERSION = "0.5.18"
15
+ VERSION = "0.5.20"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veadk-python
3
- Version: 0.5.18
3
+ Version: 0.5.20
4
4
  Summary: Volcengine agent development kit, integrations with Volcengine cloud services.
5
5
  Author-email: Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>, Zhi Han <sliverydayday@gmail.com>, Meng Wang <mengwangwm@gmail.com>
6
6
  License: Apache License
@@ -250,6 +250,7 @@ veadk/skills/__init__.py
250
250
  veadk/skills/skill.py
251
251
  veadk/skills/utils.py
252
252
  veadk/toolkits/__init__.py
253
+ veadk/toolkits/dataset_auto_gen_callback.py
253
254
  veadk/toolkits/apps/__init__.py
254
255
  veadk/toolkits/apps/reverse_mcp/__init__.py
255
256
  veadk/toolkits/apps/reverse_mcp/client_with_reverse_mcp.py
File without changes
File without changes
File without changes