struct AI::Provider::LanguageModel::UserMessage

Overview

User message in a prompt.

Included Modules

Defined in:

ai/provider/language_model/prompt.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(content : Array(UserContentPart), provider_options : Shared::ProviderOptions | Nil = nil) #

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

[View source]

Instance Method Detail

def content : Array(UserContentPart) #

[View source]
def provider_options : Shared::ProviderOptions | Nil #

[View source]
def role : String #

[View source]