Class BetaResponseFunctionToolCallOutputItem.Builder
-
- All Implemented Interfaces:
public final class BetaResponseFunctionToolCallOutputItem.BuilderA builder for BetaResponseFunctionToolCallOutputItem.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseFunctionToolCallOutputItem.Builder id(String id)
The unique ID of the function call tool output.
-
id
final BetaResponseFunctionToolCallOutputItem.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.
-
callId
final BetaResponseFunctionToolCallOutputItem.Builder callId(String callId)
The unique ID of the function tool call generated by the model.
-
callId
final BetaResponseFunctionToolCallOutputItem.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 BetaResponseFunctionToolCallOutputItem.Builder output(BetaResponseFunctionToolCallOutputItem.Output output)
The output from the function call generated by your code. Can be a string or an list of output content.
-
output
final BetaResponseFunctionToolCallOutputItem.Builder output(JsonField<BetaResponseFunctionToolCallOutputItem.Output> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed Output value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
output
final BetaResponseFunctionToolCallOutputItem.Builder output(String string)
Alias for calling output with
Output.ofString(string).
-
outputOfContentList
final BetaResponseFunctionToolCallOutputItem.Builder outputOfContentList(List<BetaResponseFunctionToolCallOutputItem.Output.BetaFunctionAndCustomToolCallOutput> contentList)
Alias for calling output with
Output.ofContentList(contentList).
-
status
final BetaResponseFunctionToolCallOutputItem.Builder status(BetaResponseFunctionToolCallOutputItem.Status status)
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
status
final BetaResponseFunctionToolCallOutputItem.Builder status(JsonField<BetaResponseFunctionToolCallOutputItem.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.
-
type
final BetaResponseFunctionToolCallOutputItem.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.
-
agent
final BetaResponseFunctionToolCallOutputItem.Builder agent(BetaResponseFunctionToolCallOutputItem.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseFunctionToolCallOutputItem.Builder agent(Optional<BetaResponseFunctionToolCallOutputItem.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseFunctionToolCallOutputItem.Builder agent(JsonField<BetaResponseFunctionToolCallOutputItem.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseFunctionToolCallOutputItem.Builder caller(BetaResponseFunctionToolCallOutputItem.Caller caller)
The execution context that produced this tool call.
-
caller
final BetaResponseFunctionToolCallOutputItem.Builder caller(Optional<BetaResponseFunctionToolCallOutputItem.Caller> caller)
Alias for calling Builder.caller with
caller.orElse(null).
-
caller
final BetaResponseFunctionToolCallOutputItem.Builder caller(JsonField<BetaResponseFunctionToolCallOutputItem.Caller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed Caller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseFunctionToolCallOutputItem.Builder caller(BetaResponseFunctionToolCallOutputItem.Caller.Program program)
Alias for calling caller with
Caller.ofProgram(program).
-
callerDirect
final BetaResponseFunctionToolCallOutputItem.Builder callerDirect()
Alias for calling caller with
Caller.ofDirect().
-
programCaller
final BetaResponseFunctionToolCallOutputItem.Builder programCaller(String callerId)
Alias for calling caller with the following:
Caller.Program.builder() .callerId(callerId) .build()
-
createdBy
final BetaResponseFunctionToolCallOutputItem.Builder createdBy(String createdBy)
The identifier of the actor that created the item.
-
createdBy
final BetaResponseFunctionToolCallOutputItem.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseFunctionToolCallOutputItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseFunctionToolCallOutputItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseFunctionToolCallOutputItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseFunctionToolCallOutputItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseFunctionToolCallOutputItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseFunctionToolCallOutputItem build()
Returns an immutable instance of BetaResponseFunctionToolCallOutputItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .callId() .output() .status()
-
-
-
-