🦎Psyllama

Structured outputs

Structured outputs help you reliably get machine-readable data (for example JSON) from a model.

Approach

Use clear system instructions and provide a schema in the prompt. Validate the model output in your application.

Example (chat)

curl http://localhost:11434/api/chat \
  -d '{
    "model":"kimi-k2.5:cloud",
    "messages":[
      {"role":"system","content":"Return only valid JSON."},
      {"role":"user","content":"Return {\"name\":string,\"score\":number} for: Psyllama"}
    ]
  }'