Builder

public final class Builder

A builder for McpServerToolResultStep.

Functions

Link copied to clipboard
public final McpServerToolResultStep.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
Link copied to clipboard

Returns an immutable instance of McpServerToolResultStep.

Link copied to clipboard
public final McpServerToolResultStep.Builder callId(JsonField<String> callId)

Sets Builder.callId to an arbitrary JSON value.

Required. ID to match the ID from the function call block.

Link copied to clipboard
public final McpServerToolResultStep.Builder name(JsonField<String> name)

Sets Builder.name to an arbitrary JSON value.

Name of the tool which is called for this specific tool call.

Link copied to clipboard
public final McpServerToolResultStep.Builder putAdditionalProperty(String key, JsonValue value)
Link copied to clipboard
public final McpServerToolResultStep.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
Link copied to clipboard

Sets Builder.result to an arbitrary JSON value.

public final McpServerToolResultStep.Builder result(JsonValue jsonValue)

Alias for calling result with Result.ofJsonValue(jsonValue).

The output from the MCP server call. Can be simple text or rich content.

Alias for calling result with Result.ofString(string).

Link copied to clipboard

Alias for calling result with Result.ofFunctionResultSubcontentList(functionResultSubcontentList).

Link copied to clipboard
public final McpServerToolResultStep.Builder serverName(JsonField<String> serverName)

Sets Builder.serverName to an arbitrary JSON value.

The name of the used MCP server.

Link copied to clipboard
public final McpServerToolResultStep.Builder signature(JsonField<String> signature)

Sets Builder.signature to an arbitrary JSON value.

A signature hash for backend validation.

Link copied to clipboard
public final McpServerToolResultStep.Builder type(JsonValue type)

Sets the field to an arbitrary JSON value.