Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ dev = [

[tool.setuptools.packages.find]
include = ["veadk*"]
exclude = ["app*", "assets*", "examples*", "ide*", "tests*",]
exclude = ["assets*", "ide*", "tests*"]

[tool.setuptools]
include-package-data = true

[tool.setuptools.package-data]
"veadk.cli.studio.web" = ["_next/**/*"]
3 changes: 2 additions & 1 deletion veadk/cli/services/vefaas/template/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
git+https://github.com/volcengine/veadk-python.git
veadk-python[eval] @ git+https://github.com/volcengine/veadk-python.git # extra eval for prompt optimization in veadk studio
agent-pilot-sdk>=0.0.9 # extra dep for prompt optimization in veadk studio
uvicorn[standard]
fastapi
13 changes: 13 additions & 0 deletions veadk/cli/studio/web/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
20 changes: 20 additions & 0 deletions veadk/cloud/cloud_agent_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ def _prepare(self, path: str, name: str):

shutil.copy(template_app_py, os.path.join(path, "app.py"))

if os.path.exists(os.path.join(path, "studio_app.py")):
logger.warning(
f"Local agent project path `{path}` contains an `studio_app.py` file. Use your own `studio_app.py` file may cause unexpected behavior."
)
else:
logger.info(
f"No `studio_app.py` detected in local agent project path `{path}`. Prepare it."
)
template_studio_app_py = (
f"{Path(__file__).resolve().parent.resolve()}/template/studio_app.py"
)
import shutil

shutil.copy(template_studio_app_py, os.path.join(path, "studio_app.py"))

if os.path.exists(os.path.join(path, "run.sh")):
logger.warning(
f"Local agent project path `{path}` contains a `run.sh` file. Use your own `run.sh` file may cause unexpected behavior."
Expand Down Expand Up @@ -104,6 +119,11 @@ def deploy(
Returns:
str: Volcengine FaaS function endpoint.
"""
# prevent deepeval writing operations
import veadk.config

veadk.config.veadk_environments["DEEPEVAL_TELEMETRY_OPT_OUT"] = "YES"

if use_studio:
import veadk.config

Expand Down