--llm-format-expects
- CLI
- --llm-format-expects
Sets what the model’s output must satisfy. Output that fails to meet those expectations will cause an error.
| Output | EXPECTATION |
|---|---|
llm_ | Comma-separated answers. The output must match one, ignoring case and whitespace |
llm_ | A JSON Schema, given inline, that the output must validate against. A $ref to a URL or file does not resolve; use $defs |
Example
zshot -f answer.txt \
-t llm_text \
--llm-format-model "anthropic://YOUR_API_KEY@" \
--llm-format-prompt "Does the lead story mention the weather? Answer Yes or No." \
--llm-format-expects "Yes,No" \
https://zshot-cli.com/example_assets/gazette/{
"url": "https://zshot-cli.com/example_assets/gazette/",
"output_type": "llm_text",
"llm_format_model": "anthropic://YOUR_API_KEY@",
"llm_format_prompt": "Does the lead story mention the weather? Answer Yes or No.",
"llm_format_expects": "Yes,No"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/gazette/","output_type":"llm_text","llm_format_model":"anthropic://YOUR_API_KEY@","llm_format_prompt":"Does the lead story mention the weather? Answer Yes or No.","llm_format_expects":"Yes,No"}' \
-o answer.txt