struct AI::Google::GoogleGenerativeAIPrompt

Overview

Complete prompt structure for Google Generative AI.

Included Modules

Defined in:

ai/google/google_generative_ai_prompt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(contents : Array(GoogleGenerativeAIContent), system_instruction : GoogleGenerativeAISystemInstruction | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def contents : Array(GoogleGenerativeAIContent) #

[View source]
def system_instruction : GoogleGenerativeAISystemInstruction | Nil #

[View source]