Class: Braintrust::Models::PromptData

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

Defined Under Namespace

Classes: Options, Origin, Parser

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

#optionsBraintrust::Models::PromptData::Options



8
# File 'lib/braintrust/models/prompt_data.rb', line 8

optional :options, -> { Braintrust::Models::PromptData::Options }

#originBraintrust::Models::PromptData::Origin



12
# File 'lib/braintrust/models/prompt_data.rb', line 12

optional :origin, -> { Braintrust::Models::PromptData::Origin }

#parserBraintrust::Models::PromptData::Parser



16
# File 'lib/braintrust/models/prompt_data.rb', line 16

optional :parser, -> { Braintrust::Models::PromptData::Parser }

#promptBraintrust::Models::PromptData::Prompt::UnnamedTypeWithunionParent13|Braintrust::Models::PromptData::Prompt::UnnamedTypeWithunionParent14|Braintrust::Models::PromptData::Prompt::UnnamedTypeWithunionParent15

Returns:

  • (Braintrust::Models::PromptData::Prompt::UnnamedTypeWithunionParent13|Braintrust::Models::PromptData::Prompt::UnnamedTypeWithunionParent14|Braintrust::Models::PromptData::Prompt::UnnamedTypeWithunionParent15)


20
# File 'lib/braintrust/models/prompt_data.rb', line 20

optional :prompt, Braintrust::Unknown

#tool_functionsArray<Braintrust::Models::PromptData::ToolFunction::UnnamedTypeWithunionParent16|Braintrust::Models::PromptData::ToolFunction::UnnamedTypeWithunionParent17>

Returns:

  • (Array<Braintrust::Models::PromptData::ToolFunction::UnnamedTypeWithunionParent16|Braintrust::Models::PromptData::ToolFunction::UnnamedTypeWithunionParent17>)


24
# File 'lib/braintrust/models/prompt_data.rb', line 24

optional :tool_functions, Braintrust::ArrayOf.new(Braintrust::Unknown)