Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 11.3 KB

File metadata and controls

19 lines (16 loc) · 11.3 KB

AutocompleteResult

Fields

Field Type Required Description Example
result str ✔️ N/A
keywords List[str] ➖ A list of all possible keywords for given result.
result_type Optional[models.AutocompleteResultResultType] ➖ N/A
score Optional[float] ➖ Higher indicates a more confident match.
operator_metadata Optional[models.OperatorMetadata] ➖ N/A {
"name": "Last Updated",
"operatorType": "DATE",
"scopes": [
{
"datasource": "GDRIVE",
"docType": "Document"
},
{
"datasource": "ZENDESK"
}
]
}
quicklink Optional[models.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[models.Document] ➖ N/A
url Optional[str] ➖ N/A
structured_result Optional[models.StructuredResult] ➖ A single object that can support any object in the work graph. Only a single object will be populated.
ugc_action Optional[models.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.
tracking_token Optional[str] ➖ A token to be passed in /feedback events associated with this autocomplete result.
ranges List[models.TextRange] ➖ Subsections of the result string to which some special formatting should be applied (eg. bold)