veadk-python 0.5.3__tar.gz → 0.5.4__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.3/veadk_python.egg-info → veadk_python-0.5.4}/PKG-INFO +1 -2
- {veadk_python-0.5.3 → veadk_python-0.5.4}/pyproject.toml +1 -2
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_create.py +4 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_web.py +10 -0
- veadk_python-0.5.4/veadk/community/langchain_ai/middlewares/save_session.py +60 -0
- veadk_python-0.5.4/veadk/community/langchain_ai/models/ark_model.py +34 -0
- veadk_python-0.5.4/veadk/community/langchain_ai/store/memory/viking_memory.py +102 -0
- veadk_python-0.5.4/veadk/community/langchain_ai/tools/load_knowledgebase.py +34 -0
- veadk_python-0.5.4/veadk/community/langchain_ai/tools/load_memory.py +43 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory_backends/vikingdb_memory_backend.py +8 -3
- veadk_python-0.5.4/veadk/tools/builtin_tools/__init__.py +13 -0
- veadk_python-0.5.4/veadk/tools/mcp_tool/__init__.py +13 -0
- veadk_python-0.5.4/veadk/tools/sandbox/__init__.py +13 -0
- veadk_python-0.5.4/veadk/tracing/__init__.py +13 -0
- veadk_python-0.5.4/veadk/tracing/telemetry/__init__.py +13 -0
- veadk_python-0.5.4/veadk/tracing/telemetry/exporters/__init__.py +13 -0
- veadk_python-0.5.4/veadk/utils/__init__.py +13 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/version.py +1 -1
- {veadk_python-0.5.3 → veadk_python-0.5.4/veadk_python.egg-info}/PKG-INFO +1 -2
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk_python.egg-info/SOURCES.txt +12 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk_python.egg-info/requires.txt +0 -1
- {veadk_python-0.5.3 → veadk_python-0.5.4}/LICENSE +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/README.md +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/setup.cfg +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_cloud.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_evaluator.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_knowledgebase.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_long_term_memory.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_misc.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_multiple_agents.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_runner.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_runtime_data_collecting.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_short_term_memory.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_tracing.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_ve_a2a_middlewares.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_ve_identity_auth_config.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_ve_identity_function_tool.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_ve_identity_mcp_tool.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/tests/test_ve_identity_mcp_toolset.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/agent_card.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/remote_ve_agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/utils/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/utils/agent_to_a2a.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/ve_a2a_server.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/ve_agent_executor.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/ve_middlewares.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/a2a/ve_task_store.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/agent_builder.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/agents/loop_agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/agents/parallel_agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/agents/sequential_agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/base_auth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/ve_credential_service.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/apmplus_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/ark_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/base_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/cozeloop_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/opensearch_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/postgresql_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/prompt_pilot_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/speech_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/utils.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/vesearch_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/auth/veauth/viking_mem0_veauth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_agentkit.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_clean.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_deploy.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_eval.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_init.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_kb.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_pipeline.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_prompt.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_rl.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_update.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/cli_uploadevalset.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/README.md +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/arkworkspace.toml +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/data/demo_dataset.jsonl +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/job.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/job.yaml +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/plugins/random_reward.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/plugins/raw_async_veadk_rollout.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/plugins/test_utils.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/requirements.txt +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/ark/test_faas.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/lightning/README.md +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/lightning/data/demo_test.parquet +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/lightning/data/demo_train.parquet +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/lightning/demo_calculate_agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/lightning/restart_ray.sh +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cli/templates/rl/lightning/train.sh +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cloud/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cloud/cloud_agent_engine.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/cloud/cloud_app.py +0 -0
- {veadk_python-0.5.3/veadk/configs → veadk_python-0.5.4/veadk/community/langchain_ai/checkpoint}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations → veadk_python-0.5.4/veadk/community/langchain_ai/checkpoint/memory}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_apig → veadk_python-0.5.4/veadk/community/langchain_ai/middlewares}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_code_pipeline → veadk_python-0.5.4/veadk/community/langchain_ai/models}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_cozeloop → veadk_python-0.5.4/veadk/community/langchain_ai/store}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_cr → veadk_python-0.5.4/veadk/community/langchain_ai/store/memory}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_faas → veadk_python-0.5.4/veadk/community/langchain_ai/tools}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/config.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}} → veadk_python-0.5.4/veadk/configs}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/configs/auth_configs.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/configs/database_configs.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/configs/model_configs.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/configs/tool_configs.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/configs/tracing_configs.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/consts.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/adk_evaluator/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/adk_evaluator/adk_evaluator.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/base_evaluator.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/deepeval_evaluator/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/deepeval_evaluator/deepeval_evaluator.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/eval_set_file_loader.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/eval_set_recorder.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/types.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/evaluation/utils/prometheus.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src → veadk_python-0.5.4/veadk/integrations}/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}} → veadk_python-0.5.4/veadk/integrations/ve_apig}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_apig/ve_apig.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_apig/ve_apig_utils.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_prompt_pilot → veadk_python-0.5.4/veadk/integrations/ve_code_pipeline}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_code_pipeline/ve_code_pipeline.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_tls → veadk_python-0.5.4/veadk/integrations/ve_cozeloop}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_cozeloop/ve_cozeloop.py +0 -0
- {veadk_python-0.5.3/veadk/integrations/ve_viking_db_memory → veadk_python-0.5.4/veadk/integrations/ve_cr}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_cr/ve_cr.py +0 -0
- {veadk_python-0.5.3/veadk/knowledgebase/backends → veadk_python-0.5.4/veadk/integrations/ve_faas}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/cookiecutter.json +0 -0
- {veadk_python-0.5.3/veadk/memory/long_term_memory_backends → veadk_python-0.5.4/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/clean.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/config.yaml.example +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/deploy.py +0 -0
- {veadk_python-0.5.3/veadk/memory/short_term_memory_backends → veadk_python-0.5.4/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/requirements.txt +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/run.sh +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name }}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name }}/agent.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/ve_faas.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/ve_faas_utils.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/cookiecutter.json +0 -0
- {veadk_python-0.5.3/veadk/prompts → veadk_python-0.5.4/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/clean.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/config.yaml.example +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/deploy.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/Dockerfile +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/app.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/init_db.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/models.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/requirements.txt +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/run.sh +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/static/css/style.css +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/static/js/admin.js +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/dashboard.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/edit_post.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/login.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/admin/posts.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/base.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/index.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_faas/web_template/{{cookiecutter.local_dir_name}}/src/templates/post.html +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/auth_config.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/auth_mixins.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/auth_processor.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/function_tool.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/identity_client.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/mcp_tool.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/mcp_toolset.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/models.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/token_manager.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_identity/utils.py +0 -0
- {veadk_python-0.5.3/veadk/tools → veadk_python-0.5.4/veadk/integrations/ve_prompt_pilot}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_prompt_pilot/ve_prompt_pilot.py +0 -0
- {veadk_python-0.5.3/veadk/tools/builtin_tools → veadk_python-0.5.4/veadk/integrations/ve_tls}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_tls/utils.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_tls/ve_tls.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_tos/ve_tos.py +0 -0
- {veadk_python-0.5.3/veadk/tools/mcp_tool → veadk_python-0.5.4/veadk/integrations/ve_viking_db_memory}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/integrations/ve_viking_db_memory/ve_viking_db_memory.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/__init__.py +0 -0
- {veadk_python-0.5.3/veadk/tools/sandbox → veadk_python-0.5.4/veadk/knowledgebase/backends}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/base_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/in_memory_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/opensearch_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/redis_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/tos_vector_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/utils.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/backends/vikingdb_knowledge_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/entry.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/knowledgebase/knowledgebase.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory.py +0 -0
- {veadk_python-0.5.3/veadk/tracing → veadk_python-0.5.4/veadk/memory/long_term_memory_backends}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory_backends/base_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory_backends/in_memory_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory_backends/mem0_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory_backends/opensearch_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/long_term_memory_backends/redis_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/save_session_callback.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/short_term_memory.py +0 -0
- {veadk_python-0.5.3/veadk/tracing/telemetry → veadk_python-0.5.4/veadk/memory/short_term_memory_backends}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/short_term_memory_backends/base_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/short_term_memory_backends/mysql_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/short_term_memory_backends/postgresql_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/short_term_memory_backends/sqlite_backend.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/memory/short_term_memory_processor.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/models/ark_llm.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/models/ark_transform.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/processors/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/processors/base_run_processor.py +0 -0
- {veadk_python-0.5.3/veadk/tracing/telemetry/exporters → veadk_python-0.5.4/veadk/prompts}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/prompts/agent_default_prompt.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/prompts/prompt_evaluator.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/prompts/prompt_manager.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/prompts/prompt_memory_processor.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/prompts/prompt_optimization.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/realtime/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/realtime/client.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/realtime/doubao_realtime_voice_llm.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/realtime/doubao_realtime_voice_llm_connection.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/realtime/live.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/realtime/protocol.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/runner.py +0 -0
- {veadk_python-0.5.3/veadk/utils → veadk_python-0.5.4/veadk/tools}/__init__.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/agent_authorization.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/execute_skills.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/generate_image.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/image_edit.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/image_generate.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/lark.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/las.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/link_reader.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/llm_shield.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/load_knowledgebase.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/mcp_router.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/mobile_run.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/run_code.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/tts.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/vesearch.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/video_generate.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/vod.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/web_scraper.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/builtin_tools/web_search.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/demo_tools.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/load_knowledgebase_tool.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/mcp_tool/trusted_mcp_session_manager.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/mcp_tool/trusted_mcp_toolset.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/sandbox/browser_sandbox.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/sandbox/code_sandbox.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tools/sandbox/computer_sandbox.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/base_tracer.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/attributes/attributes.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/attributes/extractors/common_attributes_extractors.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/attributes/extractors/llm_attributes_extractors.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/attributes/extractors/tool_attributes_extractors.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/attributes/extractors/types.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/exporters/apmplus_exporter.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/exporters/base_exporter.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/exporters/cozeloop_exporter.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/exporters/inmemory_exporter.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/exporters/tls_exporter.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/opentelemetry_tracer.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/tracing/telemetry/telemetry.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/types.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/audio_manager.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/auth.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/logger.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/mcp_utils.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/misc.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/patches.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk/utils/volcengine_sign.py +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk_python.egg-info/dependency_links.txt +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/veadk_python.egg-info/entry_points.txt +0 -0
- {veadk_python-0.5.3 → veadk_python-0.5.4}/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.4
|
|
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
|
|
@@ -217,7 +217,6 @@ Requires-Dist: loguru==0.7.3
|
|
|
217
217
|
Requires-Dist: opentelemetry-exporter-otlp==1.37.0
|
|
218
218
|
Requires-Dist: opentelemetry-instrumentation-logging>=0.56b0
|
|
219
219
|
Requires-Dist: wrapt==1.17.2
|
|
220
|
-
Requires-Dist: openai<1.100
|
|
221
220
|
Requires-Dist: volcengine-python-sdk>=5.0.1
|
|
222
221
|
Requires-Dist: volcengine>=1.0.193
|
|
223
222
|
Requires-Dist: agent-pilot-sdk==0.1.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "veadk-python"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.4"
|
|
4
4
|
description = "Volcengine agent development kit, integrations with Volcengine cloud services."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -21,7 +21,6 @@ dependencies = [
|
|
|
21
21
|
"opentelemetry-exporter-otlp==1.37.0",
|
|
22
22
|
"opentelemetry-instrumentation-logging>=0.56b0",
|
|
23
23
|
"wrapt==1.17.2", # For patching built-in functions
|
|
24
|
-
"openai<1.100", # For fix https://github.com/BerriAI/litellm/issues/13710
|
|
25
24
|
"volcengine-python-sdk>=5.0.1", # For Volcengine API
|
|
26
25
|
"volcengine>=1.0.193", # For Volcengine sign
|
|
27
26
|
"agent-pilot-sdk==0.1.2", # Prompt optimization by Volcengine AgentPilot/PromptPilot toolkits
|
|
@@ -147,6 +147,10 @@ def create(agent_name: str, ark_api_key: str) -> None:
|
|
|
147
147
|
"""
|
|
148
148
|
if not agent_name:
|
|
149
149
|
agent_name = click.prompt("Enter the agent name")
|
|
150
|
+
|
|
151
|
+
if "-" in agent_name:
|
|
152
|
+
raise ValueError("Agent name cannot contain '-'. Use '_' instead.")
|
|
153
|
+
|
|
150
154
|
if not ark_api_key:
|
|
151
155
|
ark_api_key = _prompt_for_ark_api_key()
|
|
152
156
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
+
import logging
|
|
15
16
|
from functools import wraps
|
|
16
17
|
|
|
17
18
|
import click
|
|
@@ -139,5 +140,14 @@ def web(ctx, *args, **kwargs) -> None:
|
|
|
139
140
|
# from Google ADK and Litellm
|
|
140
141
|
if "--log_level" not in extra_args:
|
|
141
142
|
extra_args.extend(["--log_level", "ERROR"])
|
|
143
|
+
logging.basicConfig(level=logging.ERROR, force=True)
|
|
144
|
+
|
|
145
|
+
if "--log_level" in extra_args:
|
|
146
|
+
logging.basicConfig(
|
|
147
|
+
level=getattr(
|
|
148
|
+
logging, extra_args[extra_args.index("--log_level") + 1].upper()
|
|
149
|
+
),
|
|
150
|
+
force=True,
|
|
151
|
+
)
|
|
142
152
|
|
|
143
153
|
cli_web.main(args=extra_args, standalone_mode=False)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
from langchain.agents import AgentState
|
|
18
|
+
from langchain.agents.middleware import after_agent
|
|
19
|
+
from langchain_core.messages.ai import AIMessage
|
|
20
|
+
from langchain_core.messages.human import HumanMessage
|
|
21
|
+
from langgraph.runtime import Runtime
|
|
22
|
+
|
|
23
|
+
from veadk.community.langchain_ai.store.memory.viking_memory import (
|
|
24
|
+
VikingMemoryStore,
|
|
25
|
+
)
|
|
26
|
+
from veadk.utils.logger import get_logger
|
|
27
|
+
|
|
28
|
+
logger = get_logger(__name__)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@after_agent
|
|
32
|
+
def save_session(state: AgentState, runtime: Runtime) -> None:
|
|
33
|
+
"""Save the session to the memory store."""
|
|
34
|
+
store: VikingMemoryStore | None = runtime.store
|
|
35
|
+
if not store:
|
|
36
|
+
return
|
|
37
|
+
|
|
38
|
+
app_name = store.index
|
|
39
|
+
user_id = runtime.context.user_id
|
|
40
|
+
session_id = runtime.context.session_id
|
|
41
|
+
|
|
42
|
+
messages = state.get("messages", [])
|
|
43
|
+
logger.debug(
|
|
44
|
+
f"Save session {session_id} for user {user_id} with {len(messages)} messages. messages={messages}"
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
events = {}
|
|
48
|
+
for message in messages:
|
|
49
|
+
print(type(message))
|
|
50
|
+
if isinstance(message, HumanMessage):
|
|
51
|
+
event = {"role": "user", "parts": [{"text": message.content}]}
|
|
52
|
+
|
|
53
|
+
elif isinstance(message, AIMessage):
|
|
54
|
+
event = {"role": "assistant", "parts": [{"text": message.content}]}
|
|
55
|
+
else:
|
|
56
|
+
...
|
|
57
|
+
|
|
58
|
+
events[message.id] = event
|
|
59
|
+
|
|
60
|
+
store.put(namespace=(app_name, user_id), key=session_id, value=events)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
from langchain_core.utils.utils import (
|
|
18
|
+
from_env,
|
|
19
|
+
secret_from_env,
|
|
20
|
+
)
|
|
21
|
+
from langchain_openai import ChatOpenAI
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ArkChatModel(ChatOpenAI):
|
|
25
|
+
def __init__(self, model: str, **kwargs):
|
|
26
|
+
super().__init__(
|
|
27
|
+
model=model,
|
|
28
|
+
api_key=secret_from_env("MODEL_AGENT_API_KEY")(),
|
|
29
|
+
base_url=from_env(
|
|
30
|
+
"MODEL_AGENT_API_BASE",
|
|
31
|
+
default="https://ark.cn-beijing.volces.com/api/v3",
|
|
32
|
+
)(),
|
|
33
|
+
**kwargs,
|
|
34
|
+
)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
from collections.abc import Iterable
|
|
19
|
+
|
|
20
|
+
from langgraph.store.base import (
|
|
21
|
+
BaseStore,
|
|
22
|
+
GetOp,
|
|
23
|
+
ListNamespacesOp,
|
|
24
|
+
Op,
|
|
25
|
+
PutOp,
|
|
26
|
+
Result,
|
|
27
|
+
SearchOp,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
from veadk.memory.long_term_memory_backends.vikingdb_memory_backend import (
|
|
31
|
+
VikingDBLTMBackend,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# mem0
|
|
36
|
+
# viking db
|
|
37
|
+
class VikingMemoryStore(BaseStore):
|
|
38
|
+
def __init__(self, index: str):
|
|
39
|
+
# index = (index, user_id)
|
|
40
|
+
# key = session_id
|
|
41
|
+
self.index = index
|
|
42
|
+
self._backend = VikingDBLTMBackend(index=index)
|
|
43
|
+
|
|
44
|
+
def batch(self, ops: Iterable[Op]) -> list[Result]:
|
|
45
|
+
# The batch/abatch methods are treated as internal.
|
|
46
|
+
# Users should access via put/search/get/list_namespaces/etc.
|
|
47
|
+
results = []
|
|
48
|
+
for op in ops:
|
|
49
|
+
if isinstance(op, PutOp):
|
|
50
|
+
self._apply_put_op(op)
|
|
51
|
+
elif isinstance(op, GetOp):
|
|
52
|
+
self._apply_get_op(op)
|
|
53
|
+
elif isinstance(op, SearchOp):
|
|
54
|
+
results.extend(self._apply_search_op(op))
|
|
55
|
+
# elif isinstance(op, ListNamespacesOp):
|
|
56
|
+
# self._apply_list_namespaces_op(op)
|
|
57
|
+
else:
|
|
58
|
+
raise ValueError(f"Unknown op type: {type(op)}")
|
|
59
|
+
|
|
60
|
+
return results
|
|
61
|
+
|
|
62
|
+
def abatch(
|
|
63
|
+
self, ops: Iterable[GetOp | SearchOp | PutOp | ListNamespacesOp]
|
|
64
|
+
) -> list[Result]: ...
|
|
65
|
+
|
|
66
|
+
def _apply_put_op(self, op: PutOp) -> None:
|
|
67
|
+
index, user_id = op.namespace
|
|
68
|
+
session_id = op.key
|
|
69
|
+
|
|
70
|
+
assert index == self._backend.index, (
|
|
71
|
+
"index must be the same as the backend index"
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
value = op.value
|
|
75
|
+
|
|
76
|
+
event_strings = []
|
|
77
|
+
|
|
78
|
+
for _, event in value.items():
|
|
79
|
+
event_strings.append(json.dumps(event))
|
|
80
|
+
|
|
81
|
+
if self._backend.save_memory(
|
|
82
|
+
user_id=user_id,
|
|
83
|
+
session_id=session_id,
|
|
84
|
+
event_strings=event_strings,
|
|
85
|
+
):
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
def _apply_get_op(self, op: GetOp):
|
|
89
|
+
return ["Not implemented"]
|
|
90
|
+
|
|
91
|
+
def _apply_search_op(self, op: SearchOp):
|
|
92
|
+
index, user_id = op.namespace_prefix
|
|
93
|
+
assert index == self._backend.index, (
|
|
94
|
+
"index must be the same as the backend index"
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
query = op.query
|
|
98
|
+
if not query:
|
|
99
|
+
return []
|
|
100
|
+
|
|
101
|
+
value = self._backend.search_memory(user_id=user_id, query=query, top_k=1)
|
|
102
|
+
return value
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
from langchain.tools import ToolRuntime, tool
|
|
16
|
+
|
|
17
|
+
from veadk.knowledgebase import KnowledgeBase
|
|
18
|
+
from veadk.utils.logger import get_logger
|
|
19
|
+
|
|
20
|
+
logger = get_logger(__name__)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@tool
|
|
24
|
+
def load_knowledgebase(query: str, runtime: ToolRuntime) -> list[str]:
|
|
25
|
+
"""Load knowledge base for the current user.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
query: The query to search for in the knowledge base.
|
|
29
|
+
"""
|
|
30
|
+
knowledgeabse: KnowledgeBase = runtime.context.knowledgebase # type: ignore
|
|
31
|
+
|
|
32
|
+
results = knowledgeabse.search(query)
|
|
33
|
+
|
|
34
|
+
return [result.content for result in results]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from langchain.tools import ToolRuntime, tool
|
|
17
|
+
|
|
18
|
+
from veadk.community.langchain_ai.store.memory.viking_memory import (
|
|
19
|
+
VikingMemoryStore,
|
|
20
|
+
)
|
|
21
|
+
from veadk.utils.logger import get_logger
|
|
22
|
+
|
|
23
|
+
logger = get_logger(__name__)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@tool
|
|
27
|
+
def load_memory(query: str, runtime: ToolRuntime) -> list[str]:
|
|
28
|
+
"""Load memories for the current user across all history sessions.
|
|
29
|
+
|
|
30
|
+
Args:
|
|
31
|
+
query: The query to search for in the memory.
|
|
32
|
+
"""
|
|
33
|
+
store: VikingMemoryStore | None = runtime.store # type: ignore
|
|
34
|
+
if not store:
|
|
35
|
+
return ["Long-term memory store is not initialized."]
|
|
36
|
+
|
|
37
|
+
app_name = store.index
|
|
38
|
+
user_id = runtime.context.user_id
|
|
39
|
+
|
|
40
|
+
logger.info(f"Load memory for user {user_id} with query {query}")
|
|
41
|
+
response = store.search((app_name, user_id), query=query)
|
|
42
|
+
|
|
43
|
+
return response
|
|
@@ -143,9 +143,14 @@ class VikingDBLTMBackend(BaseLongTermMemoryBackend):
|
|
|
143
143
|
)
|
|
144
144
|
|
|
145
145
|
@override
|
|
146
|
-
def save_memory(
|
|
146
|
+
def save_memory(
|
|
147
|
+
self,
|
|
148
|
+
user_id: str,
|
|
149
|
+
event_strings: list[str],
|
|
150
|
+
**kwargs,
|
|
151
|
+
) -> bool:
|
|
147
152
|
assistant_id = kwargs.get("assistant_id", "assistant")
|
|
148
|
-
session_id = str(uuid.uuid1())
|
|
153
|
+
session_id = kwargs.get("session_id", str(uuid.uuid1()))
|
|
149
154
|
messages = []
|
|
150
155
|
for raw_events in event_strings:
|
|
151
156
|
event = json.loads(raw_events)
|
|
@@ -161,7 +166,7 @@ class VikingDBLTMBackend(BaseLongTermMemoryBackend):
|
|
|
161
166
|
}
|
|
162
167
|
|
|
163
168
|
logger.debug(
|
|
164
|
-
f"Request for add {len(messages)} memory to VikingDB: collection_name={self.index}, metadata={metadata}, session_id={session_id}"
|
|
169
|
+
f"Request for add {len(messages)} memory to VikingDB: collection_name={self.index}, metadata={metadata}, session_id={session_id}, messages={messages}"
|
|
165
170
|
)
|
|
166
171
|
|
|
167
172
|
client = self._get_sdk_client()
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: veadk-python
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
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
|
|
@@ -217,7 +217,6 @@ Requires-Dist: loguru==0.7.3
|
|
|
217
217
|
Requires-Dist: opentelemetry-exporter-otlp==1.37.0
|
|
218
218
|
Requires-Dist: opentelemetry-instrumentation-logging>=0.56b0
|
|
219
219
|
Requires-Dist: wrapt==1.17.2
|
|
220
|
-
Requires-Dist: openai<1.100
|
|
221
220
|
Requires-Dist: volcengine-python-sdk>=5.0.1
|
|
222
221
|
Requires-Dist: volcengine>=1.0.193
|
|
223
222
|
Requires-Dist: agent-pilot-sdk==0.1.2
|
|
@@ -86,6 +86,18 @@ veadk/cli/templates/rl/lightning/data/demo_train.parquet
|
|
|
86
86
|
veadk/cloud/__init__.py
|
|
87
87
|
veadk/cloud/cloud_agent_engine.py
|
|
88
88
|
veadk/cloud/cloud_app.py
|
|
89
|
+
veadk/community/langchain_ai/checkpoint/__init__.py
|
|
90
|
+
veadk/community/langchain_ai/checkpoint/memory/__init__.py
|
|
91
|
+
veadk/community/langchain_ai/middlewares/__init__.py
|
|
92
|
+
veadk/community/langchain_ai/middlewares/save_session.py
|
|
93
|
+
veadk/community/langchain_ai/models/__init__.py
|
|
94
|
+
veadk/community/langchain_ai/models/ark_model.py
|
|
95
|
+
veadk/community/langchain_ai/store/__init__.py
|
|
96
|
+
veadk/community/langchain_ai/store/memory/__init__.py
|
|
97
|
+
veadk/community/langchain_ai/store/memory/viking_memory.py
|
|
98
|
+
veadk/community/langchain_ai/tools/__init__.py
|
|
99
|
+
veadk/community/langchain_ai/tools/load_knowledgebase.py
|
|
100
|
+
veadk/community/langchain_ai/tools/load_memory.py
|
|
89
101
|
veadk/configs/__init__.py
|
|
90
102
|
veadk/configs/auth_configs.py
|
|
91
103
|
veadk/configs/database_configs.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
|