Record Class OpenAIResponseOutputItem
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.openai.OpenAIResponseOutputItem
- Record Components:
type- output typecontent- output content blocks
public record OpenAIResponseOutputItem(String type, List<OpenAIResponseContentItem> content)
extends Record
Output item representation for the OpenAI Responses API.
- Version:
- 1.0.9
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionOpenAIResponseOutputItem(String type, List<OpenAIResponseContentItem> content) Creates an instance of aOpenAIResponseOutputItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns true when this output item contains text content.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Method Details
-
hasTextContent
public boolean hasTextContent()Returns true when this output item contains text content.- Returns:
- boolean
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
-
content
-