Class MCPServerToolResultStepResultUnion
java.lang.Object
com.google.genai.gaos.models.interactions.MCPServerToolResultStepResultUnion
MCPServerToolResultStepResultUnion
Required. The output from the MCP server call. Can be simple text or rich content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Method Summary
-
Method Details
-
of
-
of
-
of
-
arrayOfFunctionResultSubcontent
Returns anOptionalcontaining the value if it is of typeList<FunctionResultSubcontent>, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theList<FunctionResultSubcontent>value, or empty if not of this type
-
mcpServerToolResultStepResult
Returns anOptionalcontaining the value if it is of typeMCPServerToolResultStepResult, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theMCPServerToolResultStepResultvalue, or empty if not of this type
-
string
Returns anOptionalcontaining the value if it is of typeString, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theStringvalue, or empty if not of this type
-
asJson
Returns anOptionalcontaining the value as aJsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.- Returns:
- an
Optionalcontaining theJsonNodevalue, or empty if value matched a known type
-
equals
-
hashCode
public int hashCode() -
toString
-