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
1 change: 1 addition & 0 deletions veadk/tools/skills_tools/register_skills_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def register_skills_tool(
sk=secret_key,
session_token=session_token,
bucket_name=tos_bucket,
region=region,
)

object_key = (
Expand Down
3 changes: 3 additions & 0 deletions veadk/tools/skills_tools/skills_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def _invoke_skill(self, skill_name: str, tool_context: ToolContext) -> str:
from veadk.auth.veauth.utils import get_credential_from_vefaas_iam
from veadk.integrations.ve_tos.ve_tos import VeTOS

region = os.getenv("AGENTKIT_TOOL_REGION", "cn-beijing")

access_key = os.getenv("VOLCENGINE_ACCESS_KEY")
secret_key = os.getenv("VOLCENGINE_SECRET_KEY")
session_token = ""
Expand All @@ -130,6 +132,7 @@ def _invoke_skill(self, skill_name: str, tool_context: ToolContext) -> str:
sk=secret_key,
session_token=session_token,
bucket_name=tos_bucket,
region=region,
)

save_path = skill_dir / f"{skill_name}.zip"
Expand Down