Class ConversationItemContent
- 
                    
                    
- All Implemented Interfaces:
 
public final class ConversationItemContent 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItemContent.BuilderA builder for ConversationItemContent.
public final classConversationItemContent.TypeThe content type (
input_text,input_audio,item_reference,text,audio). 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final Optional<String>id()ID of a previous conversation item to reference (for item_referencecontent types inresponse.createevents).final Optional<String>audio()Base64-encoded audio bytes, used for input_audiocontent type.final Optional<String>text()The text content, used for input_textandtextcontent types.final Optional<String>transcript()The transcript of the audio, used for input_audioandaudiocontent types.final Optional<ConversationItemContent.Type>type()The content type ( input_text,input_audio,item_reference,text,audio).final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_audio()Returns the raw JSON value of audio. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<String>_transcript()Returns the raw JSON value of transcript. final JsonField<ConversationItemContent.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final ConversationItemContent.BuildertoBuilder()final ConversationItemContentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ConversationItemContent.Builderbuilder()Returns a mutable builder for constructing an instance of ConversationItemContent. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
id
final Optional<String> id()
ID of a previous conversation item to reference (for
item_referencecontent types inresponse.createevents). These can reference both client and server created items. 
- 
                                        
transcript
final Optional<String> transcript()
The transcript of the audio, used for
input_audioandaudiocontent types. 
- 
                                        
type
final Optional<ConversationItemContent.Type> type()
The content type (
input_text,input_audio,item_reference,text,audio). 
- 
                                        
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_audio
final JsonField<String> _audio()
Returns the raw JSON value of audio.
Unlike audio, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_transcript
final JsonField<String> _transcript()
Returns the raw JSON value of transcript.
Unlike transcript, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_type
final JsonField<ConversationItemContent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final ConversationItemContent.Builder toBuilder()
 
- 
                                        
validate
final ConversationItemContent validate()
 
- 
                                        
builder
final static ConversationItemContent.Builder builder()
Returns a mutable builder for constructing an instance of ConversationItemContent.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -