ToolCallDeltaEvent
public class ToolCallDeltaEvent extends AgentEvent
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:24–74工具调用增量事件,描述执行过程中的事件。位于 io.agentscope.core.event 包,继承自 AgentEvent。核心成员包括 getType、getReplyId、getToolCallId、getToolCallName、getDelta、ToolCallDeltaEvent。
Emitted as tool call input arguments are streamed incrementally.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ToolCallDeltaEvent(String id, String createdAt, String replyId, String toolCallId, String toolCallName, String delta) | 初始化 `ToolCallDeltaEvent` 实例。 Creates a new instance. |
public ToolCallDeltaEvent(String replyId, String toolCallId, String toolCallName, String delta) | 初始化 `ToolCallDeltaEvent` 实例。 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 String getDelta() | 获取增量。 Returns the delta. |
构造器详情Constructor Detail
ToolCallDeltaEvent
public ToolCallDeltaEvent(String id, String createdAt, String replyId, String toolCallId, String toolCallName, String delta)
初始化 ToolCallDeltaEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
createdAt | String | 已创建 At(类型 `String`)。The created at. |
replyId | String | 回复标识(类型 `String`)。The reply id. |
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolCallName | String | 工具调用名称(类型 `String`)。The tool call name. |
delta | String | 增量(类型 `String`)。The delta. |
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:31–44ToolCallDeltaEvent
public ToolCallDeltaEvent(String replyId, String toolCallId, String toolCallName, String delta)
初始化 ToolCallDeltaEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
replyId | String | 回复标识(类型 `String`)。The reply id. |
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
toolCallName | String | 工具调用名称(类型 `String`)。The tool call name. |
delta | String | 增量(类型 `String`)。The delta. |
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:46–52方法详情Method Detail
getType
public AgentEventType getType()
获取类型。
Returns the type.
AgentEventType返回AgentEventType。Returns agent event type.
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:54–57getReplyId
public String getReplyId()
获取回复标识。
Returns the reply id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:59–61getToolCallId
public String getToolCallId()
获取工具调用标识。
Returns the tool call id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:63–65getToolCallName
public String getToolCallName()
获取工具调用名称。
Returns the tool call name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:67–69getDelta
public String getDelta()
获取增量。
Returns the delta.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/ToolCallDeltaEvent.java:71–73