WWW::Gemini

WWW::Gemini provides access to Google's Gemini.

sub gemini-generation

sub gemini-generation(
    |
) returns Mu

Gemini chat and text completions access. C<:type> -- type of text generation, one of 'chat', 'text', or Whatever; C<:model> -- LLM model to use. C<*%args> -- additional arguments, see C and C.

sub gemini-generate-content

sub gemini-generate-content(
    |
) returns Mu

Gemini chat completions access. C<role> -- role; no more two authors per chat; C<:temperature> -- number between 0 and 1; C<:top-k> -- top-K top tokens to use; C<:n(auth-key)> -- authorization key (API key); C<:format> -- format to use in answers post processing, one of ); C<:base-url> -- base URL for WWW API server.

sub gemini-embed-content

sub gemini-embed-content(
    |
) returns Mu

Gemini embeddings access.

sub gemini-models

sub gemini-models(
    |
) returns Mu

Gemini models access.

sub gemini-prompt

sub gemini-prompt(
    $text is copy = "",
    Str :$path = "generateText",
    :api-key(:$auth-key) is copy = Whatever,
    Int :$timeout where { ... } = 10,
    :$format is copy = Whatever,
    Str :$method = "tiny",
    *%args
) returns Mu

Gemini utilization for finding textual answers. Gemini maker-suite access. C<:path> -- end point path; C<:api-key(:format> -- format to use in answers post processing, one of ); C<:$method> -- method to WWW API call with, one of , C<*%args> -- additional arguments, see C and C.

multi sub gemini-prompt

multi sub gemini-prompt(
    *%args
) returns Mu

Gemini maker-suite access.

multi sub gemini-prompt

multi sub gemini-prompt(
    @texts,
    *%args
) returns Mu

Gemini maker-suite access.

multi sub gemini-prompt

multi sub gemini-prompt(
    $text is copy,
    Str :path(:$generation-method) = "generateContent",
    :api-key(:$auth-key) is copy = Whatever,
    Int :$timeout where { ... } = 10,
    :$format is copy = Whatever,
    Str :$method = "tiny",
    *%args
) returns Mu

Gemini maker-suite access.

WWW::Gemini v0.0.7

WWW::Gemini provides access to Google's Gemini.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

HTTP::Tiny:ver<0.2.5+>JSON::Fast:ver<0.17+>Image::Markup::Utilities:ver<0.1.1+>:auth<zef:antononcube>

Test Dependencies

Provides

  • WWW::Gemini
  • WWW::Gemini::EmbedContent
  • WWW::Gemini::GenerateContent
  • WWW::Gemini::Models
  • WWW::Gemini::Request

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.