Skip to main content
What Rollup.shared.query(_:) returns. See Query.
String
The answer, in plain language.
[String]
PhotoKit local identifiers of the photos the answer rests on.
Bool
true when the question was not about the person’s own life, or touched health, religion, sexuality, ethnicity or race, politics, or children, so query declined it.

QueryUpdate

One update of Rollup.shared.queryUpdates(_:), in order. See Query.
case
What the agent is looking at, as a short English sentence, such as “Finding Lisbon”.
case
The answer so far. Each replaces the one before. An empty one means the agent went back to reading the index.
case
The answer, as query returns it. Always the last update.
It encodes as {"type": "progress", "text": "..."}, {"type": "partialAnswer", "text": "..."} or {"type": "answer", "answer": {...}}.