Package org.springframework.ai.deepseek
Class DeepSeekAssistantMessage
java.lang.Object
org.springframework.ai.chat.messages.AbstractMessage
org.springframework.ai.chat.messages.AssistantMessage
org.springframework.ai.deepseek.DeepSeekAssistantMessage
- All Implemented Interfaces:
Message,Content,MediaContent
DeepSeek-specific
AssistantMessage that extends the standard assistant message
with DeepSeek reasoning model capabilities.
In addition to the regular assistant content, DeepSeek reasoning models (such as
deepseek-reasoner) may emit a reasoning content
that exposes the model's chain-of-thought, and a prefix flag that
indicates whether the provided content should be treated as a completion prefix.
- Author:
- Mark Pollack, Soby Chacko, Sun Yuhan, guan xu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.springframework.ai.chat.messages.AssistantMessage
AssistantMessage.ToolCall -
Field Summary
Fields inherited from class org.springframework.ai.chat.messages.AssistantMessage
mediaFields inherited from class org.springframework.ai.chat.messages.AbstractMessage
MESSAGE_TYPE, messageType, metadata, textContent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()boolean@Nullable Boolean@Nullable StringinthashCode()mutate()static DeepSeekAssistantMessageprefixAssistantMessage(@Nullable String content) Deprecated, for removal: This API element is subject to removal in a future version.static DeepSeekAssistantMessageprefixAssistantMessage(@Nullable String content, @Nullable String reasoningContent) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidsetReasoningContent(@Nullable String reasoningContent) toString()Methods inherited from class org.springframework.ai.chat.messages.AssistantMessage
copy, getMedia, getToolCalls, hasToolCallsMethods inherited from class org.springframework.ai.chat.messages.AbstractMessage
getMessageType, getMetadata, getTextMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.ai.content.Content
getMetadata, getText
-
Constructor Details
-
DeepSeekAssistantMessage
-
-
Method Details
-
prefixAssistantMessage
@Deprecated(forRemoval=true, since="2.0.0") public static DeepSeekAssistantMessage prefixAssistantMessage(@Nullable String content) Deprecated, for removal: This API element is subject to removal in a future version. -
prefixAssistantMessage
@Deprecated(forRemoval=true, since="2.0.0") public static DeepSeekAssistantMessage prefixAssistantMessage(@Nullable String content, @Nullable String reasoningContent) Deprecated, for removal: This API element is subject to removal in a future version. -
getPrefix
-
setPrefix
-
getReasoningContent
-
setReasoningContent
-
mutate
- Overrides:
mutatein classAssistantMessage
-
equals
- Overrides:
equalsin classAssistantMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classAssistantMessage
-
toString
- Overrides:
toStringin classAssistantMessage
-
builder
-