ReasoningPart
@JsonClassDescription("Text part") @JsonInclude(JsonInclude.Include.NON_NULL) public class ReasoningPart implements MessagePart
源码Source
io/agentscope/core/tracing/telemetry/model/ReasoningPart.java:25–54表示文本内容已发送到或已接收来自模型。位于 io.agentscope.core.tracing.telemetry.model 包,实现 MessagePart。核心成员包括 getType、getContent、create。
Represents text content sent to or received from the model.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getType() | 获取类型。 Returns the type. |
public String getContent() | 获取内容。 Returns the content. |
public static ReasoningPart create(String content)static | 创建并返回实例。 Creates and returns an instance. |
方法详情Method Detail
getType
public String getType()
获取类型。
Returns the type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/ReasoningPart.java:33–38getContent
public String getContent()
获取内容。
Returns the content.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/ReasoningPart.java:40–44create
public static ReasoningPart create(String content)
static
创建并返回实例。
Creates and returns an instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | String | 内容(类型 `String`)。The content. |
ReasoningPart返回ReasoningPart。Returns reasoning part.
源码Source
io/agentscope/core/tracing/telemetry/model/ReasoningPart.java:46–48