Class MCPServerToolResultStep
java.lang.Object
com.google.genai.gaos.models.interactions.MCPServerToolResultStep
- All Implemented Interfaces:
Step
MCPServerToolResultStep
MCPServer tool result step.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMCPServerToolResultStep(String callId, MCPServerToolResultStepResultUnion result) MCPServerToolResultStep(String callId, String name, MCPServerToolResultStepResultUnion result, String serverName) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()callId()Required.booleaninthashCode()name()Name of the tool which is called for this specific tool call.result()Required.The name of the used MCP server.toString()type()withCallId(String callId) Required.Name of the tool which is called for this specific tool call.Required.withServerName(String serverName) The name of the used MCP server.
-
Constructor Details
-
MCPServerToolResultStep
public MCPServerToolResultStep(@Nonnull String callId, @Nullable String name, @Nonnull MCPServerToolResultStepResultUnion result, @Nullable String serverName) -
MCPServerToolResultStep
public MCPServerToolResultStep(@Nonnull String callId, @Nonnull MCPServerToolResultStepResultUnion result)
-
-
Method Details
-
callId
Required. ID to match the ID from the function call block. -
name
Name of the tool which is called for this specific tool call. -
result
Required. The output from the MCP server call. Can be simple text or rich content. -
serverName
The name of the used MCP server. -
type
-
builder
-
withCallId
Required. ID to match the ID from the function call block. -
withName
Name of the tool which is called for this specific tool call. -
withResult
Required. The output from the MCP server call. Can be simple text or rich content. -
withServerName
The name of the used MCP server. -
equals
-
hashCode
public int hashCode() -
toString
-