blob: 58ec2bcf6bb1b0eea0416a66adbb99e8da70cc51 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.modular;
// Administrative interface for Suggestion Engine.
[Discoverable]
interface SuggestionEngine {
// Initializes the SuggestionEngine and provides dependencies.
1: Initialize(ContextWriter context_writer, ContextReader context_reader,
PuppetMaster puppet_master);
// Registers a component that produces suggestions.
2: RegisterProposalPublisher(string url, request<ProposalPublisher> publisher);
// Registers a component that produces suggestions based on a query.
3: RegisterQueryHandler(string url, QueryHandler query_handler);
};