module Kagi::Summarize

Overview

Encapsulates methods for interacting with the /summarize endpoint

https://help.kagi.com/kagi/api/summarizer.html

Defined in:

kagi/summarize.cr

Constant Summary

Log = Kagi::Log.for(self)

Class Method Summary

Class Method Detail

def self.text(string : String, engine : String | Nil = nil, summary_type : String | Nil = nil, target_lang : String | Nil = nil, cache : Bool | Nil = nil) : Kagi::Object::Summarization #

Summarizes a given string. For a list of supported engines, summary types, and target languages, see https://help.kagi.com/kagi/api/summarizer.html#options

https://help.kagi.com/kagi/api/summarizer.html#get-post-summarize


[View source]
def self.url(link : String, engine : String | Nil = nil, summary_type : String | Nil = nil, target_lang : String | Nil = nil, cache : Bool | Nil = nil) : Kagi::Object::Summarization #

Summarizes a given URL that points to content. For a list of supported engines, summary types, and target languages, see https://help.kagi.com/kagi/api/summarizer.html#options

https://help.kagi.com/kagi/api/summarizer.html#get-post-summarize


[View source]