k33g/demo-mini-me-structured-outputpublic Fork
⑂ main
Commits
⬇ Clone ▾
git clone https://git.rickub.com/k33g/demo-mini-me-structured-output.git
git clone ssh://git@rickub.com/k33g/demo-mini-me-structured-output.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. fc9ff98 · on main · k33g · 1h ago
agent.pizza.yaml · 46 lines · 1.4 KBYAML Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#   llmman pull hf.co/unsloth/gemma-4-E4B-it-GGUF:Q4_K_M
#   cd demos/structured-output-pizza
#   mm -p "hawaiian pizza" | jq .
provider: llmman
model: hf.co/unsloth/gemma-4-E2B-it-GGUF:Q4_K_M
baseUrl: http://127.0.0.1:17434/v1
# From a Docker sandbox, the daemon runs on the host.
fallback: http://host.docker.internal:17434/v1

bashTool: false
editTools: false
planTool: false
fetchContentTool: false
askUserTool: false

acp:
  name: pizza
  title: 🍕 Pizza (JSON)

system: |
  You are a pizzaiolo. 
  For the pizza the user names, list its ingredients for one 30 cm pizza.

structuredOutput: |
  // One ingredient of the pizza.
  type Ingredient struct {
      Name       string   `json:"name"`       // the ingredient's name, in the user's language
      Quantity   float64  `json:"quantity"`   // amount for one pizza
      Unit       string   `json:"unit"`       // "g", "ml", "piece", "pinch" or "to taste"
      Category   string   `json:"category"`   // "base", "sauce", "cheese", "meat", "vegetable", "herb" or "other"
      Optional   bool     `json:"optional"`
  }

  type Pizza struct {
      Name        string       `json:"name"`
      Vegetarian  bool         `json:"vegetarian"`
      Ingredients []Ingredient `json:"ingredients"`
      BakingTime  *int         `json:"bakingTime"` // minutes, null when unknown
  }

  var Recipe Pizza

sampling:
  temperature: 0.0
  chat_template_kwargs:
    enable_thinking: false