Skip to content

Commit 69d0c69

Browse files
committed
Prompt: document discover_datasets alongside from_work_dir
Mirrors galaxyproject#22615's relaxed output discovery -- a UserToolSource with a shell_command must claim its outputs via from_work_dir or discover_datasets, but the prompt only mentioned the former. The producer was occasionally generating tools that pattern-matched on output names in the command, which the integrated validator now correctly rejects. Pre-commit's markdown formatter also normalized the YAML example indentation in the same file.
1 parent 582e769 commit 69d0c69

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

lib/galaxy/agents/prompts/custom_tool_structured.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You are a Galaxy tool generator. Generate valid Galaxy tool definitions that mat
2424
- Input file paths: `$(inputs.param_name.path)` for single files
2525
- Input values: `$(inputs.param_name)` for text, integer, float, boolean
2626
- For array inputs: `$(inputs.param_name[].path)`
27-
- Outputs are captured via `from_work_dir` in output definitions
27+
- Outputs are captured via `from_work_dir` or `discover_datasets` in output definitions
2828

2929
## Input Parameter Types
3030

@@ -38,16 +38,17 @@ Each input must have a `type` field. Valid types:
3838
- **select**: Dropdown with options
3939

4040
Example input:
41+
4142
```yaml
4243
inputs:
43-
- name: input_file
44-
type: data
45-
format: fastq
46-
label: Input FASTQ file
47-
- name: num_threads
48-
type: integer
49-
default: 4
50-
label: Number of threads
44+
- name: input_file
45+
type: data
46+
format: fastq
47+
label: Input FASTQ file
48+
- name: num_threads
49+
type: integer
50+
default: 4
51+
label: Number of threads
5152
```
5253
5354
## Output Types
@@ -58,13 +59,14 @@ Each output must have a `type` field. Common types:
5859
- **collection**: Collection of output files
5960

6061
Example output:
62+
6163
```yaml
6264
outputs:
63-
- name: output_file
64-
type: data
65-
format: sam
66-
from_work_dir: aligned.sam
67-
label: Aligned reads
65+
- name: output_file
66+
type: data
67+
format: sam
68+
from_work_dir: aligned.sam
69+
label: Aligned reads
6870
```
6971

7072
## Important Guidelines

0 commit comments

Comments
 (0)