Enum Class AnthropicApi.ContentBlock.Type
java.lang.Object
java.lang.Enum<AnthropicApi.ContentBlock.Type>
org.springframework.ai.anthropic.api.AnthropicApi.ContentBlock.Type
- All Implemented Interfaces:
Serializable, Comparable<AnthropicApi.ContentBlock.Type>, Constable
- Enclosing class:
AnthropicApi.ContentBlock
The ContentBlock type.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Mariusz Bernacki, Thomas Vitale, Jihoon Kim, Alexandros Pappas, Jonghoon Park, Claudio Silva Junior, Filip Hrisafov, Soby Chacko, Austin Dase
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBash code execution tool result returned in Skills responses.Document message.File content block representing a file generated by Skills.Image message.Tool use input partial JSON delta streaming.Redacted Thinking message.Server-side tool use returned in Skills responses.For thinking content, a special signature_delta event is sent just before the content_block_stop event.Text message.Text delta message.Text editor code execution tool result returned in Skills responses.Thinking message.When using extended thinking with streaming enabled, you'll receive thinking content via thinking_delta events.Send tool result back to LLM.Tool request -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Get the value of the type.Returns the enum constant of this class with the specified name.static AnthropicApi.ContentBlock.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOOL_USE
Tool request -
TOOL_RESULT
Send tool result back to LLM. -
TEXT
Text message. -
TEXT_DELTA
Text delta message. Returned from the streaming response. -
THINKING_DELTA
When using extended thinking with streaming enabled, you'll receive thinking content via thinking_delta events. These deltas correspond to the thinking field of the thinking content blocks. -
SIGNATURE_DELTA
For thinking content, a special signature_delta event is sent just before the content_block_stop event. This signature is used to verify the integrity of the thinking block. -
INPUT_JSON_DELTA
Tool use input partial JSON delta streaming. -
IMAGE
Image message. -
DOCUMENT
Document message. -
THINKING
Thinking message. -
REDACTED_THINKING
Redacted Thinking message. -
FILE
File content block representing a file generated by Skills. Used inAnthropicSkillsResponseHelperto extract file IDs for downloading generated documents. -
BASH_CODE_EXECUTION_TOOL_RESULT
Bash code execution tool result returned in Skills responses. Observed in actual API responses where file IDs are nested within this content block. Required for JSON deserialization. -
TEXT_EDITOR_CODE_EXECUTION_TOOL_RESULT
Text editor code execution tool result returned in Skills responses. Observed in actual API responses. Required for JSON deserialization. -
SERVER_TOOL_USE
Server-side tool use returned in Skills responses. Observed in actual API responses when Skills invoke server-side tools. Required for JSON deserialization.
-
-
Field Details
-
value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-