Class BetaResponseCustomToolCallOutput.Builder
-
- All Implemented Interfaces:
public final class BetaResponseCustomToolCallOutput.BuilderA builder for BetaResponseCustomToolCallOutput.
-
-
Method Summary
-
-
Method Detail
-
callId
final BetaResponseCustomToolCallOutput.Builder callId(String callId)
The call ID, used to map this custom tool call output to a custom tool call.
-
callId
final BetaResponseCustomToolCallOutput.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 BetaResponseCustomToolCallOutput.Builder output(BetaResponseCustomToolCallOutput.Output output)
The output from the custom tool call generated by your code. Can be a string or an list of output content.
-
output
final BetaResponseCustomToolCallOutput.Builder output(JsonField<BetaResponseCustomToolCallOutput.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 BetaResponseCustomToolCallOutput.Builder output(String string)
Alias for calling output with
Output.ofString(string).
-
outputOfContentList
final BetaResponseCustomToolCallOutput.Builder outputOfContentList(List<BetaResponseCustomToolCallOutput.Output.BetaFunctionAndCustomToolCallOutput> contentList)
Alias for calling output with
Output.ofContentList(contentList).
-
type
final BetaResponseCustomToolCallOutput.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("custom_tool_call_output")This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final BetaResponseCustomToolCallOutput.Builder id(String id)
The unique ID of the custom tool call output in the OpenAI platform.
-
id
final BetaResponseCustomToolCallOutput.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.
-
agent
final BetaResponseCustomToolCallOutput.Builder agent(BetaResponseCustomToolCallOutput.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseCustomToolCallOutput.Builder agent(Optional<BetaResponseCustomToolCallOutput.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseCustomToolCallOutput.Builder agent(JsonField<BetaResponseCustomToolCallOutput.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 BetaResponseCustomToolCallOutput.Builder caller(BetaResponseCustomToolCallOutput.Caller caller)
The execution context that produced this tool call.
-
caller
final BetaResponseCustomToolCallOutput.Builder caller(Optional<BetaResponseCustomToolCallOutput.Caller> caller)
Alias for calling Builder.caller with
caller.orElse(null).
-
caller
final BetaResponseCustomToolCallOutput.Builder caller(JsonField<BetaResponseCustomToolCallOutput.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 BetaResponseCustomToolCallOutput.Builder caller(BetaResponseCustomToolCallOutput.Caller.Program program)
Alias for calling caller with
Caller.ofProgram(program).
-
callerDirect
final BetaResponseCustomToolCallOutput.Builder callerDirect()
Alias for calling caller with
Caller.ofDirect().
-
programCaller
final BetaResponseCustomToolCallOutput.Builder programCaller(String callerId)
Alias for calling caller with the following:
Caller.Program.builder() .callerId(callerId) .build()
-
additionalProperties
final BetaResponseCustomToolCallOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseCustomToolCallOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseCustomToolCallOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseCustomToolCallOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseCustomToolCallOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseCustomToolCallOutput build()
Returns an immutable instance of BetaResponseCustomToolCallOutput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.callId() .output()
-
-
-
-