find_example
Find the closest canonical example for a task, with ranked alternatives when the top match isn't right. Returns example code and options to help you proceed.
Instructions
Find the closest canonical example for a task.
Args: task: Short description of what the user wants to do.
Returns:
A mapping with task and example.
available_examples lists every bundled example name, so
another can be requested when the match is wrong, and
other_candidates ranks the next best matches so a close call
is visible. example is None when nothing
matched, otherwise {path, score, source} where source is
the complete example in an untrusted-content envelope, capped at
32 KiB. checkout_example is the nearest match in a
Synthesizer source checkout when one exists, and carries only an
excerpt, not the whole file. notes explains an empty
result and error is present only when the search failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||