# Models

## The Tomato object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"Tomato":{"type":"object","properties":{"id":{"type":"string"},"variety":{"type":"string"},"ripeness":{"type":"number"},"weight":{"type":"number"},"type":{"type":"string","enum":["raw"]},"properties":{"type":"object"}}}}}}
```

## The SliceResult object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"SliceResult":{"type":"object","properties":{"id":{"type":"string"},"source_tomato_ids":{"type":"array","items":{"type":"string"}},"method":{"type":"string"},"size":{"type":"string"},"consistency":{"type":"string"},"type":{"type":"string","enum":["sliced"]},"pieces":{"type":"array","items":{"type":"object"}}}}}}}
```

## The JuiceResult object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"JuiceResult":{"type":"object","properties":{"id":{"type":"string"},"volume":{"type":"number"},"concentration":{"type":"number"},"type":{"type":"string","enum":["juice"]},"properties":{"type":"object"}}}}}}
```

## The Sauce object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"Sauce":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sauce_quality":{"type":"string","enum":["optimal","degraded"]},"degradation_reason":{"type":"string","description":"Present only when sauce_quality is \"degraded\""},"ingredients":{"type":"array","items":{"type":"object"}},"temperature":{"type":"number"},"duration":{"type":"string"},"properties":{"type":"object"}}}}}}
```

## The PizzaBase object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"PizzaBase":{"type":"object","properties":{"id":{"type":"string"},"thickness":{"type":"string"},"size":{"type":"string"},"style":{"type":"string"},"hydration":{"type":"number"},"fermentation_time":{"type":"string"},"flour_type":{"type":"string"},"salt_content":{"type":"number"}}}}}}
```

## The AssembledPizza object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"AssembledPizza":{"type":"object","properties":{"id":{"type":"string"},"base":{"$ref":"#/components/schemas/PizzaBase"},"sauce":{"$ref":"#/components/schemas/Sauce"},"toppings":{"type":"array","items":{"type":"object"}},"status":{"type":"string","enum":["assembled"]},"assembly_quality":{"type":"string","enum":["optimal","degraded"]}}},"PizzaBase":{"type":"object","properties":{"id":{"type":"string"},"thickness":{"type":"string"},"size":{"type":"string"},"style":{"type":"string"},"hydration":{"type":"number"},"fermentation_time":{"type":"string"},"flour_type":{"type":"string"},"salt_content":{"type":"number"}}},"Sauce":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sauce_quality":{"type":"string","enum":["optimal","degraded"]},"degradation_reason":{"type":"string","description":"Present only when sauce_quality is \"degraded\""},"ingredients":{"type":"array","items":{"type":"object"}},"temperature":{"type":"number"},"duration":{"type":"string"},"properties":{"type":"object"}}}}}}
```

## The BakedPizza object

```json
{"openapi":"3.1.0","info":{"title":"PizzaStack API","version":"1.0.0"},"components":{"schemas":{"BakedPizza":{"type":"object","properties":{"id":{"type":"string"},"pizza_id":{"type":"string"},"baking_parameters":{"type":"object"},"quality_metrics":{"type":"object","properties":{"overall_score":{"type":"number","description":"Final quality score from 0.0 to 1.0. A score above 0.85\nindicates optimal pipeline execution. A score below 0.55\nindicates one or more ingredient preparation errors.\n"},"crust_crispness":{"type":"number"},"cheese_melt":{"type":"number"},"topping_distribution":{"type":"number"},"sauce_integration":{"type":"number"}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tomatopy.pizza/docs/developer-documentation/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
