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.
- {veadk_python-0.5.18/veadk_python.egg-info → veadk_python-0.5.20}/PKG-INFO +1 -1
- {veadk_python-0.5.18 → veadk_python-0.5.20}/pyproject.toml +1 -1
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agent.py +18 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/config.py +23 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/vikingdb_memory_backend.py +4 -2
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/models/ark_llm.py +29 -1
- veadk_python-0.5.20/veadk/toolkits/dataset_auto_gen_callback.py +145 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/telemetry.py +4 -1
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/misc.py +10 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/version.py +1 -1
- {veadk_python-0.5.18 → veadk_python-0.5.20/veadk_python.egg-info}/PKG-INFO +1 -1
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/SOURCES.txt +1 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/LICENSE +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/README.md +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/setup.cfg +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_cloud.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_evaluator.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_knowledgebase.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_long_term_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_misc.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_multiple_agents.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_runner.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_runtime_data_collecting.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_short_term_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_tracing.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_a2a_middlewares.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_auth_config.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_function_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_mcp_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/tests/test_ve_identity_mcp_toolset.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/agent_card.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/a2a_hub_client.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/a2a_hub_server.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/models.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/hub/rocketmq_middleware.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/remote_ve_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/utils/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/utils/agent_to_a2a.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_a2a_server.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_agent_executor.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_middlewares.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/a2a/ve_task_store.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agent_builder.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/loop_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/parallel_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/sequential_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/agents/supervise_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/base_auth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/middleware/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/middleware/oauth2_auth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/ve_credential_service.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/apmplus_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/ark_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/base_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/cozeloop_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/mse_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/opensearch_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/postgresql_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/prompt_pilot_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/speech_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/vesearch_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/auth/veauth/viking_mem0_veauth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_agentkit.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_clean.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_create.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_deploy.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_eval.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_init.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_kb.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_pipeline.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_prompt.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_rl.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_update.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_uploadevalset.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/cli_web.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/README.md +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/arkworkspace.toml +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/data/demo_dataset.jsonl +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/job.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/job.yaml +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/random_reward.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/raw_async_veadk_rollout.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/test_utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/requirements.txt +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/test_faas.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/README.md +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/data/demo_test.parquet +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/data/demo_train.parquet +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/demo_calculate_agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/restart_ray.sh +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/train.sh +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cloud/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cloud/cloud_agent_engine.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cloud/cloud_app.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/checkpoint/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/checkpoint/memory/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/middlewares/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/middlewares/save_session.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/models/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/models/ark_model.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/store/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/store/memory/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/store/memory/viking_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/execute_skills.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/load_knowledgebase.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/load_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/run_code.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/tools/web_search.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/auth_configs.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/database_configs.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/dynamic_config_manager.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/model_configs.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/tool_configs.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/configs/tracing_configs.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/consts.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/adk_evaluator/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/adk_evaluator/adk_evaluator.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/base_evaluator.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/deepeval_evaluator/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/deepeval_evaluator/deepeval_evaluator.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/eval_set_file_loader.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/eval_set_recorder.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/types.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/evaluation/utils/prometheus.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/examples/in_memory_example_store.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/examples/types.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/flows/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/flows/supervise_auto_flow.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/flows/supervise_single_flow.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_apig/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_apig/ve_apig.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_apig/ve_apig_utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_code_pipeline/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_code_pipeline/ve_code_pipeline.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cozeloop/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cozeloop/ve_cozeloop.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cr/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_cr/ve_cr.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/cookiecutter.json +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/clean.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/config.yaml.example +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/deploy.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/agent.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/requirements.txt +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/run.sh +0 -0
- {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
- {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
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/ve_faas.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/ve_faas_utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/cookiecutter.json +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/clean.py +0 -0
- {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
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/deploy.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/Dockerfile +0 -0
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/auth_config.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/auth_mixins.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/auth_processor.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/function_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/identity_client.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/mcp_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/mcp_toolset.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/models.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/token_manager.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_identity/utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_prompt_pilot/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_prompt_pilot/ve_prompt_pilot.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tls/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tls/utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tls/ve_tls.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_tos/ve_tos.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_viking_db_memory/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/integrations/ve_viking_db_memory/ve_viking_db_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/base_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/in_memory_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/opensearch_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/redis_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/tos_vector_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/backends/vikingdb_knowledge_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/entry.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/knowledgebase.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/knowledgebase/types.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/base_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/in_memory_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/mem0_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/opensearch_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/long_term_memory_backends/redis_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/save_session_callback.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/base_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/mysql_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/postgresql_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_backends/sqlite_backend.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/short_term_memory_processor.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/memory/types.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/models/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/models/ark_embedding.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/processors/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/processors/base_run_processor.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/agent_default_prompt.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_evaluator.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_manager.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_memory_processor.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/prompts/prompt_optimization.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/client.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/doubao_realtime_voice_llm.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/doubao_realtime_voice_llm_connection.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/live.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/realtime/protocol.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/reflector/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/reflector/base_reflector.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/reflector/local_reflector.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/runner.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/skills/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/skills/skill.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/skills/utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/reverse_mcp/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/reverse_mcp/client_with_reverse_mcp.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/apps/reverse_mcp/server_with_reverse_mcp.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/asr/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/asr/asr_client.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/tts/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/tts/protocols.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/toolkits/audio/tts/tts_client.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/agent_authorization.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/execute_skills.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/generate_image.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/image_edit.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/image_generate.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/lark.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/las.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/link_reader.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/llm_shield.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/load_kb_queries.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/load_knowledgebase.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/mcp_router.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/mobile_run.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/parallel_web_search.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/playwright.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/run_code.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/supabase_toolset.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/tts.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/vesearch.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/video_generate.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/vod.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/web_scraper.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/builtin_tools/web_search.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/demo_tools.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/ghost_char.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/load_history_events.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/load_knowledgebase_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/mcp_tool/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/mcp_tool/trusted_mcp_session_manager.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/mcp_tool/trusted_mcp_toolset.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/browser_sandbox.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/code_sandbox.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/sandbox/computer_sandbox.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/bash_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/download_skills_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/file_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/register_skills_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/session_path.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/skills_tool.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tools/skills_tools/skills_toolset.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/base_tracer.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/attributes.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/common_attributes_extractors.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/llm_attributes_extractors.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/tool_attributes_extractors.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/attributes/extractors/types.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/apmplus_exporter.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/base_exporter.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/cozeloop_exporter.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/inmemory_exporter.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/exporters/tls_exporter.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/tracing/telemetry/opentelemetry_tracer.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/types.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/__init__.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/audio_manager.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/auth.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/logger.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/mcp_utils.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/patches.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/utils/volcengine_sign.py +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/dependency_links.txt +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/entry_points.txt +0 -0
- {veadk_python-0.5.18 → veadk_python-0.5.20}/veadk_python.egg-info/requires.txt +0 -0
- {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.
|
|
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
|
|
@@ -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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: veadk-python
|
|
3
|
-
Version: 0.5.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/data/demo_dataset.jsonl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/random_reward.py
RENAMED
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/ark/plugins/test_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/data/demo_test.parquet
RENAMED
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/data/demo_train.parquet
RENAMED
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/cli/templates/rl/lightning/demo_calculate_agent.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/checkpoint/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/middlewares/__init__.py
RENAMED
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/middlewares/save_session.py
RENAMED
|
File without changes
|
|
File without changes
|
{veadk_python-0.5.18 → veadk_python-0.5.20}/veadk/community/langchain_ai/models/ark_model.py
RENAMED
|
File without changes
|
|
File without changes
|