On this page
Kater CLI Present and share chart
kater chart prompt
Writes a prompt that asks an agent to finish a chart that cannot draw yet.
Give it the chart’s spec and its plan, and paste the text it gives into your agent. It writes nothing, and the prompt holds no rows.
Examples
# Keep the spend_mix chart in a filekater chart read --request-file spend_mix.json --json > spend_mix_read.json# Make a prompt request from its spec and its planjq '{spec: .definition.spec, plan: .definition.plan}' spend_mix_read.json > spend_mix_prompt.json# Write the promptkater chart prompt --request-file spend_mix_prompt.jsonArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
The request
| Field | What it holds |
|---|---|
spec | The chart the prompt asks for. It can still lack fields that its kind needs. |
plan | The query columns that each of the chart’s outputs shows, as the plan of kater chart read holds them. |
inputs | Optional. The query’s parameter values and filters, for the prompt to keep. Leave it out when you do not know them. |
requirement | Optional. Why the chart cannot draw yet, as the chart builder showed it. |
The answer’s prompt holds the text. It names no agent.