_CoreSpotlight_FoundationModels · IOS API REFERENCE
SpotlightSearchTool.FormatLevel
enum · iOS 27.0+ · SDK 27.1
enum FormatLevelControls how tool responses are serialized for the model's context window. The tool returns search results to the model as part of the generation context. The format level determines how those results are encoded: - `.structured`: Full encoding with the highest fidelity, highest token cost. Best when the model needs to reason over attribute keys and values precisely (e.g., filtering, re-querying). - `.compact`: Terse, line-oriented text encoding. Best for models with limited context.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
No declarations were skipped in this snapshot.