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
veadk/cli/main.py
DELETED
|
@@ -1,379 +0,0 @@
|
|
|
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 importlib.util
|
|
18
|
-
import os
|
|
19
|
-
import shutil
|
|
20
|
-
import sys
|
|
21
|
-
from importlib.util import module_from_spec, spec_from_file_location
|
|
22
|
-
from pathlib import Path
|
|
23
|
-
|
|
24
|
-
import typer
|
|
25
|
-
import uvicorn
|
|
26
|
-
|
|
27
|
-
from veadk.utils.logger import get_logger
|
|
28
|
-
from veadk.version import VERSION
|
|
29
|
-
|
|
30
|
-
logger = get_logger(__name__)
|
|
31
|
-
|
|
32
|
-
app = typer.Typer(name="vego")
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def set_variable_in_file(file_path: str, setting_values: dict):
|
|
36
|
-
import ast
|
|
37
|
-
|
|
38
|
-
with open(file_path, "r", encoding="utf-8") as f:
|
|
39
|
-
source_code = f.read()
|
|
40
|
-
|
|
41
|
-
tree = ast.parse(source_code)
|
|
42
|
-
|
|
43
|
-
class VariableTransformer(ast.NodeTransformer):
|
|
44
|
-
def visit_Assign(self, node: ast.Assign):
|
|
45
|
-
for target in node.targets:
|
|
46
|
-
if isinstance(target, ast.Name) and target.id in setting_values:
|
|
47
|
-
node.value = ast.Constant(value=setting_values[target.id])
|
|
48
|
-
return node
|
|
49
|
-
|
|
50
|
-
transformer = VariableTransformer()
|
|
51
|
-
new_tree = transformer.visit(tree)
|
|
52
|
-
ast.fix_missing_locations(new_tree)
|
|
53
|
-
new_source_code = ast.unparse(new_tree)
|
|
54
|
-
|
|
55
|
-
with open(file_path, "w", encoding="utf-8") as f:
|
|
56
|
-
f.write(new_source_code)
|
|
57
|
-
|
|
58
|
-
print("Your project has beed created.")
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@app.command()
|
|
62
|
-
def init():
|
|
63
|
-
"""Init a veadk project that can be deployed to Volcengine VeFaaS."""
|
|
64
|
-
from rich.prompt import Confirm, Prompt
|
|
65
|
-
|
|
66
|
-
cwd = Path.cwd()
|
|
67
|
-
template_dir = Path(__file__).parent.resolve() / "services" / "vefaas" / "template"
|
|
68
|
-
|
|
69
|
-
local_dir_name = Prompt.ask("Local directory name", default="veadk-cloud-proj")
|
|
70
|
-
|
|
71
|
-
target_dir = cwd / local_dir_name
|
|
72
|
-
|
|
73
|
-
if target_dir.exists():
|
|
74
|
-
response = Confirm.ask(
|
|
75
|
-
f"Target directory '{target_dir}' already exists, do you want to overwrite it?: "
|
|
76
|
-
)
|
|
77
|
-
if not response:
|
|
78
|
-
print("Operation cancelled.")
|
|
79
|
-
return
|
|
80
|
-
else:
|
|
81
|
-
shutil.rmtree(target_dir)
|
|
82
|
-
print(f"Deleted existing directory: {target_dir}")
|
|
83
|
-
|
|
84
|
-
vefaas_application_name = Prompt.ask(
|
|
85
|
-
"Volcengine FaaS application name", default="veadk-cloud-agent"
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
gateway_name = Prompt.ask(
|
|
89
|
-
"Volcengine gateway instance name", default="", show_default=True
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
gateway_service_name = Prompt.ask(
|
|
93
|
-
"Volcengine gateway service name", default="", show_default=True
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
gateway_upstream_name = Prompt.ask(
|
|
97
|
-
"Volcengine gateway upstream name", default="", show_default=True
|
|
98
|
-
)
|
|
99
|
-
|
|
100
|
-
deploy_mode_options = {
|
|
101
|
-
"1": "A2A Server",
|
|
102
|
-
"2": "VeADK Studio",
|
|
103
|
-
"3": "VeADK Web / Google ADK Web",
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
deploy_mode = Prompt.ask(
|
|
107
|
-
"""Choose your deploy mode:
|
|
108
|
-
1. A2A Server
|
|
109
|
-
2. VeADK Studio
|
|
110
|
-
3. VeADK Web / Google ADK Web
|
|
111
|
-
""",
|
|
112
|
-
default="1",
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
if deploy_mode in deploy_mode_options:
|
|
116
|
-
deploy_mode = deploy_mode_options[deploy_mode]
|
|
117
|
-
else:
|
|
118
|
-
print("Invalid deploy mode, set default to A2A Server")
|
|
119
|
-
deploy_mode = deploy_mode_options["1"]
|
|
120
|
-
|
|
121
|
-
setting_values = {
|
|
122
|
-
"VEFAAS_APPLICATION_NAME": vefaas_application_name,
|
|
123
|
-
"GATEWAY_NAME": gateway_name,
|
|
124
|
-
"GATEWAY_SERVICE_NAME": gateway_service_name,
|
|
125
|
-
"GATEWAY_UPSTREAM_NAME": gateway_upstream_name,
|
|
126
|
-
"USE_STUDIO": deploy_mode == deploy_mode_options["2"],
|
|
127
|
-
"USE_ADK_WEB": deploy_mode == deploy_mode_options["3"],
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
shutil.copytree(template_dir, target_dir)
|
|
131
|
-
set_variable_in_file(target_dir / "deploy.py", setting_values)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
# @app.command()
|
|
135
|
-
# def web(
|
|
136
|
-
# path: str = typer.Option(".", "--path", help="Agent project path"),
|
|
137
|
-
# ):
|
|
138
|
-
# from google.adk.cli import cli_tools_click
|
|
139
|
-
|
|
140
|
-
# def my_decorator(func):
|
|
141
|
-
# @wraps(func)
|
|
142
|
-
# def wrapper(*args, **kwargs):
|
|
143
|
-
# adk_app: FastAPI = func(*args, **kwargs)
|
|
144
|
-
# import importlib.util
|
|
145
|
-
# import mimetypes
|
|
146
|
-
|
|
147
|
-
# from fastapi.staticfiles import StaticFiles
|
|
148
|
-
|
|
149
|
-
# mimetypes.add_type("application/javascript", ".js", True)
|
|
150
|
-
# mimetypes.add_type("text/javascript", ".js", True)
|
|
151
|
-
|
|
152
|
-
# spec = importlib.util.find_spec("veadk.cli.browser")
|
|
153
|
-
# if spec is not None:
|
|
154
|
-
# ANGULAR_DIST_PATH = spec.submodule_search_locations[0]
|
|
155
|
-
# logger.info(f"Static source path: {ANGULAR_DIST_PATH}")
|
|
156
|
-
# else:
|
|
157
|
-
# raise Exception("veadk.cli.browser not found")
|
|
158
|
-
|
|
159
|
-
# # ----- 8< Unmount app -----
|
|
160
|
-
# from starlette.routing import Mount
|
|
161
|
-
|
|
162
|
-
# for index, route in enumerate(adk_app.routes):
|
|
163
|
-
# if isinstance(route, Mount) and route.path == "/dev-ui":
|
|
164
|
-
# del adk_app.routes[index]
|
|
165
|
-
# break
|
|
166
|
-
# # ----- 8< Mount our app -----
|
|
167
|
-
|
|
168
|
-
# adk_app.mount(
|
|
169
|
-
# "/dev-ui/",
|
|
170
|
-
# StaticFiles(directory=ANGULAR_DIST_PATH, html=True),
|
|
171
|
-
# name="static",
|
|
172
|
-
# )
|
|
173
|
-
|
|
174
|
-
# from fastapi.middleware.cors import CORSMiddleware
|
|
175
|
-
|
|
176
|
-
# adk_app.add_middleware(
|
|
177
|
-
# CORSMiddleware,
|
|
178
|
-
# allow_origins=["*"],
|
|
179
|
-
# allow_credentials=True,
|
|
180
|
-
# allow_methods=["*"],
|
|
181
|
-
# allow_headers=["*"],
|
|
182
|
-
# )
|
|
183
|
-
# return adk_app
|
|
184
|
-
|
|
185
|
-
# return wrapper
|
|
186
|
-
|
|
187
|
-
# # Monkey patch
|
|
188
|
-
# fast_api.get_fast_api_app = my_decorator(fast_api.get_fast_api_app)
|
|
189
|
-
|
|
190
|
-
# # reload cli_tools_click
|
|
191
|
-
# importlib.reload(cli_tools_click)
|
|
192
|
-
|
|
193
|
-
# agents_dir = str(Path(path).resolve())
|
|
194
|
-
# logger.info(f"Agents dir is {agents_dir}")
|
|
195
|
-
# cli_tools_click.cli_web.main(args=[agents_dir])
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
@app.command()
|
|
199
|
-
def web(
|
|
200
|
-
session_service_uri: str = typer.Option(
|
|
201
|
-
None,
|
|
202
|
-
"--session_service_uri",
|
|
203
|
-
),
|
|
204
|
-
host: str = typer.Option(
|
|
205
|
-
"127.0.0.1",
|
|
206
|
-
"--host",
|
|
207
|
-
),
|
|
208
|
-
):
|
|
209
|
-
from google.adk.memory import in_memory_memory_service
|
|
210
|
-
|
|
211
|
-
from veadk.memory.long_term_memory import LongTermMemory
|
|
212
|
-
|
|
213
|
-
in_memory_memory_service.InMemoryMemoryService = LongTermMemory
|
|
214
|
-
|
|
215
|
-
from google.adk.cli import cli_tools_click
|
|
216
|
-
|
|
217
|
-
importlib.reload(cli_tools_click)
|
|
218
|
-
agents_dir = os.getcwd()
|
|
219
|
-
if not session_service_uri:
|
|
220
|
-
session_service_uri = ""
|
|
221
|
-
|
|
222
|
-
cli_tools_click.cli_web.main(
|
|
223
|
-
args=[agents_dir, "--session_service_uri", session_service_uri, "--host", host]
|
|
224
|
-
)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
@app.command()
|
|
228
|
-
def studio(
|
|
229
|
-
path: str = typer.Option(".", "--path", help="Project path"),
|
|
230
|
-
):
|
|
231
|
-
from veadk.cli.studio.fast_api import get_fast_api_app
|
|
232
|
-
|
|
233
|
-
path = Path(path).resolve()
|
|
234
|
-
|
|
235
|
-
agent_py_path = os.path.join(path, "agent.py")
|
|
236
|
-
if not os.path.exists(agent_py_path):
|
|
237
|
-
raise FileNotFoundError(f"agent.py not found in {path}")
|
|
238
|
-
|
|
239
|
-
spec = spec_from_file_location("agent", agent_py_path)
|
|
240
|
-
if spec is None:
|
|
241
|
-
raise ImportError(f"Could not load spec for agent from {agent_py_path}")
|
|
242
|
-
|
|
243
|
-
module = module_from_spec(spec)
|
|
244
|
-
|
|
245
|
-
try:
|
|
246
|
-
spec.loader.exec_module(module)
|
|
247
|
-
except Exception as e:
|
|
248
|
-
raise ImportError(f"Failed to execute agent.py: {e}")
|
|
249
|
-
|
|
250
|
-
agent = None
|
|
251
|
-
short_term_memory = None
|
|
252
|
-
try:
|
|
253
|
-
agent = module.agent
|
|
254
|
-
short_term_memory = module.short_term_memory
|
|
255
|
-
except AttributeError as e:
|
|
256
|
-
missing = str(e).split("'")[1] if "'" in str(e) else "unknown"
|
|
257
|
-
raise AttributeError(f"agent.py is missing required variable: {missing}")
|
|
258
|
-
|
|
259
|
-
app = get_fast_api_app(agent, short_term_memory)
|
|
260
|
-
|
|
261
|
-
uvicorn.run(
|
|
262
|
-
app,
|
|
263
|
-
host="127.0.0.1",
|
|
264
|
-
port=8000,
|
|
265
|
-
log_level="info",
|
|
266
|
-
loop="asyncio", # for deepeval
|
|
267
|
-
)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
@app.command()
|
|
271
|
-
def prompt(
|
|
272
|
-
path: str = typer.Option(
|
|
273
|
-
...,
|
|
274
|
-
"--path",
|
|
275
|
-
help="Your agent file path. Please ensure that your agent(s) are global variable(s).",
|
|
276
|
-
),
|
|
277
|
-
feedback: str = typer.Option(
|
|
278
|
-
"",
|
|
279
|
-
"--feedback",
|
|
280
|
-
help="Feedback of prompt from agent evaluation.",
|
|
281
|
-
),
|
|
282
|
-
api_key: str = typer.Option(
|
|
283
|
-
..., "--api-key", help="API Key of AgentPilot Platform"
|
|
284
|
-
),
|
|
285
|
-
model_name: str = typer.Option(
|
|
286
|
-
"doubao-1.5-pro-32k-250115",
|
|
287
|
-
"--model-name",
|
|
288
|
-
help="Model name for prompt optimization",
|
|
289
|
-
),
|
|
290
|
-
):
|
|
291
|
-
from veadk import Agent
|
|
292
|
-
|
|
293
|
-
"""
|
|
294
|
-
NOTE(nkfyz): Detecting agents from a file is not fully correct, we will fix this feature asap.
|
|
295
|
-
"""
|
|
296
|
-
module_name = "veadk_agent"
|
|
297
|
-
path = Path(path).resolve()
|
|
298
|
-
logger.info(f"Detect agents in {path}")
|
|
299
|
-
|
|
300
|
-
spec = importlib.util.spec_from_file_location(module_name, path)
|
|
301
|
-
module = importlib.util.module_from_spec(spec)
|
|
302
|
-
sys.modules[module_name] = module
|
|
303
|
-
spec.loader.exec_module(module)
|
|
304
|
-
globals_in_module = vars(module) # get all global variables in module
|
|
305
|
-
|
|
306
|
-
agents = []
|
|
307
|
-
for global_variable_name, global_variable_value in globals_in_module.items():
|
|
308
|
-
if isinstance(global_variable_value, Agent):
|
|
309
|
-
agent = global_variable_value
|
|
310
|
-
agents.append(agent)
|
|
311
|
-
logger.info(f"Found {len(agents)} agent(s) in {path}")
|
|
312
|
-
|
|
313
|
-
if len(agents) == 0:
|
|
314
|
-
logger.info(
|
|
315
|
-
"No agent found. Please put your agent definition as a global variable in your agent file."
|
|
316
|
-
)
|
|
317
|
-
print(
|
|
318
|
-
f"No agent found in {path}. Please put your agent definition as a global variable in your agent file."
|
|
319
|
-
)
|
|
320
|
-
return
|
|
321
|
-
|
|
322
|
-
from veadk.cli.services.agentpilot import AgentPilot
|
|
323
|
-
|
|
324
|
-
ap = AgentPilot(api_key)
|
|
325
|
-
ap.optimize(agents=agents, feedback=feedback, model_name=model_name)
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
# @app.command()
|
|
329
|
-
# def studio():
|
|
330
|
-
# import os
|
|
331
|
-
|
|
332
|
-
# # pre-load
|
|
333
|
-
# from veadk import Agent # noqa
|
|
334
|
-
|
|
335
|
-
# os.environ["VEADK_STUDIO_AGENTS_DIR"] = os.getcwd()
|
|
336
|
-
# app_path = os.path.join(os.path.dirname(__file__), "../../app/app.py")
|
|
337
|
-
|
|
338
|
-
# os.system(f"streamlit run {app_path}")
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
@app.command()
|
|
342
|
-
def deploy(
|
|
343
|
-
access_key: str = typer.Option(..., "--access-key", help="Access Key"),
|
|
344
|
-
secret_key: str = typer.Option(..., "--secret-key", help="Secret Key"),
|
|
345
|
-
name: str = typer.Option(..., "--name", help="Deployment name"),
|
|
346
|
-
path: str = typer.Option(".", "--path", help="Project path"),
|
|
347
|
-
):
|
|
348
|
-
from veadk.cli.services.vefaas import VeFaaS
|
|
349
|
-
|
|
350
|
-
path = Path(path).resolve()
|
|
351
|
-
vefaas = VeFaaS(access_key, secret_key)
|
|
352
|
-
vefaas.deploy(name=name, path=path)
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
@app.command()
|
|
356
|
-
def log(
|
|
357
|
-
access_key: str = typer.Option(..., "--access-key", help="Access Key"),
|
|
358
|
-
secret_key: str = typer.Option(..., "--secret-key", help="Secret Key"),
|
|
359
|
-
query: str = typer.Option(..., "--query", help="Query statement"),
|
|
360
|
-
topic_id: str = typer.Option(..., "--topic-id", help="Topic ID in VeTLS"),
|
|
361
|
-
dump_path: str = typer.Option(
|
|
362
|
-
".", "--dump-path", help="Local path for log storage file"
|
|
363
|
-
),
|
|
364
|
-
):
|
|
365
|
-
path = Path(dump_path).resolve()
|
|
366
|
-
|
|
367
|
-
from veadk.cli.services.vetls import VeTLS
|
|
368
|
-
|
|
369
|
-
vetls = VeTLS(access_key, secret_key, dump_path=str(path))
|
|
370
|
-
vetls.query(topic_id=topic_id, query=query)
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
@app.command()
|
|
374
|
-
def version():
|
|
375
|
-
print(f"VeADK {VERSION}")
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
if __name__ == "__main__":
|
|
379
|
-
app()
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
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 .vefaas import VeFaaS
|
|
16
|
-
|
|
17
|
-
__all__ = ["VeFaaS"]
|
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Template project for Vefaas
|
|
2
|
-
|
|
3
|
-
This is a template project for Vefaas. You can use it as a starting point for your own project.
|
|
4
|
-
|
|
5
|
-
We implement an minimal agent to report weather in terms of the given city.
|
|
6
|
-
|
|
7
|
-
## Structure
|
|
8
|
-
|
|
9
|
-
| File | Illustration |
|
|
10
|
-
|------------------------| - |
|
|
11
|
-
| `src/app.py` | The entrypoint of VeFaaS server. |
|
|
12
|
-
| `src/run.sh` | The launch script of VeFaaS server. |
|
|
13
|
-
| `src/requirements.txt` | Dependencies of your project. `VeADK`, `FastAPI`, and `uvicorn` must be included. |
|
|
14
|
-
| `src/agent.py` | The agent and memory definitions. **You may edit this file.** |
|
|
15
|
-
| `config.yaml.example` | Envs for your project (e.g., `api_key`, `token`, ...). **You may edit this file.** |
|
|
16
|
-
| `deploy.py` | Local script for deployment. |
|
|
17
|
-
|
|
18
|
-
You must export your agent and short-term memory in `src/agent.py`.
|
|
19
|
-
|
|
20
|
-
## Deploy
|
|
21
|
-
|
|
22
|
-
We recommend you deploy this project by the `cloud` module of VeADK.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
python deploy.py
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
You may see output like this:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
Successfully deployed on:
|
|
32
|
-
|
|
33
|
-
https://....volceapi.com
|
|
34
|
-
Message ID: ...
|
|
35
|
-
Response from ...: The weather in Beijing is sunny, with a temperature of 25°C.
|
|
36
|
-
App ID: ...
|
|
37
|
-
```
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
model:
|
|
2
|
-
agent:
|
|
3
|
-
provider: openai
|
|
4
|
-
name: doubao-1-5-pro-256k-250115
|
|
5
|
-
api_base: https://ark.cn-beijing.volces.com/api/v3/
|
|
6
|
-
api_key:
|
|
7
|
-
judge:
|
|
8
|
-
name: doubao-1-5-pro-256k-250115
|
|
9
|
-
api_base: https://ark.cn-beijing.volces.com/api/v3/
|
|
10
|
-
api_key:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
agent_pilot:
|
|
14
|
-
api_key:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
volcengine:
|
|
18
|
-
access_key:
|
|
19
|
-
secret_key:
|
|
@@ -1,58 +0,0 @@
|
|
|
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 veadk.cloud.cloud_agent_engine import CloudAgentEngine
|
|
19
|
-
|
|
20
|
-
SESSION_ID = "cloud_app_test_session"
|
|
21
|
-
USER_ID = "cloud_app_test_user"
|
|
22
|
-
|
|
23
|
-
VEFAAS_APPLICATION_NAME = "weather-reporter"
|
|
24
|
-
GATEWAY_NAME = ""
|
|
25
|
-
GATEWAY_SERVICE_NAME = ""
|
|
26
|
-
GATEWAY_UPSTREAMNAME = ""
|
|
27
|
-
USE_STUDIO = False
|
|
28
|
-
USE_ADK_WEB = False
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
async def main():
|
|
32
|
-
engine = CloudAgentEngine()
|
|
33
|
-
|
|
34
|
-
cloud_app = engine.deploy(
|
|
35
|
-
path=str(Path(__file__).parent / "src"),
|
|
36
|
-
application_name=VEFAAS_APPLICATION_NAME,
|
|
37
|
-
gateway_name=GATEWAY_NAME,
|
|
38
|
-
gateway_service_name=GATEWAY_SERVICE_NAME,
|
|
39
|
-
gateway_upstream_name=GATEWAY_UPSTREAMNAME,
|
|
40
|
-
use_studio=USE_STUDIO,
|
|
41
|
-
use_adk_web=USE_ADK_WEB,
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
if not USE_STUDIO and not USE_ADK_WEB:
|
|
45
|
-
response_message = await cloud_app.message_send(
|
|
46
|
-
"How is the weather like in Beijing?", SESSION_ID, USER_ID
|
|
47
|
-
)
|
|
48
|
-
print(f"VeFaaS application ID: {cloud_app.vefaas_application_id}")
|
|
49
|
-
print(f"Message ID: {response_message.messageId}")
|
|
50
|
-
print(
|
|
51
|
-
f"Response from {cloud_app.vefaas_endpoint}: {response_message.parts[0].root.text}"
|
|
52
|
-
)
|
|
53
|
-
else:
|
|
54
|
-
print(f"Web is running at: {cloud_app.vefaas_endpoint}")
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if __name__ == "__main__":
|
|
58
|
-
asyncio.run(main())
|
|
Binary file
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
|
|
17
|
-
from agent import agent, app_name, short_term_memory
|
|
18
|
-
from veadk.a2a.ve_a2a_server import init_app
|
|
19
|
-
from veadk.tracing.base_tracer import BaseTracer
|
|
20
|
-
from veadk.tracing.telemetry.opentelemetry_tracer import OpentelemetryTracer
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# ==============================================================================
|
|
24
|
-
# Tracer Config ================================================================
|
|
25
|
-
|
|
26
|
-
TRACERS: list[BaseTracer] = []
|
|
27
|
-
|
|
28
|
-
exporters = []
|
|
29
|
-
if os.getenv("VEADK_TRACER_APMPLUS", "").lower() == "true":
|
|
30
|
-
from veadk.tracing.telemetry.exporters.apmplus_exporter import APMPlusExporter
|
|
31
|
-
|
|
32
|
-
exporters.append(APMPlusExporter())
|
|
33
|
-
|
|
34
|
-
if os.getenv("VEADK_TRACER_COZELOOP", "").lower() == "true":
|
|
35
|
-
from veadk.tracing.telemetry.exporters.cozeloop_exporter import CozeloopExporter
|
|
36
|
-
|
|
37
|
-
exporters.append(CozeloopExporter())
|
|
38
|
-
|
|
39
|
-
if os.getenv("VEADK_TRACER_TLS", "").lower() == "true":
|
|
40
|
-
from veadk.tracing.telemetry.exporters.tls_exporter import TLSExporter
|
|
41
|
-
|
|
42
|
-
exporters.append(TLSExporter())
|
|
43
|
-
|
|
44
|
-
TRACERS.append(OpentelemetryTracer(exporters=exporters))
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
agent.tracers.extend(TRACERS)
|
|
48
|
-
if not getattr(agent, "before_model_callback", None):
|
|
49
|
-
agent.before_model_callback = []
|
|
50
|
-
if not getattr(agent, "after_model_callback", None):
|
|
51
|
-
agent.after_model_callback = []
|
|
52
|
-
if not getattr(agent, "after_tool_callback", None):
|
|
53
|
-
agent.after_tool_callback = []
|
|
54
|
-
for tracer in TRACERS:
|
|
55
|
-
if tracer.tracer_hook_before_model not in agent.before_model_callback:
|
|
56
|
-
agent.before_model_callback.append(tracer.tracer_hook_before_model)
|
|
57
|
-
if tracer.tracer_hook_after_model not in agent.after_model_callback:
|
|
58
|
-
agent.after_model_callback.append(tracer.tracer_hook_after_model)
|
|
59
|
-
if tracer.tracer_hook_after_tool not in agent.after_tool_callback:
|
|
60
|
-
agent.after_tool_callback.append(tracer.tracer_hook_after_tool)
|
|
61
|
-
|
|
62
|
-
# Tracer Config ================================================================
|
|
63
|
-
# ==============================================================================
|
|
64
|
-
|
|
65
|
-
app = init_app(
|
|
66
|
-
server_url="0.0.0.0", # Automatic identification is not supported yet.
|
|
67
|
-
app_name=app_name,
|
|
68
|
-
agent=agent,
|
|
69
|
-
short_term_memory=short_term_memory,
|
|
70
|
-
)
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
veadk-python[eval] @ git+https://github.com/volcengine/veadk-python.git # extra eval for prompt optimization in veadk studio
|
|
2
|
-
opensearch-py==2.8.0
|
|
3
|
-
agent-pilot-sdk>=0.0.9 # extra dep for prompt optimization in veadk studio
|
|
4
|
-
typer>=0.16.0
|
|
5
|
-
uvicorn[standard]
|
|
6
|
-
fastapi
|
|
@@ -1,47 +0,0 @@
|
|
|
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 importlib.util import module_from_spec, spec_from_file_location
|
|
17
|
-
from pathlib import Path
|
|
18
|
-
|
|
19
|
-
from veadk.cli.studio.fast_api import get_fast_api_app
|
|
20
|
-
|
|
21
|
-
path = Path(__file__).parent.resolve()
|
|
22
|
-
|
|
23
|
-
agent_py_path = os.path.join(path, "agent.py")
|
|
24
|
-
if not os.path.exists(agent_py_path):
|
|
25
|
-
raise FileNotFoundError(f"agent.py not found in {path}")
|
|
26
|
-
|
|
27
|
-
spec = spec_from_file_location("agent", agent_py_path)
|
|
28
|
-
if spec is None:
|
|
29
|
-
raise ImportError(f"Could not load spec for agent from {agent_py_path}")
|
|
30
|
-
|
|
31
|
-
module = module_from_spec(spec)
|
|
32
|
-
|
|
33
|
-
try:
|
|
34
|
-
spec.loader.exec_module(module)
|
|
35
|
-
except Exception as e:
|
|
36
|
-
raise ImportError(f"Failed to execute agent.py: {e}")
|
|
37
|
-
|
|
38
|
-
agent = None
|
|
39
|
-
short_term_memory = None
|
|
40
|
-
try:
|
|
41
|
-
agent = module.agent
|
|
42
|
-
short_term_memory = module.short_term_memory
|
|
43
|
-
except AttributeError as e:
|
|
44
|
-
missing = str(e).split("'")[1] if "'" in str(e) else "unknown"
|
|
45
|
-
raise AttributeError(f"agent.py is missing required variable: {missing}")
|
|
46
|
-
|
|
47
|
-
app = get_fast_api_app(agent, short_term_memory)
|
|
@@ -1,17 +0,0 @@
|
|
|
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 .vetls import VeTLS
|
|
16
|
-
|
|
17
|
-
__all__ = ["VeTLS"]
|