AS AgentScopeAPI 手册 / API Reference

ToolResultDataDeltaEvent

public class ToolResultDataDeltaEvent extends AgentEvent
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:23–88

工具结果数据增量事件,描述执行过程中的事件。位于 io.agentscope.core.event 包,继承自 AgentEvent。核心成员包括 getType、getReplyId、getToolCallId、getToolCallName、getData、ToolResultDataDeltaEvent。

A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs. Declared in io.agentscope.core.event. Extends AgentEvent.

构造器摘要Constructor Summary

构造器Constructor说明Description
public ToolResultDataDeltaEvent(String id, String createdAt, String replyId, String toolCallId, String toolCallName, ContentBlock data, Map<String, Object> metadata)
初始化 `ToolResultDataDeltaEvent` 实例。
Creates a new instance.
public ToolResultDataDeltaEvent(String id, String createdAt, String replyId, String toolCallId, String toolCallName, ContentBlock data)
初始化 `ToolResultDataDeltaEvent` 实例。
Backward-compatible constructor for callers that do not provide metadata.
public ToolResultDataDeltaEvent(String replyId, String toolCallId, String toolCallName, ContentBlock data)
初始化 `ToolResultDataDeltaEvent` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public AgentEventType getType()
获取类型。
Returns the type.
public String getReplyId()
获取回复标识。
Returns the reply id.
public String getToolCallId()
获取工具调用标识。
Returns the tool call id.
public String getToolCallName()
获取工具调用名称。
Returns the tool call name.
public ContentBlock getData()
获取数据。
Returns the data.

构造器详情Constructor Detail

ToolResultDataDeltaEvent

public ToolResultDataDeltaEvent(String id, String createdAt, String replyId, String toolCallId, String toolCallName, ContentBlock data, Map<String, Object> metadata)

初始化 ToolResultDataDeltaEvent 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
createdAtString已创建 At(类型 `String`)。The created at.
replyIdString回复标识(类型 `String`)。The reply id.
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
toolCallNameString工具调用名称(类型 `String`)。The tool call name.
dataContentBlock数据(类型 `ContentBlock`)。The data.
metadataMap<String, Object>元数据(类型 `Map`)。The metadata.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:30–45

ToolResultDataDeltaEvent

public ToolResultDataDeltaEvent(String id, String createdAt, String replyId, String toolCallId, String toolCallName, ContentBlock data)

初始化 ToolResultDataDeltaEvent 实例。

Backward-compatible constructor for callers that do not provide metadata.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
createdAtString已创建 At(类型 `String`)。The created at.
replyIdString回复标识(类型 `String`)。The reply id.
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
toolCallNameString工具调用名称(类型 `String`)。The tool call name.
dataContentBlock数据(类型 `ContentBlock`)。The data.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:50–58

ToolResultDataDeltaEvent

public ToolResultDataDeltaEvent(String replyId, String toolCallId, String toolCallName, ContentBlock data)

初始化 ToolResultDataDeltaEvent 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
replyIdString回复标识(类型 `String`)。The reply id.
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
toolCallNameString工具调用名称(类型 `String`)。The tool call name.
dataContentBlock数据(类型 `ContentBlock`)。The data.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:60–66

方法详情Method Detail

getType

public AgentEventType getType()

获取类型。

Returns the type.

返回Returns AgentEventType
返回AgentEventType。Returns agent event type.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:68–71

getReplyId

public String getReplyId()

获取回复标识。

Returns the reply id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:73–75

getToolCallId

public String getToolCallId()

获取工具调用标识。

Returns the tool call id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:77–79

getToolCallName

public String getToolCallName()

获取工具调用名称。

Returns the tool call name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:81–83

getData

public ContentBlock getData()

获取数据。

Returns the data.

返回Returns ContentBlock
返回ContentBlock。Returns content block.
源码Source io/agentscope/core/event/ToolResultDataDeltaEvent.java:85–87

继承成员Inherited Members

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.