Class AnthropicApi.ToolUseAggregationEvent
java.lang.Object
org.springframework.ai.anthropic.api.AnthropicApi.ToolUseAggregationEvent
- All Implemented Interfaces:
AnthropicApi.StreamEvent
- Enclosing class:
- AnthropicApi
public static class AnthropicApi.ToolUseAggregationEvent
extends Object
implements AnthropicApi.StreamEvent
Special event used to aggregate multiple tool use events into a single event with
list of aggregated ContentBlockToolUse.
-
Constructor Details
-
ToolUseAggregationEvent
public ToolUseAggregationEvent()
-
-
Method Details
-
type
- Specified by:
type
in interfaceAnthropicApi.StreamEvent
-
getToolContentBlocks
Get tool content blocks.- Returns:
- The tool content blocks.
-
isEmpty
public boolean isEmpty()Check if the event is empty.- Returns:
- True if the event is empty, false otherwise.
-
toString
-