Class ResponseInputItem.McpCall.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.McpCall.Builder
A builder for McpCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseInputItem.McpCall.Builder id(String id)
The unique ID of the tool call.
-
id
final ResponseInputItem.McpCall.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.
-
arguments
final ResponseInputItem.McpCall.Builder arguments(String arguments)
A JSON string of the arguments passed to the tool.
-
arguments
final ResponseInputItem.McpCall.Builder arguments(JsonField<String> arguments)
Sets Builder.arguments to an arbitrary JSON value.
You should usually call Builder.arguments with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ResponseInputItem.McpCall.Builder name(String name)
The name of the tool that was run.
-
name
final ResponseInputItem.McpCall.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serverLabel
final ResponseInputItem.McpCall.Builder serverLabel(String serverLabel)
The label of the MCP server running the tool.
-
serverLabel
final ResponseInputItem.McpCall.Builder serverLabel(JsonField<String> serverLabel)
Sets Builder.serverLabel to an arbitrary JSON value.
You should usually call Builder.serverLabel 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 ResponseInputItem.McpCall.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("mcp_call")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final ResponseInputItem.McpCall.Builder error(String error)
The error from the tool call, if any.
-
error
final ResponseInputItem.McpCall.Builder error(Optional<String> error)
Alias for calling Builder.error with
error.orElse(null)
.
-
error
final ResponseInputItem.McpCall.Builder error(JsonField<String> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error 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 ResponseInputItem.McpCall.Builder output(String output)
The output from the tool call.
-
output
final ResponseInputItem.McpCall.Builder output(Optional<String> output)
Alias for calling Builder.output with
output.orElse(null)
.
-
output
final ResponseInputItem.McpCall.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.
-
additionalProperties
final ResponseInputItem.McpCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.McpCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.McpCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.McpCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.McpCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.McpCall build()
Returns an immutable instance of McpCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .arguments() .name() .serverLabel()
-
-
-
-