PreviewIds
public static final class PreviewIds
io/agentscope/builder/web/managed/SessionEventMapper.java:297–413预览 Ids,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed 包。核心成员包括 messageEventId、consumeMessageEventId、thinkingEventId、toolUseEventId、beginToolUse、appendToolInput。
Allocates stable preview / persist event ids for a turn and accumulates tool buffers.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String messageEventId() | 返回消息事件标识。 Returns the message event id. |
public String consumeMessageEventId() | 返回消费消息事件标识。 Returns and clears the in-flight message preview id (null when no deltas streamed). |
public String thinkingEventId() | 返回 `thinkingEventId` 结果。 Returns the thinking event id. |
public String toolUseEventId(String toolCallId) | 设置工具使用事件标识。 Performs the tool use event id operation. |
public ToolBuffers.ToolUseBuffer beginToolUse(String toolCallId, String toolName) | 执行 `beginToolUse` 方法。 Performs the begin tool use operation. |
public void appendToolInput(String toolCallId, String toolName, String delta) | 追加工具输入。 Performs the append tool input operation. |
public ToolBuffers.ToolUseBuffer finishToolUse(String toolCallId, String toolName) | 执行 `finishToolUse` 方法。 Performs the finish tool use operation. |
public void appendToolResultText(String toolCallId, String toolName, String delta) | 追加工具结果文本。 Performs the append tool result text operation. |
public ToolBuffers.ToolResultBuffer finishToolResult(String toolCallId, String toolName) | 执行 `finishToolResult` 方法。 Performs the finish tool result operation. |
public void resetMessage() | 重置消息。 Resets the message. |
public void resetThinking() | 重置 `resetThinking`。 Resets the thinking. |
public void appendThinking(String delta) | 追加 `appendThinking`。 Performs the append thinking operation. |
public Optional<PersistedEvent> consumeThinking() | 返回 `consumeThinking` 结果。 Returns the consume thinking. |
方法详情Method Detail
messageEventId
public String messageEventId()
返回消息事件标识。
Returns the message event id.
Stringio/agentscope/builder/web/managed/SessionEventMapper.java:305–310consumeMessageEventId
public String consumeMessageEventId()
返回消费消息事件标识。
Returns and clears the in-flight message preview id (null when no deltas streamed).
Stringio/agentscope/builder/web/managed/SessionEventMapper.java:313–317thinkingEventId
public String thinkingEventId()
返回 thinkingEventId 结果。
Returns the thinking event id.
Stringio/agentscope/builder/web/managed/SessionEventMapper.java:319–324toolUseEventId
public String toolUseEventId(String toolCallId)
设置工具使用事件标识。
Performs the tool use event id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
Stringio/agentscope/builder/web/managed/SessionEventMapper.java:326–328beginToolUse
public ToolBuffers.ToolUseBuffer beginToolUse(String toolCallId, String toolName)
执行 beginToolUse 方法。
Performs the begin tool use operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolName | String | 工具名称(类型 `String`)。The tool name. |
ToolBuffers.ToolUseBufferio/agentscope/builder/web/managed/SessionEventMapper.java:330–334appendToolInput
public void appendToolInput(String toolCallId, String toolName, String delta)
追加工具输入。
Performs the append tool input operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolName | String | 工具名称(类型 `String`)。The tool name. |
delta | String | 增量(类型 `String`)。The delta. |
io/agentscope/builder/web/managed/SessionEventMapper.java:336–342finishToolUse
public ToolBuffers.ToolUseBuffer finishToolUse(String toolCallId, String toolName)
执行 finishToolUse 方法。
Performs the finish tool use operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolName | String | 工具名称(类型 `String`)。The tool name. |
ToolBuffers.ToolUseBufferio/agentscope/builder/web/managed/SessionEventMapper.java:344–351appendToolResultText
public void appendToolResultText(String toolCallId, String toolName, String delta)
追加工具结果文本。
Performs the append tool result text operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolName | String | 工具名称(类型 `String`)。The tool name. |
delta | String | 增量(类型 `String`)。The delta. |
io/agentscope/builder/web/managed/SessionEventMapper.java:353–362finishToolResult
public ToolBuffers.ToolResultBuffer finishToolResult(String toolCallId, String toolName)
执行 finishToolResult 方法。
Performs the finish tool result operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolName | String | 工具名称(类型 `String`)。The tool name. |
ToolBuffers.ToolResultBufferio/agentscope/builder/web/managed/SessionEventMapper.java:364–374resetMessage
public void resetMessage()
重置消息。
Resets the message.
io/agentscope/builder/web/managed/SessionEventMapper.java:376–378resetThinking
public void resetThinking()
重置 resetThinking。
Resets the thinking.
io/agentscope/builder/web/managed/SessionEventMapper.java:380–384appendThinking
public void appendThinking(String delta)
追加 appendThinking。
Performs the append thinking operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
delta | String | 增量(类型 `String`)。The delta. |
io/agentscope/builder/web/managed/SessionEventMapper.java:386–390consumeThinking
public Optional<PersistedEvent> consumeThinking()
返回 consumeThinking 结果。
Returns the consume thinking.
Optional<PersistedEvent>io/agentscope/builder/web/managed/SessionEventMapper.java:392–404