veadk-python 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
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.
Potentially problematic release.
This version of veadk-python might be problematic. Click here for more details.
- veadk/__init__.py +9 -3
- veadk/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/__pycache__/runner.cpython-310.pyc +0 -0
- veadk/__pycache__/types.cpython-310.pyc +0 -0
- veadk/__pycache__/version.cpython-310.pyc +0 -0
- veadk/a2a/__pycache__/remote_ve_agent.cpython-310.pyc +0 -0
- veadk/a2a/__pycache__/ve_a2a_server.cpython-310.pyc +0 -0
- veadk/a2a/__pycache__/ve_agent_executor.cpython-310.pyc +0 -0
- veadk/a2a/remote_ve_agent.py +1 -1
- veadk/a2a/ve_a2a_server.py +0 -2
- veadk/agent.py +10 -7
- veadk/cli/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_deploy.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_init.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_prompt.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_studio.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_web.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/main.cpython-310.pyc +0 -0
- veadk/cli/{services/agentpilot/__init__.py → cli.py} +25 -2
- veadk/cli/cli_deploy.py +147 -0
- veadk/cli/cli_init.py +106 -0
- veadk/cli/cli_prompt.py +64 -0
- veadk/cli/cli_web.py +154 -0
- veadk/cloud/__pycache__/cloud_agent_engine.cpython-310.pyc +0 -0
- veadk/cloud/__pycache__/cloud_app.cpython-310.pyc +0 -0
- veadk/cloud/cloud_agent_engine.py +77 -42
- veadk/cloud/cloud_app.py +37 -6
- veadk/database/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/database/__pycache__/database_adapter.cpython-310.pyc +0 -0
- veadk/database/database_adapter.py +2 -2
- veadk/database/kv/redis_database.py +12 -9
- veadk/database/relational/mysql_database.py +10 -9
- veadk/database/vector/opensearch_vector_database.py +14 -7
- veadk/database/viking/viking_database.py +23 -17
- veadk/database/viking/viking_memory_db.py +9 -9
- veadk/evaluation/__pycache__/base_evaluator.cpython-310.pyc +0 -0
- veadk/evaluation/adk_evaluator/adk_evaluator.py +12 -17
- veadk/evaluation/base_evaluator.py +10 -9
- veadk/evaluation/utils/prometheus.py +1 -4
- veadk/integrations/ve_apig/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/integrations/ve_apig/__pycache__/ve_apig.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/types.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/ve_faas.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/ve_faas_utils.cpython-310.pyc +0 -0
- veadk/{cli/services/vefaas → integrations/ve_faas}/__pycache__/vefaas.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/template/cookiecutter.json +11 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/config.yaml.example +6 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/deploy.py +103 -0
- veadk/{cli/services/vefaas/template → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/src/__init__.py +0 -1
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/__pycache__/app.cpython-310.pyc +0 -0
- veadk/{cli/services/veapig/__init__.py → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/agent.py} +10 -2
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py +146 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/requirements.txt +1 -0
- veadk/{cli/services/vefaas/template → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/src/run.sh +10 -19
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/__init__.py +14 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/{cli/services/vefaas/template/src/agent.py → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/agent.py } +8 -6
- veadk/{cli/services/vefaas/vefaas.py → integrations/ve_faas/ve_faas.py} +15 -6
- veadk/integrations/ve_prompt_pilot/__init__.py +13 -0
- veadk/{cli/services/agentpilot → integrations/ve_prompt_pilot}/__pycache__/agentpilot.cpython-310.pyc +0 -0
- veadk/{cli/services/agentpilot/agentpilot.py → integrations/ve_prompt_pilot/ve_prompt_pilot.py} +5 -6
- veadk/knowledgebase/__pycache__/knowledgebase.cpython-310.pyc +0 -0
- veadk/knowledgebase/knowledgebase.py +3 -5
- veadk/memory/__pycache__/long_term_memory.cpython-310.pyc +0 -0
- veadk/memory/__pycache__/short_term_memory.cpython-310.pyc +0 -0
- veadk/memory/__pycache__/short_term_memory_processor.cpython-310.pyc +0 -0
- veadk/memory/long_term_memory.py +5 -2
- veadk/memory/short_term_memory.py +3 -7
- veadk/memory/short_term_memory_processor.py +7 -2
- veadk/prompts/prompt_optimization.py +11 -19
- veadk/runner.py +85 -68
- veadk/tools/__pycache__/load_knowledgebase_tool.cpython-310.pyc +0 -0
- veadk/tools/builtin_tools/__pycache__/vesearch.cpython-310.pyc +0 -0
- veadk/tools/load_knowledgebase_tool.py +3 -2
- veadk/tracing/__pycache__/base_tracer.cpython-310.pyc +0 -0
- veadk/tracing/base_tracer.py +27 -15
- veadk/tracing/telemetry/__pycache__/opentelemetry_tracer.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/apmplus_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/base_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/cozeloop_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/inmemory_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/tls_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/apmplus_exporter.py +0 -3
- veadk/tracing/telemetry/exporters/base_exporter.py +3 -0
- veadk/tracing/telemetry/exporters/cozeloop_exporter.py +0 -3
- veadk/tracing/telemetry/exporters/inmemory_exporter.py +13 -4
- veadk/tracing/telemetry/exporters/tls_exporter.py +2 -9
- veadk/tracing/telemetry/opentelemetry_tracer.py +14 -30
- veadk/types.py +20 -1
- veadk/utils/__pycache__/logger.cpython-310.pyc +0 -0
- veadk/utils/__pycache__/misc.cpython-310.pyc +0 -0
- veadk/utils/__pycache__/patches.cpython-310.pyc +0 -0
- veadk/utils/mcp_utils.py +1 -1
- veadk/utils/misc.py +31 -2
- veadk/utils/patches.py +0 -30
- veadk/version.py +1 -1
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/METADATA +16 -5
- veadk_python-0.2.2.dist-info/RECORD +213 -0
- veadk_python-0.2.2.dist-info/entry_points.txt +2 -0
- veadk/cli/main.py +0 -379
- veadk/cli/services/veapig/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/services/vefaas/__init__.py +0 -17
- veadk/cli/services/vefaas/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/services/vefaas/template/README.md +0 -37
- veadk/cli/services/vefaas/template/config.yaml.example +0 -19
- veadk/cli/services/vefaas/template/deploy.py +0 -58
- veadk/cli/services/vefaas/template/src/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/cli/services/vefaas/template/src/app.py +0 -70
- veadk/cli/services/vefaas/template/src/requirements.txt +0 -6
- veadk/cli/services/vefaas/template/src/studio_app.py +0 -47
- veadk/cli/services/vetls/__init__.py +0 -17
- veadk/cli/services/vetls/vetls.py +0 -87
- veadk/cli/studio/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/studio/__pycache__/fast_api.cpython-310.pyc +0 -0
- veadk/cli/studio/__pycache__/models.cpython-310.pyc +0 -0
- veadk/cli/studio/__pycache__/studio_processor.cpython-310.pyc +0 -0
- veadk/cli/studio/fast_api.py +0 -392
- veadk/cli/studio/models.py +0 -76
- veadk/cli/studio/studio_processor.py +0 -127
- veadk/cli/studio/web/404.html +0 -1
- veadk/cli/studio/web/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/studio/web/_next/static/chunks/1012.1c22f40693022876.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1017.577d2551c3a2b396.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1044.7c49605a0f9b5d5c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1067.71aee8d185b3a9d7.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1088.8f7f3c71458d301b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1092.7b553ab1ec1737bf.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1117.8c537e259adccbe2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1142.1faf8d46ccf4030c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1146.25bf08c82f4ad1c5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1192.55e7712b3dc8b6a8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1200.1038681512a9f69a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1265.e055670c82b2d131.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1275.322d8bf8a580b859.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/140.d7e90f5e12cf288c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1421.7fff0e9f0677f79b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1469.16c1e07a7c0f9817.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1480.3c94a6d6d61c4f56.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1507.4c7617217de3bef8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1523.1740f3d9d913fe76.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1526.5fb34657a70589b5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1563.6c364e96b33f3328.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/157.2e3f508bc115c15c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1577.b6cebda169ac9c75.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1622.a611b4dab478587d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1685.db5d4efe2f0e3767.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1687.a10254d4e1dd84c0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1826.da2ac0fcfb59cfae.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1832.f81112d6166a9563.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1851.1d0bdfdf5fa89313.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/189.c602a68aadf321e4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1899.dd303f08095745bc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/193.1e81c5b253db2ee7.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1936.8fad6d3898c86483.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1942.165056b632c269d4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1974.ee28ba5ac111af70.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2.c2afe2e24520b5de.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2006.298ac00a777dc313.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2063.69ba443b7901194c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2067-e02b0bc96d886930.js +0 -91
- veadk/cli/studio/web/_next/static/chunks/2119.4595d21bc0340c5b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/212.0a8d6163667d9369.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2190.5549f7a57901bd46.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2193.51ce38cc9e965abd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2202.a6c08676680e55ad.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2247.af410bd18c38e538.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2313.6932520daf0fa88c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2316.c9eafa57971eebc8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2324.766859688506ac0d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2328.131b0296bc19ba4e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2332.b9b7ac0b386a4a28.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2344.cc417c70cb6dbc51.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2347.9f442b75b11de668.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2356.f6b4ac7eb50edb44.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2370.044b34646bc58363.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2378.2005af4d2bf100dd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2437.68534e42d45c5c61.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2449.db460ea54b851bc1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2455.153b04863d2ae9dc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2484.139843b3f1cc8ea5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2500.e2b8da0d1401bd5f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2513.a7056ff98b04c4cd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2533.5e35d247414428d0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2541.3e5a23b461d7a9fd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2545.0e4e3a784391205b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2558.17eda1052d7c8c1f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2559.7432df2540cfff07.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2578.1be0687e71bc7731.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2601.aa7e57bdf472372c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/261-19b52c2c85aefb5d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2642.9ea0966ca6bd8ace.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2669.e90ab188be48154e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2737.4f5c7f7b9293ae65.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2804.b801cadc26133d92.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2817.8584109b4bc979e8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/282.cfff86fab979470f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2822.12cdf0520b2d321a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/288.5c1053dbdc74212b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2964.a531dbf5eb867f3d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2f7605f3.0531565b22967bb4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3080.9aada68cdc9ad5c2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3090.a9e7f71df818f607.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3103.b7cdb76d87ac0fdd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/311.2737abd09304ba1b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3110.84511591e516221b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3126.307ac469edcf6ec9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/320.a3c0085ebf05b7da.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/322.668c1a20cc012c68.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3341.a0f06b1edc2332fb.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3357.ced93e6bf8e56762.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3386.53f3aa4ff0dd0170.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3391.402e02fd7c297ff8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3392.5172b1d190ff0e8c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/33fb68d2.aacf24a5979288bd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3429.74dcaa985d188e43.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3433.737c3d948bdda1da.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3435.1798454b9a5b69ca.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3481.a916f933c4e534b8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3602.bdf28129f1569554.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3607.49cec7e9330d1f4d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3615.3280752d551adf2d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3721.f660b5b05621f5e4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3786.ae0824e683556d37.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3805.ec0340f0f6e61bbc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4045.42a3c9fb7d932ebc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4052.86cc820c95ad25a8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4058.3cea468f5370b7c9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4068.ff830b92579f6b7f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/411.5679da8e6a856022.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4118.e2544434642f6640.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4139.80b0aab26d9a4601.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/423.da4e0abf5fd408dc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4262.9d5532cb76a86371.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/431.ef6d705ac627958f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4337.3c94a6d6d61c4f56.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4357-39eb6b5934ac97db.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4382.64908590e0a18d66.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4489.7a9b45fb6f6bf491.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/450.76880cb957b128fa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/452.14fb00ee415ad32b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4577.d1cbd95a87e2adb2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4626.0866c7ee38885775.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4627.3d7df52a668a6b57.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4713.3891f7d347513ef5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4749.25fd94a8ed476b13.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4836.afe027e38fb9a7e8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/483e0093.2a09b17ad5d1b3ed.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4852.cac6e9c5032df796.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4860.94324451a00fadc0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4869.091903cb36ad77ad.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4888.e248e212b002f5df.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/492.ac958937dd36300f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4958.85e0dbc8b2319776.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4968.1477e29640b2deb8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4980.1300ab7d9c76e523.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4aa6d3c9.dade76a8ff4112d3.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5006.8ee1d611f529da11.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5018.c34d2a9f82e24c51.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5050.c06b2d8e12720555.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5084.9b554002148843ea.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5097.2e9a097ccfb70707.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5113.fa5291624248676b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5115.ff49cf5e2be16db4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/521.98b7995e15b59075.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5213.1a7618fcae8c5282.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/522.56063fbcf9aa8699.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5247.b304f94eb3132618.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5248.f9faaff2f0d7631f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/527-1c65afbb202752bd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/529.7d231c2076b6d77a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5305.9323b5f7efaa005e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5317.fce75000492e9db4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5326.3be5b04850f0a2f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5329.415b43aacdd9a471.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5331.77f0493c99857944.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5341.1fff90ab37947f62.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/541.04d938e895b7f678.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5428.fa789e4b0d61cd0d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5460.cee07b9411c5c5ca.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5472.f645717ad2edd28f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5503.75093ef3870b655f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5567.44555d5da6ed19b7.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5572.3c35c26a4867ca56.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5579.b3be6028d1833118.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5631.b8a2c0dc65737269.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5656.b743b6ab9a61eec0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5677.c063822912e55a25.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5779.0b1a3c7d1c018a1d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5817.ae1fb69a154fbf4c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5860.7154866a5d2dd82f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5865.645e44e8e171ba9f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5906.30cce16ed88f920a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5942.cd6dfaad76581849.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5958.e2f981fa3cba5d99.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/60f90b65.d526f39688baa769.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6128.3da302fb50769250.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/62.5408e55d383a8078.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/624.7c7198473a8877d8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6264.e7bdd878d9e7a249.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6266.97409ca00a3c32d9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6269.668be917daafccaa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/630.87a6f22ac3e8956b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6341.35afa02112051be8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6353.93869a804ffe525b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6375.46d2897cb2526abd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6395.f113970ceec6ba91.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/63d31579-18fb2181524a9c6f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6423.d4cf9eb5b2ae6336.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6437.5eeaa7320bce1872.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6438.1c8486cc62da4117.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6451.f56cce0a07138982.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6456.f263b33ea51e4f54.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6504.0e6ae8d5bb987be6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6560.b08504c0d99d71d4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6563.e6d3bdba9860590d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6621.639e4057d9c15bea.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6625.c0233245d2c1ef25.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6641.5487a2d68b0c52f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6644.74de9f2de2dc75f5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6730.aac5bd02aab8258f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6824.8c40dbd3eb390403.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6831.74b4a9b75f4ff9d1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/688.9a27292bd19bc993.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6899.ac4207b9a778bd0e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6901.4755ed550912589c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6910.5d45b17e287dba94.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6928.d0a540480df90930.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6958.c58e8e991b201429.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6d60d248-1bbd761ee88ab2e4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/70207789-862965aac548ab2a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7046.60a892c1e506cf5f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7068.6639b51e828de233.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7172.aeda2e49d81fc0fd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7185.0210768f3918ec41.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7200.86e672d8e2c1a920.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/730.2c5e46bf8fd29fcc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7301.43929cd9c2a5d2ea.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7335.68692b193fa0dff6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7412.98554f6ee574e288.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7422.e4a69fce6694ba90.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7448.63e7b8d5fd090bd1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7479.97f696c6ada04b29.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7482.ab6a217c34f6934a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7484.b91675bd38b250f8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7522.84dac217ae0701ac.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7540-38c13446d29f43f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7556.ae47807e378de233.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/761.2ce77249f8d3a1ce.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7678.ceea70830f2dd7ff.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7684.c43e4b5ad1f9b0af.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7698.44201098b212aee8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/76ff44ea.8322bdedaee78e2d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7725.b15cb8b6e1d15403.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7855.513a507852c649f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7910.266df3f992c16215.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7940.f490f3d5e6590e54.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7960.491bd15bef82755c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8020.795778775ed5c387.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8107.fbb6017b3e909da5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8169.4d7fd139784eb935.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8196.6c5c3dfe86e1c3ca.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8257.ee682bc2599473cb.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8305.d2c965e56fe9350c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8324.8c3edcc756f5e2f3.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8388.cc59fb03d62a71cf.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8394.d5ca17ce8f6fffb0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8419.b11c64d18dc580b5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8478.5f4272ae9afa4061.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8480.a071150cb4eddc29.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8535.0ab856b7bf0e161b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8571.8af7983b03c09f86.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8583.4afa8c68cb867b2d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8601.520cbfc8abbfb5f8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8656.5f8b6212d2b35257.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8665.7f24febc4a78ff5e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8687.c94010eb559245b6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8815.81a5c5700763ca02.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8878.28a43a5fe23f5bd0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8884.e4e411c7978b2552.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8962.db5c7728bef5ff0b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8984.dfcb15f115089c4a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9022.d161e32a6b1bcc61.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9099.8ba5be825d17456a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/914.72991ff6c9332951.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9217.40b78a38cadcd268.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/925.0cc74592f03b10e9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9275.ac60c49c68c86e51.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/92a17e6d.da4fba322f70cd46.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/92b95f17.39f98387a9867b4a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9361.d3535e4d87c1c527.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9433.55eb6e4ea7edb262.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9436.5b2462fa3ddebb27.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9445.e29312f685c22eff.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9471.646bdfb962cdd5c2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9473.efa6db413edc23d1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9484.e9f1cd4e3f8e75df.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9545.61026f3c11f914f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9555.287e4e4a50087d62.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/963.da40bca273fb82c6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9636.4d3678b9a4e0b46e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9657.459d6300b0bc8ef8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9676.cef4d87274c64417.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/97.15df9ee2f6270421.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9754.76a3ea33dc0e9a07.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9790.7e01549d70279760.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9871.994068e90ef076a5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9887.0fbd7c3721a3c1d1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9923.14c88b64d7749eaa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/997.193727d4b2eede68.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9971.36f503837f73d3c2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9976.ab4ec59ede08f398.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9990.13e025853b0250b6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9997.a844d058b46bb680.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/_not-found/page-ce05b36a67c37396.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/layout-b0d50d105c55fd6d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/page-7b51d29c96f44f61.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/run/page-c2cd4dca690d6d29.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/c06218ab.b1da50a91b579a52.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/c911d7bd.bcca2e3dda67a7a6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/d386b14e.c746c93eac03a58e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/e925550e.ff706051f5223d26.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/fc645be4-662fd2da08676daa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/framework-2b8e4864be10152d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/main-33072985ea766514.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/main-app-4a8ccba13aa7606b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/pages/_app-c0ae3ec92f260128.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/pages/_error-899a04d491d7df58.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/webpack-14afc8861a1fe293.js +0 -1
- veadk/cli/studio/web/_next/static/css/366cfdd7fdd8bcac.css +0 -1
- veadk/cli/studio/web/_next/static/gvLvin_lQcpkhQupQqPu1/_buildManifest.js +0 -1
- veadk/cli/studio/web/_next/static/gvLvin_lQcpkhQupQqPu1/_ssgManifest.js +0 -1
- veadk/cli/studio/web/_next/static/media/569ce4b8f30dc480-s.p.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/747892c23ea88013-s.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/8d697b304b401681-s.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/93f479601ee12b01-s.p.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/9610d9e46709d722-s.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/ba015fad6dcf6784-s.woff2 +0 -0
- veadk/cli/studio/web/favicon.ico +0 -0
- veadk/cli/studio/web/file.svg +0 -1
- veadk/cli/studio/web/globe.svg +0 -1
- veadk/cli/studio/web/index.html +0 -1
- veadk/cli/studio/web/index.txt +0 -43
- veadk/cli/studio/web/next.svg +0 -1
- veadk/cli/studio/web/run.html +0 -1
- veadk/cli/studio/web/run.txt +0 -44
- veadk/cli/studio/web/veadk-logo.png +0 -0
- veadk/cli/studio/web/vercel.svg +0 -1
- veadk/cli/studio/web/window.svg +0 -1
- veadk/tracing/telemetry/exporters/apiserver_exporter.py +0 -60
- veadk_python-0.2.1.dist-info/RECORD +0 -534
- veadk_python-0.2.1.dist-info/entry_points.txt +0 -2
- /veadk/{cli/services/vefaas/template → integrations/ve_apig}/__init__.py +0 -0
- /veadk/{cli/services/veapig → integrations/ve_apig}/__pycache__/apig.cpython-310.pyc +0 -0
- /veadk/{cli/services/veapig/apig.py → integrations/ve_apig/ve_apig.py} +0 -0
- /veadk/{cli/services/veapig/apig_utils.py → integrations/ve_apig/ve_apig_utils.py} +0 -0
- /veadk/{cli/studio → integrations/ve_faas}/__init__.py +0 -0
- /veadk/{cli/services/vefaas → integrations/ve_faas}/__pycache__/vefaas_utils.cpython-310.pyc +0 -0
- /veadk/{cli/studio/web → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/__init__.py +0 -0
- /veadk/{cli/services/vefaas/template → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/src/__pycache__/studio_app.cpython-310.pyc +0 -0
- /veadk/{cli/services/vefaas/vefaas_utils.py → integrations/ve_faas/ve_faas_utils.py} +0 -0
- /veadk/{cli/services/agentpilot → integrations/ve_prompt_pilot}/__pycache__/__init__.cpython-310.pyc +0 -0
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/WHEEL +0 -0
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/licenses/LICENSE +0 -0
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/top_level.txt +0 -0
|
@@ -217,15 +217,16 @@ class BaseEvaluator:
|
|
|
217
217
|
|
|
218
218
|
for eval_case in eval_cases:
|
|
219
219
|
eval_case_data = EvalCaseData(invocations=[])
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
220
|
+
if eval_case.session_input:
|
|
221
|
+
self.agent_information_list.append(
|
|
222
|
+
{
|
|
223
|
+
"app_name": eval_case.session_input.app_name,
|
|
224
|
+
"user_id": eval_case.session_input.user_id,
|
|
225
|
+
"session_id": str(
|
|
226
|
+
uuid.uuid4()
|
|
227
|
+
), # random session id for evaluation,
|
|
228
|
+
}
|
|
229
|
+
)
|
|
229
230
|
|
|
230
231
|
for invocation in eval_case.conversation:
|
|
231
232
|
_input: str = ""
|
|
@@ -23,19 +23,16 @@ from veadk.evaluation.types import EvalResultCaseData, EvalResultMetadata
|
|
|
23
23
|
|
|
24
24
|
class PrometheusPushgatewayConfig:
|
|
25
25
|
url: str = Field(
|
|
26
|
-
...,
|
|
27
26
|
default_factory=lambda: getenv(
|
|
28
27
|
"OBSERVABILITY_PROMETHEUS_PUSHGATEWAY_URL",
|
|
29
28
|
),
|
|
30
29
|
)
|
|
31
30
|
username: str = Field(
|
|
32
|
-
...,
|
|
33
31
|
default_factory=lambda: getenv(
|
|
34
32
|
"OBSERVABILITY_PROMETHEUS_USERNAME",
|
|
35
33
|
),
|
|
36
34
|
)
|
|
37
35
|
password: str = Field(
|
|
38
|
-
...,
|
|
39
36
|
default_factory=lambda: getenv(
|
|
40
37
|
"OBSERVABILITY_PROMETHEUS_PASSWORD",
|
|
41
38
|
),
|
|
@@ -88,7 +85,7 @@ def post_pushgateway(
|
|
|
88
85
|
password: str,
|
|
89
86
|
job_name: str,
|
|
90
87
|
registry: CollectorRegistry,
|
|
91
|
-
grouping_key: dict[str, str] = None,
|
|
88
|
+
grouping_key: dict[str, str] | None = None,
|
|
92
89
|
):
|
|
93
90
|
def auth_handler(url, method, timeout, headers, data):
|
|
94
91
|
return basic_auth_handler(
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"local_dir_name": "veadk_vefaas_proj",
|
|
3
|
+
"app_name": "weather-report",
|
|
4
|
+
"agent_module_name": "weather_agent",
|
|
5
|
+
"short_term_memory_backend": "local",
|
|
6
|
+
"vefaas_application_name": "weather-reporter",
|
|
7
|
+
"veapig_instance_name": "",
|
|
8
|
+
"veapig_service_name": "",
|
|
9
|
+
"veapig_upstream_name": "",
|
|
10
|
+
"use_adk_web": false
|
|
11
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 asyncio
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
|
|
18
|
+
from a2a.types import TextPart
|
|
19
|
+
from fastmcp.client import Client
|
|
20
|
+
|
|
21
|
+
from veadk.cloud.cloud_agent_engine import CloudAgentEngine
|
|
22
|
+
from veadk.cloud.cloud_app import CloudApp, get_message_id
|
|
23
|
+
|
|
24
|
+
SESSION_ID = "cloud_app_test_session"
|
|
25
|
+
USER_ID = "cloud_app_test_user"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def _send_msg_with_a2a(cloud_app: CloudApp, message: str) -> None:
|
|
29
|
+
print("===== A2A example =====")
|
|
30
|
+
|
|
31
|
+
response_message = await cloud_app.message_send(message, SESSION_ID, USER_ID)
|
|
32
|
+
|
|
33
|
+
if not response_message or not response_message.parts:
|
|
34
|
+
print(
|
|
35
|
+
"No response from VeFaaS application. Something wrong with cloud application."
|
|
36
|
+
)
|
|
37
|
+
return
|
|
38
|
+
|
|
39
|
+
print(f"Message ID: {get_message_id(response_message)}")
|
|
40
|
+
|
|
41
|
+
if isinstance(response_message.parts[0].root, TextPart):
|
|
42
|
+
print(
|
|
43
|
+
f"Response from {cloud_app.vefaas_endpoint}: {response_message.parts[0].root.text}"
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
print(
|
|
47
|
+
f"Response from {cloud_app.vefaas_endpoint}: {response_message.parts[0].root}"
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
async def _send_msg_with_mcp(cloud_app: CloudApp, message: str) -> None:
|
|
52
|
+
print("===== MCP example =====")
|
|
53
|
+
|
|
54
|
+
endpoint = cloud_app._get_vefaas_endpoint()
|
|
55
|
+
print(f"MCP server endpoint: {endpoint}/mcp")
|
|
56
|
+
|
|
57
|
+
# Connect to MCP server
|
|
58
|
+
client = Client(f"{endpoint}/mcp")
|
|
59
|
+
|
|
60
|
+
async with client:
|
|
61
|
+
# List available tools
|
|
62
|
+
tools = await client.list_tools()
|
|
63
|
+
print(f"Available tools: {tools}")
|
|
64
|
+
|
|
65
|
+
# Call run_agent tool, pass user input and session information
|
|
66
|
+
res = await client.call_tool(
|
|
67
|
+
"run_agent",
|
|
68
|
+
{
|
|
69
|
+
"user_input": message,
|
|
70
|
+
"session_id": SESSION_ID,
|
|
71
|
+
"user_id": USER_ID,
|
|
72
|
+
},
|
|
73
|
+
)
|
|
74
|
+
print(f"Response from {cloud_app.vefaas_endpoint}: {res}")
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
async def main():
|
|
78
|
+
engine = CloudAgentEngine()
|
|
79
|
+
|
|
80
|
+
cloud_app = engine.deploy(
|
|
81
|
+
path=str(Path(__file__).parent / "src"),
|
|
82
|
+
application_name="{{cookiecutter.vefaas_application_name}}",
|
|
83
|
+
gateway_name="{{cookiecutter.veapig_instance_name}}",
|
|
84
|
+
gateway_service_name="{{cookiecutter.veapig_service_name}}",
|
|
85
|
+
gateway_upstream_name="{{cookiecutter.veapig_upstream_name}}",
|
|
86
|
+
use_adk_web={{cookiecutter.use_adk_web}},
|
|
87
|
+
local_test=False, # Set to True for local testing before deploy to VeFaaS
|
|
88
|
+
)
|
|
89
|
+
print(f"VeFaaS application ID: {cloud_app.vefaas_application_id}")
|
|
90
|
+
|
|
91
|
+
if {{cookiecutter.use_adk_web}}:
|
|
92
|
+
print(f"Web is running at: {cloud_app.vefaas_endpoint}")
|
|
93
|
+
else:
|
|
94
|
+
# Test with deployed cloud application
|
|
95
|
+
message = "How is the weather like in Beijing?"
|
|
96
|
+
print(f"Test message: {message}")
|
|
97
|
+
|
|
98
|
+
await _send_msg_with_a2a(cloud_app=cloud_app, message=message)
|
|
99
|
+
await _send_msg_with_mcp(cloud_app=cloud_app, message=message)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
if __name__ == "__main__":
|
|
103
|
+
asyncio.run(main())
|
|
Binary file
|
|
Binary file
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
from .
|
|
15
|
+
from {{ cookiecutter.app_name|replace('-', '_') }}.agent import agent # type: ignore
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
from veadk.memory.short_term_memory import ShortTermMemory
|
|
18
|
+
from veadk.types import AgentRunConfig
|
|
19
|
+
|
|
20
|
+
# [required] instantiate the agent run configuration
|
|
21
|
+
agent_run_config = AgentRunConfig(
|
|
22
|
+
app_name="{{ cookiecutter.app_name }}",
|
|
23
|
+
agent=agent, # type: ignore
|
|
24
|
+
short_term_memory=ShortTermMemory(backend="{{ cookiecutter.short_term_memory_backend }}"), # type: ignore
|
|
25
|
+
)
|
|
@@ -0,0 +1,146 @@
|
|
|
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 os
|
|
16
|
+
from contextlib import asynccontextmanager
|
|
17
|
+
from typing import Callable
|
|
18
|
+
|
|
19
|
+
from agent import agent_run_config
|
|
20
|
+
from fastapi import FastAPI
|
|
21
|
+
from fastmcp import FastMCP
|
|
22
|
+
|
|
23
|
+
from veadk.a2a.ve_a2a_server import init_app
|
|
24
|
+
from veadk.runner import Runner
|
|
25
|
+
from veadk.tracing.telemetry.exporters.apmplus_exporter import APMPlusExporter
|
|
26
|
+
from veadk.tracing.telemetry.exporters.cozeloop_exporter import CozeloopExporter
|
|
27
|
+
from veadk.tracing.telemetry.exporters.tls_exporter import TLSExporter
|
|
28
|
+
from veadk.tracing.telemetry.opentelemetry_tracer import OpentelemetryTracer
|
|
29
|
+
from veadk.types import AgentRunConfig
|
|
30
|
+
from veadk.utils.logger import get_logger
|
|
31
|
+
|
|
32
|
+
logger = get_logger(__name__)
|
|
33
|
+
|
|
34
|
+
assert isinstance(agent_run_config, AgentRunConfig), (
|
|
35
|
+
f"Invalid agent_run_config type: {type(agent_run_config)}, expected `AgentRunConfig`"
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
app_name = agent_run_config.app_name
|
|
39
|
+
agent = agent_run_config.agent
|
|
40
|
+
short_term_memory = agent_run_config.short_term_memory
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def load_tracer() -> None:
|
|
44
|
+
EXPORTER_REGISTRY = {
|
|
45
|
+
"VEADK_TRACER_APMPLUS": APMPlusExporter,
|
|
46
|
+
"VEADK_TRACER_COZELOOP": CozeloopExporter,
|
|
47
|
+
"VEADK_TRACER_TLS": TLSExporter,
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
exporters = []
|
|
51
|
+
for env_var, exporter_cls in EXPORTER_REGISTRY.items():
|
|
52
|
+
if os.getenv(env_var, "").lower() == "true":
|
|
53
|
+
if (
|
|
54
|
+
agent.tracers
|
|
55
|
+
and isinstance(agent.tracers[0], OpentelemetryTracer)
|
|
56
|
+
and any(isinstance(e, exporter_cls) for e in agent.tracers[0].exporters)
|
|
57
|
+
):
|
|
58
|
+
logger.warning(
|
|
59
|
+
f"Exporter {exporter_cls.__name__} is already defined in agent.tracers[0].exporters. These two exporters will be used at the same time. As a result, your data may be uploaded twice."
|
|
60
|
+
)
|
|
61
|
+
else:
|
|
62
|
+
exporters.append(exporter_cls())
|
|
63
|
+
|
|
64
|
+
tracer = OpentelemetryTracer(
|
|
65
|
+
name="veadk_tracer", app_name=agent_run_config.app_name, exporters=exporters
|
|
66
|
+
)
|
|
67
|
+
agent_run_config.agent.tracers.extend([tracer])
|
|
68
|
+
tracer.do_hooks(agent=agent_run_config.agent)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def build_mcp_run_agent_func() -> Callable:
|
|
72
|
+
runner = Runner(
|
|
73
|
+
agent=agent,
|
|
74
|
+
short_term_memory=short_term_memory,
|
|
75
|
+
app_name=app_name,
|
|
76
|
+
user_id="",
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
async def run_agent(
|
|
80
|
+
user_input: str,
|
|
81
|
+
user_id: str = "mcp_user",
|
|
82
|
+
session_id: str = "mcp_session",
|
|
83
|
+
) -> str:
|
|
84
|
+
# Set user_id for runner
|
|
85
|
+
runner.user_id = user_id
|
|
86
|
+
|
|
87
|
+
# Running agent and get final output
|
|
88
|
+
final_output = await runner.run(
|
|
89
|
+
messages=user_input,
|
|
90
|
+
session_id=session_id,
|
|
91
|
+
)
|
|
92
|
+
return final_output
|
|
93
|
+
|
|
94
|
+
run_agent_doc = f"""{agent.description}
|
|
95
|
+
Args:
|
|
96
|
+
user_input: User's input message (required).
|
|
97
|
+
user_id: User identifier. Defaults to "mcp_user".
|
|
98
|
+
session_id: Session identifier. Defaults to "mcp_session".
|
|
99
|
+
Returns:
|
|
100
|
+
Final agent response as a string."""
|
|
101
|
+
|
|
102
|
+
run_agent.__doc__ = run_agent_doc
|
|
103
|
+
|
|
104
|
+
return run_agent
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
load_tracer()
|
|
108
|
+
|
|
109
|
+
a2a_app = init_app(
|
|
110
|
+
server_url="0.0.0.0",
|
|
111
|
+
app_name=app_name,
|
|
112
|
+
agent=agent,
|
|
113
|
+
short_term_memory=short_term_memory,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
# Build a run_agent function for building MCP server
|
|
117
|
+
run_agent_func = build_mcp_run_agent_func()
|
|
118
|
+
a2a_app.post("/run_agent", operation_id="run_agent", tags=["mcp"])(run_agent_func)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# === Build mcp server ===
|
|
122
|
+
|
|
123
|
+
mcp = FastMCP.from_fastapi(app=a2a_app, name=app_name, include_tags={"mcp"})
|
|
124
|
+
|
|
125
|
+
# Create MCP ASGI app
|
|
126
|
+
mcp_app = mcp.http_app(path="/", transport="streamable-http")
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# Combined lifespan management
|
|
130
|
+
@asynccontextmanager
|
|
131
|
+
async def combined_lifespan(app: FastAPI):
|
|
132
|
+
async with mcp_app.lifespan(app):
|
|
133
|
+
yield
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
# Create main FastAPI app with combined lifespan
|
|
137
|
+
app = FastAPI(title=a2a_app.title, version=a2a_app.version, lifespan=combined_lifespan)
|
|
138
|
+
|
|
139
|
+
# Mount A2A routes to main app
|
|
140
|
+
for route in a2a_app.routes:
|
|
141
|
+
app.routes.append(route)
|
|
142
|
+
|
|
143
|
+
# Mount MCP server at /mcp endpoint
|
|
144
|
+
app.mount("/mcp", mcp_app)
|
|
145
|
+
|
|
146
|
+
# === Build mcp server end ===
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
veadk-python
|
|
@@ -38,26 +38,17 @@ python3 -m pip install uvicorn[standard]
|
|
|
38
38
|
|
|
39
39
|
python3 -m pip install fastapi
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
python3 -m pip install fastmcp
|
|
42
|
+
|
|
42
43
|
USE_ADK_WEB=${USE_ADK_WEB:-False}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if [ "$USE_ADK_WEB" = "True" ]; then
|
|
52
|
-
echo "USE_ADK_WEB is True, running veadk web"
|
|
53
|
-
# running veadk web
|
|
54
|
-
cd ../
|
|
55
|
-
exec python3 -m veadk.cli.main web --host "0.0.0.0"
|
|
56
|
-
else
|
|
57
|
-
echo "USE_ADK_WEB is False, running a2a server"
|
|
58
|
-
exec python3 -m uvicorn app:app --host $HOST --port $PORT --timeout-graceful-shutdown $TIMEOUT --loop asyncio
|
|
59
|
-
fi
|
|
45
|
+
export SHORT_TERM_MEMORY_BACKEND= # can be `mysql`
|
|
46
|
+
export LONG_TERM_MEMORY_BACKEND= # can be `opensearch`
|
|
47
|
+
|
|
48
|
+
if [ "$USE_ADK_WEB" = "True" ]; then
|
|
49
|
+
echo "USE_ADK_WEB is True, running veadk web"
|
|
50
|
+
exec python3 -m veadk.cli.cli web --host $HOST
|
|
60
51
|
else
|
|
61
|
-
|
|
52
|
+
echo "USE_ADK_WEB is False, running A2A and MCP server"
|
|
62
53
|
exec python3 -m uvicorn app:app --host $HOST --port $PORT --timeout-graceful-shutdown $TIMEOUT --loop asyncio
|
|
63
|
-
fi
|
|
54
|
+
fi
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
from . import agent # noqa
|
|
Binary file
|
|
Binary file
|
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
from veadk import Agent
|
|
16
|
-
from veadk.memory.short_term_memory import ShortTermMemory
|
|
17
16
|
from veadk.tools.demo_tools import get_city_weather
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
agent: Agent = Agent(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
# define your agent here
|
|
19
|
+
agent: Agent = Agent(
|
|
20
|
+
name="weather_reporter",
|
|
21
|
+
description="A reporter for weather updates",
|
|
22
|
+
instruction="Once user ask you weather of a city, you need to provide the weather report for that city by calling `get_city_weather`.",
|
|
23
|
+
tools=[get_city_weather],
|
|
24
|
+
)
|
|
24
25
|
|
|
26
|
+
# required from Google ADK Web
|
|
25
27
|
root_agent = agent
|
|
@@ -27,13 +27,15 @@ from volcenginesdkvefaas.models.tag_for_create_function_input import (
|
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
import veadk.config
|
|
30
|
-
from veadk.
|
|
30
|
+
from veadk.integrations.ve_apig.ve_apig import APIGateway
|
|
31
|
+
from veadk.integrations.ve_faas.ve_faas_utils import (
|
|
32
|
+
signed_request,
|
|
33
|
+
zip_and_encode_folder,
|
|
34
|
+
)
|
|
31
35
|
from veadk.utils.logger import get_logger
|
|
32
36
|
from veadk.utils.misc import formatted_timestamp
|
|
33
37
|
from veadk.utils.volcengine_sign import ve_request
|
|
34
38
|
|
|
35
|
-
from .vefaas_utils import signed_request, zip_and_encode_folder
|
|
36
|
-
|
|
37
39
|
logger = get_logger(__name__)
|
|
38
40
|
|
|
39
41
|
|
|
@@ -118,6 +120,8 @@ class VeFaaS:
|
|
|
118
120
|
envs=envs,
|
|
119
121
|
)
|
|
120
122
|
)
|
|
123
|
+
logger.debug(f"Function creation response: {res}")
|
|
124
|
+
|
|
121
125
|
function_id = res.id
|
|
122
126
|
|
|
123
127
|
# Upload and mount code using extracted method
|
|
@@ -155,9 +159,14 @@ class VeFaaS:
|
|
|
155
159
|
region="cn-beijing",
|
|
156
160
|
host="open.volcengineapi.com",
|
|
157
161
|
)
|
|
158
|
-
assert response["Result"]["Status"] == "create_success"
|
|
159
162
|
|
|
160
|
-
|
|
163
|
+
try:
|
|
164
|
+
if response["Result"]["Status"] == "create_success":
|
|
165
|
+
return response["Result"]["Id"]
|
|
166
|
+
else:
|
|
167
|
+
raise ValueError(f"Create application failed: {response}")
|
|
168
|
+
except Exception as _:
|
|
169
|
+
raise ValueError(f"Create application failed: {response}")
|
|
161
170
|
|
|
162
171
|
def _release_application(self, app_id: str):
|
|
163
172
|
_ = ve_request(
|
|
@@ -171,7 +180,6 @@ class VeFaaS:
|
|
|
171
180
|
host="open.volcengineapi.com",
|
|
172
181
|
)
|
|
173
182
|
|
|
174
|
-
logger.info(f"Start to release VeFaaS application {app_id}.")
|
|
175
183
|
status, full_response = self._get_application_status(app_id)
|
|
176
184
|
while status not in ["deploy_success", "deploy_fail"]:
|
|
177
185
|
time.sleep(10)
|
|
@@ -304,6 +312,7 @@ class VeFaaS:
|
|
|
304
312
|
for app in apps:
|
|
305
313
|
if app["Name"] == name:
|
|
306
314
|
return app["Id"]
|
|
315
|
+
logger.warning(f"Application with name {name} not found.")
|
|
307
316
|
return None
|
|
308
317
|
|
|
309
318
|
def delete(self, app_id: str):
|
|
@@ -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.
|
|
Binary file
|
veadk/{cli/services/agentpilot/agentpilot.py → integrations/ve_prompt_pilot/ve_prompt_pilot.py}
RENAMED
|
@@ -24,11 +24,12 @@ from veadk.utils.logger import get_logger
|
|
|
24
24
|
logger = get_logger(__name__)
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
28
|
-
def __init__(
|
|
27
|
+
class VePromptPilot:
|
|
28
|
+
def __init__(
|
|
29
|
+
self, api_key: str, path: str = "", task_id: str | None = None
|
|
30
|
+
) -> None:
|
|
29
31
|
self.api_key = api_key
|
|
30
32
|
self.path = path
|
|
31
|
-
self.task_id = task_id
|
|
32
33
|
|
|
33
34
|
def optimize(
|
|
34
35
|
self,
|
|
@@ -38,7 +39,7 @@ class AgentPilot:
|
|
|
38
39
|
) -> str:
|
|
39
40
|
for idx, agent in enumerate(agents):
|
|
40
41
|
optimized_prompt = ""
|
|
41
|
-
if feedback
|
|
42
|
+
if not feedback:
|
|
42
43
|
logger.info("Optimizing prompt without feedback.")
|
|
43
44
|
task_description = prompt_optimization.render_prompt_with_jinja2(agent)
|
|
44
45
|
else:
|
|
@@ -73,5 +74,3 @@ class AgentPilot:
|
|
|
73
74
|
logger.info(f"Token usage: {usage['total_tokens']}")
|
|
74
75
|
|
|
75
76
|
return optimized_prompt
|
|
76
|
-
return optimized_prompt
|
|
77
|
-
return optimized_prompt
|
|
Binary file
|
|
@@ -32,9 +32,7 @@ class KnowledgeBase:
|
|
|
32
32
|
top_k: int = 10,
|
|
33
33
|
db_config=None,
|
|
34
34
|
):
|
|
35
|
-
logger.info(
|
|
36
|
-
f"Initializing knowledgebase: backend={backend} top_k={top_k} db_config={db_config}"
|
|
37
|
-
)
|
|
35
|
+
logger.info(f"Initializing knowledgebase: backend={backend} top_k={top_k}")
|
|
38
36
|
|
|
39
37
|
self.backend = backend
|
|
40
38
|
self.top_k = top_k
|
|
@@ -43,7 +41,7 @@ class KnowledgeBase:
|
|
|
43
41
|
self.adapter = get_knowledgebase_database_adapter(self.db_client)
|
|
44
42
|
|
|
45
43
|
logger.info(
|
|
46
|
-
f"Initialized knowledgebase: db_client={self.db_client} adapter={self.adapter}"
|
|
44
|
+
f"Initialized knowledgebase: db_client={self.db_client.__class__.__name__} adapter={self.adapter}"
|
|
47
45
|
)
|
|
48
46
|
|
|
49
47
|
def add(
|
|
@@ -71,7 +69,7 @@ class KnowledgeBase:
|
|
|
71
69
|
|
|
72
70
|
self.adapter.add(data=data, index=index)
|
|
73
71
|
|
|
74
|
-
def search(self, query: str, app_name: str, top_k: int = None) -> list[str]:
|
|
72
|
+
def search(self, query: str, app_name: str, top_k: int | None = None) -> list[str]:
|
|
75
73
|
top_k = self.top_k if top_k is None else top_k
|
|
76
74
|
|
|
77
75
|
logger.info(
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
veadk/memory/long_term_memory.py
CHANGED
|
@@ -41,11 +41,14 @@ class LongTermMemory(BaseMemoryService):
|
|
|
41
41
|
def __init__(
|
|
42
42
|
self,
|
|
43
43
|
backend: Literal[
|
|
44
|
-
"local", "opensearch", "redis", "mysql", "viking"
|
|
44
|
+
"local", "opensearch", "redis", "mysql", "viking", "viking_mem"
|
|
45
45
|
] = "opensearch",
|
|
46
46
|
top_k: int = 5,
|
|
47
47
|
):
|
|
48
48
|
if backend == "viking":
|
|
49
|
+
logger.warning(
|
|
50
|
+
"`viking` backend is deprecated, switching to `viking_mem` backend."
|
|
51
|
+
)
|
|
49
52
|
backend = "viking_mem"
|
|
50
53
|
self.top_k = top_k
|
|
51
54
|
self.backend = backend
|
|
@@ -60,7 +63,7 @@ class LongTermMemory(BaseMemoryService):
|
|
|
60
63
|
self.adapter = get_long_term_memory_database_adapter(self.db_client)
|
|
61
64
|
|
|
62
65
|
logger.info(
|
|
63
|
-
f"Initialized long term memory: db_client={self.db_client} adapter={self.adapter}"
|
|
66
|
+
f"Initialized long term memory: db_client={self.db_client.__class__.__name__} adapter={self.adapter}"
|
|
64
67
|
)
|
|
65
68
|
|
|
66
69
|
def _filter_and_convert_events(self, events: list[Event]) -> list[str]:
|
|
@@ -60,18 +60,14 @@ class ShortTermMemory:
|
|
|
60
60
|
self.session_service = InMemorySessionService()
|
|
61
61
|
elif self.backend == "database":
|
|
62
62
|
if self.db_url == "" or self.db_url is None:
|
|
63
|
-
logger.warning(
|
|
64
|
-
f"The `db_url` {self.db_url} is an empty or None string."
|
|
65
|
-
)
|
|
63
|
+
logger.warning("The `db_url` is an empty or None string.")
|
|
66
64
|
self._use_default_database()
|
|
67
65
|
else:
|
|
68
66
|
try:
|
|
69
67
|
self.session_service = DatabaseSessionService(db_url=self.db_url)
|
|
70
|
-
logger.info("Connected to database.")
|
|
68
|
+
logger.info("Connected to database with db_url.")
|
|
71
69
|
except Exception as e:
|
|
72
|
-
logger.error(
|
|
73
|
-
f"Failed to connect to database {self.db_url}, error: {e}."
|
|
74
|
-
)
|
|
70
|
+
logger.error(f"Failed to connect to database, error: {e}.")
|
|
75
71
|
self._use_default_database()
|
|
76
72
|
else:
|
|
77
73
|
raise ValueError(f"Unknown short term memory backend: {self.backend}")
|