Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 11.3 KB

AutocompleteResult.md

File metadata and controls

19 lines (16 loc) · 11.3 KB

AutocompleteResult

Fields

Field Type Required Description Example
result String ✔️ N/A
keywords List<String> ➖ A list of all possible keywords for given result.
resultType Optional<AutocompleteResultResultType> ➖ N/A
score Optional<Double> ➖ Higher indicates a more confident match.
operatorMetadata Optional<OperatorMetadata> ➖ N/A {
"name": "Last Updated",
"operatorType": "DATE",
"scopes": [
{
"datasource": "GDRIVE",
"docType": "Document"
},
{
"datasource": "ZENDESK"
}
]
}
quicklink Optional<Quicklink> ➖ An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira.
document Optional<Document> ➖ N/A
url Optional<String> ➖ N/A
structuredResult Optional<StructuredResult> ➖ A single object that can support any object in the work graph. Only a single object will be populated.
ugcAction Optional<UgcActionUnion> ➖ An action to perform on user-generated content. This may be accompanied by text on the ChatMessageFragment, which acts as the display name content of the pill.
trackingToken Optional<String> ➖ A token to be passed in /feedback events associated with this autocomplete result.
ranges List<TextRange> ➖ Subsections of the result string to which some special formatting should be applied (eg. bold)