Skip to content

Commit 4cbae38

Browse files
committed
fix(tool): add cpp to run code tool
1 parent 424bfcf commit 4cbae38

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "veadk-python"
3-
version = "0.2.22"
3+
version = "0.2.23"
44
description = "Volcengine agent development kit, integrations with Volcengine cloud services."
55
readme = "README.md"
66
requires-python = ">=3.10"

veadk/tools/builtin_tools/run_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
from google.adk.tools import ToolContext
1919

20+
from veadk.auth.veauth.utils import get_credential_from_vefaas_iam
2021
from veadk.config import getenv
2122
from veadk.utils.logger import get_logger
2223
from veadk.utils.volcengine_sign import ve_request
23-
from veadk.auth.veauth.utils import get_credential_from_vefaas_iam
2424

2525
logger = get_logger(__name__)
2626

@@ -30,7 +30,7 @@ def run_code(code: str, language: str, tool_context: ToolContext) -> str:
3030
3131
Args:
3232
code (str): The code to run.
33-
language (str): The programming language of the code. Language must be one of the supported languages: python3.
33+
language (str): The programming language of the code. Language must be one of the supported languages: ["python3", "cpp"].
3434
3535
Returns:
3636
str: The output of the code execution.

veadk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = "0.2.22"
15+
VERSION = "0.2.23"

0 commit comments

Comments
 (0)