Get Decisioning Asset Code
get_decisioning_asset_codeRetrieves the DS2 code SAS Viya generates for a rule set, decision, segmentation tree, or code file source, optionally from a specific revision.
Instructions
The DS2 code Viya generates for a rule set, decision or segmentation tree, or a code file's source.
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": {
"asset_type": "<asset_type>",
"asset_id": "<asset_id>"
},
"name": "get_decisioning_asset_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | The ID. | |
| asset_type | Yes | rule_set, decision, segmentation_tree or code_file. | |
| revision_id | No | A revision instead of the current state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |