The AI Summarizer can be used to generate different types of summaries in varied lengths and formats, such as sentences, paragraphs, bullet point lists, and more. We believe this API is useful in the following scenarios:
The AI Summarizer has set of 4 client actions, listed below -
1.CheckAvailability -
To determine if the model is ready to use, It returns availability status with the following values -
"unavailable" means that the implementation does not support the requested options.
"downloadable" means that the implementation supports the requested options, but first, the browser has to download something, such as a model (in Chrome's case, Gemini Nano) or fine-tuning for the model.
"downloading" means that the implementation supports the requested options, but it has to finish an ongoing download before it can proceed.
"available" means that the implementation supports the requested options and the summarizer can proceed.
2.DownloadModel -
To trigger the model download call this function. If the response to CheckAvailability->AvailabilityStatus was downloadable or downloading,
3.CheckInputQuota -
Returns the input quota available to the browser for generating summaries.
1.Summarize -
Summarizes a given body of text via a browser's internal AI model (which may differ between browsers).
This action has following input para,eters to sumarize text -