functiongraph__CreateDependencyVersion
Create a new FunctionGraph dependency package version from a ZIP file or OBS link, specifying the runtime and project for serverless function deployments.
Instructions
[FUNCTIONGRAPH] 创建依赖包版本
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"depend_type": "<depend_type>",
"name": "<name>",
"project_id": "<project_id>",
"runtime": "<runtime>"
},
"name": "functiongraph__CreateDependencyVersion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 依赖包名称。必须以大、小写字母开头,以字母或数字结尾,只能由字母、数字、下划线、点和中划线组成,长度不超过96个字符。 | |
| runtime | Yes | FunctionGraph函数的执行环境 | |
| project_id | Yes | 租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。 | |
| depend_file | No | depend_type为zip类型时必填,为文件流格式,需要base64编码zip文件。上传的文件大小限制为40M,如超过40M,请通过OBS上传。 | |
| depend_link | No | depend_type为obs类型时,依赖包在obs的存储地址。 | |
| depend_type | Yes | 导入类型,目前支持obs和zip。 | |
| description | No | 依赖包描述,不超过512个字符。 |