Package com.anthropic.models.messages
Class RawContentBlockStartEvent.ContentBlock
-
- All Implemented Interfaces:
public final class RawContentBlockStartEvent.ContentBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRawContentBlockStartEvent.ContentBlock.VisitorAn interface that defines how to map each variant of ContentBlock to a value of type T.
-
Method Summary
-
-
Method Detail
-
toolUse
final Optional<ToolUseBlock> toolUse()
-
serverToolUse
final Optional<ServerToolUseBlock> serverToolUse()
-
webSearchToolResult
final Optional<WebSearchToolResultBlock> webSearchToolResult()
-
thinking
final Optional<ThinkingBlock> thinking()
-
redactedThinking
final Optional<RedactedThinkingBlock> redactedThinking()
-
isServerToolUse
final Boolean isServerToolUse()
-
isWebSearchToolResult
final Boolean isWebSearchToolResult()
-
isThinking
final Boolean isThinking()
-
isRedactedThinking
final Boolean isRedactedThinking()
-
asToolUse
final ToolUseBlock asToolUse()
-
asServerToolUse
final ServerToolUseBlock asServerToolUse()
-
asWebSearchToolResult
final WebSearchToolResultBlock asWebSearchToolResult()
-
asThinking
final ThinkingBlock asThinking()
-
asRedactedThinking
final RedactedThinkingBlock asRedactedThinking()
-
accept
final <T extends Any> T accept(RawContentBlockStartEvent.ContentBlock.Visitor<T> visitor)
-
validate
final RawContentBlockStartEvent.ContentBlock validate()
-
ofText
final static RawContentBlockStartEvent.ContentBlock ofText(TextBlock text)
-
ofToolUse
final static RawContentBlockStartEvent.ContentBlock ofToolUse(ToolUseBlock toolUse)
-
ofServerToolUse
final static RawContentBlockStartEvent.ContentBlock ofServerToolUse(ServerToolUseBlock serverToolUse)
-
ofWebSearchToolResult
final static RawContentBlockStartEvent.ContentBlock ofWebSearchToolResult(WebSearchToolResultBlock webSearchToolResult)
-
ofThinking
final static RawContentBlockStartEvent.ContentBlock ofThinking(ThinkingBlock thinking)
-
ofRedactedThinking
final static RawContentBlockStartEvent.ContentBlock ofRedactedThinking(RedactedThinkingBlock redactedThinking)
-
-
-
-