You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow parameters definition in prompt declarations (#130)
* Allowed parameters definition for prompts declared in *_objects.yml
* moved to build management hatchling
* include tools/*/*_objects.yml files in wheel
Copy file name to clipboardExpand all lines: docs/CUSTOMIZING.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ A semantic layer in this context is a collection of custom tools, prompts, cubes
19
19
-**Profiles:** Named sets of tools, prompts, and resources that enable domain-specific server instantiations.
20
20
21
21
### Declarative Specification
22
-
All custom objects can be defined in a YAML file (e.g., `sales_objects.yaml`, `finance_objects.yaml`). The file is a dictionary keyed by object name, with each entry specifying its type and details:
22
+
All custom objects can be defined in a YAML file (e.g., `sales_objects.yml`, `finance_objects.yml`). The file is a dictionary keyed by object name, with each entry specifying its type and details:
23
23
24
24
```yaml
25
25
sales_by_region:
@@ -92,7 +92,7 @@ For example, to run the server with the pre-defined dba profile:
92
92
## Custom Objects Implementation Details
93
93
94
94
### File Naming and Loading
95
-
All customizations must be defined in files named `*_objects.yaml` (e.g., `sales_objects.yaml`, `finance_objects.yaml`).
95
+
All customizations must be defined in files named `*_objects.yml` (e.g., `sales_objects.yml`, `finance_objects.yml`).
96
96
97
97
### Supported Object Types and Attribute Rules
98
98
Each entry in the YAML file is keyed by its name and must specify a `type`. Supported types and their required/optional attributes:
@@ -101,8 +101,8 @@ Each entry in the YAML file is keyed by its name and must specify a `type`. Supp
101
101
- **Required:**
102
102
- `type`: Must be `tool`
103
103
- `sql`: SQL query string (it can be a prepared statement with parameters)
104
-
- `parameters`: Dictionary of parameter definitions
105
104
- **Optional:**
105
+
- `parameters`: Dictionary of parameter name (key) and definitions (value) - if used in the sql
106
106
- `description`: Text description of the tool
107
107
108
108
#### Cube
@@ -119,6 +119,7 @@ Each entry in the YAML file is keyed by its name and must specify a `type`. Supp
119
119
- `type`: Must be `prompt`
120
120
- `prompt`: Text of the prompt
121
121
- **Optional:**
122
+
- `parameters`: Dictionary of parameter name (key) and definitions (value) - if used in the prompt
122
123
- `description`: Text description of the prompt
123
124
124
125
#### Glossary
@@ -145,4 +146,4 @@ Each entry in the YAML file is keyed by its name and must specify a `type`. Supp
145
146
146
147
## Example
147
148
148
-
See the provided [`custom_objects.yaml`](../custom_objects.yaml) (or your domain-specific YAML file) for a complete example.
149
+
See the provided [`custom_objects.yml`](../custom_objects.yml) (or your domain-specific YAML file) for a complete example.
0 commit comments