struct AI::Google::GoogleGenerativeAIContent

Overview

A message content (user or model).

Included Modules

Defined in:

ai/google/google_generative_ai_prompt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(role : String, parts : Array(GoogleGenerativeAIContentPart)) #

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

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

[View source]

Instance Method Detail

def parts : Array(GoogleGenerativeAIContentPart) #

Content parts of the message.


[View source]
def role : String #

Role of the message: "user" or "model"


[View source]