code_run
Run a data pipeline by providing source code files and a branch reference, with optional parameters, returning a job ID and success/failure status.
Instructions
Run a pipeline from provided source code files as a dictionary and a data ref, returning a job ID and success/failure to the caller.
Args: project_files: Dictionary mapping file names to source code as strings. Must contain bauplan_project.yml and .sql/.py files. ref: The ref or branch name from which to run the project. parameters: Parameters for templating DAGs. Keys are parameter names, values must be simple types (str, int, float, bool). Default: None.
Returns: RunState: Object indicating success/failure with job Id.
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": {
"project_files": "<project_files>",
"ref": "<ref>"
},
"name": "code_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_files | Yes | ||
| ref | Yes | ||
| parameters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| job_id | No |