Package com.anthropic.models.messages
Class WebFetchToolResultBlock.Content
-
- All Implemented Interfaces:
public final class WebFetchToolResultBlock.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWebFetchToolResultBlock.Content.VisitorAn interface that defines how to map each variant of Content to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<WebFetchToolResultErrorBlock>webFetchToolResultErrorBlock()final Optional<WebFetchBlock>webFetchBlock()final BooleanisWebFetchToolResultErrorBlock()final BooleanisWebFetchBlock()final WebFetchToolResultErrorBlockasWebFetchToolResultErrorBlock()final WebFetchBlockasWebFetchBlock()final Optional<JsonValue>_json()final <T extends Any> Taccept(WebFetchToolResultBlock.Content.Visitor<T> visitor)final WebFetchToolResultBlock.Contentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebFetchToolResultBlock.ContentofWebFetchToolResultErrorBlock(WebFetchToolResultErrorBlock webFetchToolResultErrorBlock)final static WebFetchToolResultBlock.ContentofWebFetchBlock(WebFetchBlock webFetchBlock)-
-
Method Detail
-
webFetchToolResultErrorBlock
final Optional<WebFetchToolResultErrorBlock> webFetchToolResultErrorBlock()
-
webFetchBlock
final Optional<WebFetchBlock> webFetchBlock()
-
isWebFetchToolResultErrorBlock
final Boolean isWebFetchToolResultErrorBlock()
-
isWebFetchBlock
final Boolean isWebFetchBlock()
-
asWebFetchToolResultErrorBlock
final WebFetchToolResultErrorBlock asWebFetchToolResultErrorBlock()
-
asWebFetchBlock
final WebFetchBlock asWebFetchBlock()
-
accept
final <T extends Any> T accept(WebFetchToolResultBlock.Content.Visitor<T> visitor)
-
validate
final WebFetchToolResultBlock.Content validate()
-
ofWebFetchToolResultErrorBlock
final static WebFetchToolResultBlock.Content ofWebFetchToolResultErrorBlock(WebFetchToolResultErrorBlock webFetchToolResultErrorBlock)
-
ofWebFetchBlock
final static WebFetchToolResultBlock.Content ofWebFetchBlock(WebFetchBlock webFetchBlock)
-
-
-
-