Class RealtimeConversationItemFunctionCallOutput.Builder
-
- All Implemented Interfaces:
public final class RealtimeConversationItemFunctionCallOutput.Builder
A builder for RealtimeConversationItemFunctionCallOutput.
-
-
Method Summary
-
-
Method Detail
-
callId
final RealtimeConversationItemFunctionCallOutput.Builder callId(String callId)
The ID of the function call this output is for.
-
callId
final RealtimeConversationItemFunctionCallOutput.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
output
final RealtimeConversationItemFunctionCallOutput.Builder output(String output)
The output of the function call, this is free text and can contain any information or simply be empty.
-
output
final RealtimeConversationItemFunctionCallOutput.Builder output(JsonField<String> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeConversationItemFunctionCallOutput.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("function_call_output")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final RealtimeConversationItemFunctionCallOutput.Builder id(String id)
The unique ID of the item. This may be provided by the client or generated by the server.
-
id
final RealtimeConversationItemFunctionCallOutput.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final RealtimeConversationItemFunctionCallOutput.Builder object_(RealtimeConversationItemFunctionCallOutput.Object object_)
Identifier for the API object being returned - always
realtime.item
. Optional when creating a new item.
-
object_
final RealtimeConversationItemFunctionCallOutput.Builder object_(JsonField<RealtimeConversationItemFunctionCallOutput.Object> object_)
Sets Builder.object_ to an arbitrary JSON value.
You should usually call Builder.object_ with a well-typed Object value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final RealtimeConversationItemFunctionCallOutput.Builder status(RealtimeConversationItemFunctionCallOutput.Status status)
The status of the item. Has no effect on the conversation.
-
status
final RealtimeConversationItemFunctionCallOutput.Builder status(JsonField<RealtimeConversationItemFunctionCallOutput.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeConversationItemFunctionCallOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeConversationItemFunctionCallOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeConversationItemFunctionCallOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeConversationItemFunctionCallOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeConversationItemFunctionCallOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeConversationItemFunctionCallOutput build()
Returns an immutable instance of RealtimeConversationItemFunctionCallOutput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.callId() .output()
-
-
-
-