Class: Braintrust::Models::ChatCompletionContentPartText

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/chat_completion_content_part_text.rb

Defined Under Namespace

Classes: Type

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#textString

Returns:

  • (String)


13
# File 'lib/braintrust/models/chat_completion_content_part_text.rb', line 13

optional :text, String

#typeSymbol

One of the constants defined in Type

Returns:

  • (Symbol)


9
# File 'lib/braintrust/models/chat_completion_content_part_text.rb', line 9

required :type, enum: -> { Braintrust::Models::ChatCompletionContentPartText::Type }