mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-16 01:55:29 -05:00
1.7 KiB
1.7 KiB
title, type, weight, description, aliases
| title | type | weight | description | aliases | |
|---|---|---|---|---|---|
| dataform-compile-local | docs | 1 | A "dataform-compile-local" tool runs the `dataform compile` CLI command on a local project directory. |
|
About
A dataform-compile-local tool runs the dataform compile command on a local
Dataform project.
It is a standalone tool and is not compatible with any sources.
At invocation time, the tool executes dataform compile --json in the specified
project directory and returns the resulting JSON object from the CLI.
dataform-compile-local takes the following parameter:
project_dir(string): The absolute or relative path to the local Dataform project directory. The server process must have read access to this path.
Requirements
Dataform CLI
This tool executes the dataform command-line interface (CLI) via a system
call. You must have the dataform CLI installed and available in the
server's system PATH.
You can typically install the CLI via npm:
npm install -g @dataform/cli
See the official Dataform documentation for more details.
Example
tools:
my_dataform_compiler:
kind: dataform-compile-local
description: Use this tool to compile a local Dataform project.
Reference
| field | type | required | description |
|---|---|---|---|
| kind | string | true | Must be "dataform-compile-local". |
| description | string | true | Description of the tool that is passed to the LLM. |