class Kagi::CLI
- Kagi::CLI
- Reference
- Object
Overview
Defines a command-line interface for interacting with the Kagi APIs
$ ./bin/kagi
Usage: kagi [subcommand] [argument]
kagi search [query] - Search Kagi
kagi enrich [news|web] [query] - Search Enrichment APIs
kagi fast-gpt [query] - Ask FastGPT
kagi summarize [url] - Summarize a URL
Defined in:
kagi/cli.crInstance Method Summary
-
#enrich(cmd : String, query : String)
Search for
query
via the enrich API (depending on the cmd) and print the results -
#execute
Parse ARGV and execute the corresponding method
-
#fast_gpt(query : String)
Prints the response of FastGPT for a given query
-
#search(query : String)
Search for
query
via the search API and print the results -
#summarize(url : String)
Prints a summary of the given url
Instance Method Detail
def enrich(cmd : String, query : String)
#
Search for query
via the enrich API (depending on the cmd) and print the results