SwiftclassOmniSearchClient

class OmniSearchClient.LLMSearchClient

Members 31

  1. funcstatic appsAllowedForReading(_: [String], restrictingTo: Set<String>?) -> [String]
  2. funcstatic appsAllowedForReading(_: [String], excluding: Set<String>) -> [String]
  3. deinitdeinit
  4. fieldvar progress: NSProgress?
  5. fieldlet sessionLock: os.OSAllocatedUnfairLock<OmniSearchClient.ManagedSession?>
  6. fieldvar toolbox: IntelligenceFlowShared.ToolboxProviding?
  7. fieldlet xpcStreamClient: OmniSearch.XPCStreamingClient<OmniSearchTypes.SearchStreamingMessage<OmniSearch.OmniSearchResponse>>
  8. funcactivate() async throws -> ()
  9. funcaddIndexingCompletenessMetadata(from: OmniSearchTypes.IndexingPipelineCompleteness, to: inout [String : String]) -> ()
  10. funcagenticSearch(utterance: String, searchQuery: String?, searchInvocations: [OmniSearchTypes.AgenticSearchInvocation], typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: NSProgress?) async throws -> OmniSearchTypes.SearchStreamingResponse<OmniSearchTypes.LLMSearchResponse>
  11. funcagenticSearch(utterance: String, searchQuery: String?, structuredSearchQuery: OmniSearch.StructuredQueryEntity?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: NSProgress?) async throws -> OmniSearchTypes.SearchStreamingResponse<OmniSearchTypes.LLMSearchResponse>
  12. funcagenticSearch(utterance: String, searchQuery: String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: NSProgress?) async throws -> OmniSearchTypes.SearchStreamingResponse<OmniSearchTypes.LLMSearchResponse>
  13. funcaudioSearchResultsFromLocalMedia(mediaResults: [OmniSearch.SearchResult], query: String?, _: ToolKit.ToolDatabase) async -> [OmniSearchTypes.LLMSearchResult]
  14. funcbatchSearch(utterance: String, items: [OmniSearchTypes.BatchSearchItem]) async throws -> OmniSearchTypes.LLMSearchResponse
  15. funccancel() -> ()
  16. funcconnection() throws -> OmniSearchClient.ManagedSession
  17. funcconstructGlobalResultLists(_: OmniSearch.OmniSearchResponse, _: ToolKit.ToolDatabase, localResults: [OmniSearch.SearchResult], audioQueryLibraryOnly: Bool, shouldIgnoreSpotlightMusicResults: Bool) async -> [OmniSearchTypes.LLMSearchResultList]
  18. funcconstructLLMSearchResponse(_: OmniSearch.OmniSearchResponse, options: OmniSearchClient.LLMSearchOptions, _: ToolKit.ToolDatabase, query: String?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], audioQueryLibraryOnly: Bool) async throws -> OmniSearchTypes.LLMSearchResponse
  19. funcconstructLocalResultList(_: OmniSearch.OmniSearchResponse, _: OmniSearchClient.LLMSearchOptions, _: ToolKit.ToolDatabase, query: String?, _: [OmniSearch.SearchEntityTypeConstraint]) async throws -> OmniSearchTypes.LLMSearchResultList?
  20. funcdeactivate() async throws -> ()
  21. funcincomingMessageHandler(message: OmniSearch.XPCSessionServerMessage) -> Encodable?
  22. funcpreheat() async throws -> ()
  23. funcresetConnection() -> ()
  24. funcsearch(utterance: String, searchQuery: String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: NSProgress?) async throws -> OmniSearchTypes.LLMSearchResponse
  25. funcsearch(utterance: String, searchQuery: String?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: NSProgress?) async throws -> OmniSearchTypes.LLMSearchResponse
  26. funcsearch(utterance: String, searchQuery: String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeIdentifiers: [OmniSearch.SearchEntityTypeIdentifier], options: OmniSearchClient.LLMSearchOptions) async throws -> OmniSearchTypes.LLMSearchResponse
  27. funcsearch(utterance: String, searchQuery: String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeIdentifiers: [OmniSearch.SearchEntityTypeIdentifier], options: OmniSearchClient.LLMSearchOptions, progress: NSProgress?) async throws -> OmniSearchTypes.LLMSearchResponse
  28. funcsearch(utterance: String, searchQuery: String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, options: OmniSearchClient.LLMSearchOptions) async throws -> OmniSearchTypes.LLMSearchResponse
  29. funcsiriKitReadingStandardRepresentation(structuredQuery: OmniSearchTypes.StructuredQuery?, queryString: String?, apps: [String], _: ToolKit.ToolDatabase) async -> [OmniSearchTypes.LLMSearchResult]
  30. initOmniSearchClient.LLMSearchClient.__allocating_init(toolbox: IntelligenceFlowShared.ToolboxProviding?) -> OmniSearchClient.LLMSearchClient
  31. initOmniSearchClient.LLMSearchClient.__allocating_init() -> OmniSearchClient.LLMSearchClient
class LLMSearchClient {
    // Local type in a function or closure the binary does not name
    enum ResultType {
        case group(OmniSearch.SearchResultGroup)
        case singleIndex(Swift.Int)
    }
    let sessionLock: os.OSAllocatedUnfairLock<OmniSearchClient.ManagedSession?>
    var progress: __C.NSProgress?
    var toolbox: (any IntelligenceFlowShared.ToolboxProviding)?
    let xpcStreamClient: OmniSearch.XPCStreamingClient<OmniSearchTypes.SearchStreamingMessage<OmniSearch.OmniSearchResponse>>

    init()
    init(toolbox: (any IntelligenceFlowShared.ToolboxProviding)?)
    func incomingMessageHandler(message: OmniSearch.XPCSessionServerMessage) -> (any Swift.Encodable)?
    func connection() throws -> OmniSearchClient.ManagedSession
    func resetConnection()
    func cancel()
    func preheat() async throws
    func activate() async throws
    func deactivate() async throws
    func search(utterance: Swift.String, searchQuery: Swift.String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: __C.NSProgress?) async throws -> OmniSearchTypes.LLMSearchResponse
    func search(utterance: Swift.String, searchQuery: Swift.String?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: __C.NSProgress?) async throws -> OmniSearchTypes.LLMSearchResponse
    func search(utterance: Swift.String, searchQuery: Swift.String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeIdentifiers: [OmniSearch.SearchEntityTypeIdentifier], options: OmniSearchClient.LLMSearchOptions) async throws -> OmniSearchTypes.LLMSearchResponse
    func search(utterance: Swift.String, searchQuery: Swift.String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeIdentifiers: [OmniSearch.SearchEntityTypeIdentifier], options: OmniSearchClient.LLMSearchOptions, progress: __C.NSProgress?) async throws -> OmniSearchTypes.LLMSearchResponse
    func search(utterance: Swift.String, searchQuery: Swift.String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, options: OmniSearchClient.LLMSearchOptions) async throws -> OmniSearchTypes.LLMSearchResponse
    func agenticSearch(utterance: Swift.String, searchQuery: Swift.String?, searchInvocations: [OmniSearchTypes.AgenticSearchInvocation], typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: __C.NSProgress?) async throws -> OmniSearchTypes.SearchStreamingResponse<OmniSearchTypes.LLMSearchResponse>
    func agenticSearch(utterance: Swift.String, searchQuery: Swift.String?, structuredSearchQuery: OmniSearch.StructuredQueryEntity?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: __C.NSProgress?) async throws -> OmniSearchTypes.SearchStreamingResponse<OmniSearchTypes.LLMSearchResponse>
    func agenticSearch(utterance: Swift.String, searchQuery: Swift.String?, structuredSearchQuery: OmniSearchTypes.StructuredQuery?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], options: OmniSearchClient.LLMSearchOptions, progress: __C.NSProgress?) async throws -> OmniSearchTypes.SearchStreamingResponse<OmniSearchTypes.LLMSearchResponse>
    func batchSearch(utterance: Swift.String, items: [OmniSearchTypes.BatchSearchItem]) async throws -> OmniSearchTypes.LLMSearchResponse
    func constructLLMSearchResponse(_: OmniSearch.OmniSearchResponse, options: OmniSearchClient.LLMSearchOptions, _: ToolKit.ToolDatabase, query: Swift.String?, typeConstraints: [OmniSearch.SearchEntityTypeConstraint], audioQueryLibraryOnly: Swift.Bool) async throws -> OmniSearchTypes.LLMSearchResponse
    func constructGlobalResultLists(_: OmniSearch.OmniSearchResponse, _: ToolKit.ToolDatabase, localResults: [OmniSearch.SearchResult], audioQueryLibraryOnly: Swift.Bool, shouldIgnoreSpotlightMusicResults: Swift.Bool) async -> [OmniSearchTypes.LLMSearchResultList]
    func constructLocalResultList(_: OmniSearch.OmniSearchResponse, _: OmniSearchClient.LLMSearchOptions, _: ToolKit.ToolDatabase, query: Swift.String?, _: [OmniSearch.SearchEntityTypeConstraint]) async throws -> OmniSearchTypes.LLMSearchResultList?
    func addIndexingCompletenessMetadata(from: OmniSearchTypes.IndexingPipelineCompleteness, to: inout [Swift.String : Swift.String])

    final func audioSearchResultsFromLocalMedia(mediaResults: [OmniSearch.SearchResult], query: Swift.String?, _: ToolKit.ToolDatabase) async -> [OmniSearchTypes.LLMSearchResult]
    final func siriKitReadingStandardRepresentation(structuredQuery: OmniSearchTypes.StructuredQuery?, queryString: Swift.String?, apps: [Swift.String], _: ToolKit.ToolDatabase) async -> [OmniSearchTypes.LLMSearchResult]

    static func appsAllowedForReading(_: [Swift.String], restrictingTo: Swift.Set<Swift.String>?) -> [Swift.String]
    static func appsAllowedForReading(_: [Swift.String], excluding: Swift.Set<Swift.String>) -> [Swift.String]

    deinit
}