@agentscope-ai/chat 1.1.64 → 1.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,6 +61,7 @@ class AgentScopeRuntimeResponseBuilder {
61
61
  return [
62
62
  AgentScopeRuntimeMessageType.FUNCTION_CALL_OUTPUT,
63
63
  AgentScopeRuntimeMessageType.PLUGIN_CALL_OUTPUT,
64
+ AgentScopeRuntimeMessageType.TOOL_CALL_OUTPUT,
64
65
  AgentScopeRuntimeMessageType.COMPONENT_CALL_OUTPUT,
65
66
  AgentScopeRuntimeMessageType.MCP_CALL_OUTPUT,
66
67
  ].includes(message.type);
@@ -70,6 +71,7 @@ class AgentScopeRuntimeResponseBuilder {
70
71
  return [
71
72
  AgentScopeRuntimeMessageType.FUNCTION_CALL,
72
73
  AgentScopeRuntimeMessageType.PLUGIN_CALL,
74
+ AgentScopeRuntimeMessageType.TOOL_CALL,
73
75
  AgentScopeRuntimeMessageType.COMPONENT_CALL,
74
76
  AgentScopeRuntimeMessageType.MCP_CALL,
75
77
  ].includes(message.type);
@@ -36,6 +36,8 @@ export default function AgentScopeRuntimeResponseCard(props: {
36
36
  return <Message key={item.id} data={item} />
37
37
  case AgentScopeRuntimeMessageType.PLUGIN_CALL:
38
38
  case AgentScopeRuntimeMessageType.PLUGIN_CALL_OUTPUT:
39
+ case AgentScopeRuntimeMessageType.TOOL_CALL:
40
+ case AgentScopeRuntimeMessageType.TOOL_CALL_OUTPUT:
39
41
  case AgentScopeRuntimeMessageType.MCP_CALL:
40
42
  case AgentScopeRuntimeMessageType.MCP_CALL_OUTPUT:
41
43
  return <Tool key={item.id} data={item} />
@@ -19,6 +19,8 @@ export enum AgentScopeRuntimeMessageType {
19
19
  REASONING = "reasoning",
20
20
  PLUGIN_CALL = "plugin_call",
21
21
  PLUGIN_CALL_OUTPUT = "plugin_call_output",
22
+ TOOL_CALL = "tool_call",
23
+ TOOL_CALL_OUTPUT = "tool_call_output",
22
24
  FUNCTION_CALL = "function_call",
23
25
  FUNCTION_CALL_OUTPUT = "function_call_output",
24
26
  COMPONENT_CALL = "component_call",
@@ -201,12 +201,12 @@ var AgentScopeRuntimeResponseBuilder = /*#__PURE__*/function () {
201
201
  }, {
202
202
  key: "maybeToolOutput",
203
203
  value: function maybeToolOutput(message) {
204
- return [AgentScopeRuntimeMessageType.FUNCTION_CALL_OUTPUT, AgentScopeRuntimeMessageType.PLUGIN_CALL_OUTPUT, AgentScopeRuntimeMessageType.COMPONENT_CALL_OUTPUT, AgentScopeRuntimeMessageType.MCP_CALL_OUTPUT].includes(message.type);
204
+ return [AgentScopeRuntimeMessageType.FUNCTION_CALL_OUTPUT, AgentScopeRuntimeMessageType.PLUGIN_CALL_OUTPUT, AgentScopeRuntimeMessageType.TOOL_CALL_OUTPUT, AgentScopeRuntimeMessageType.COMPONENT_CALL_OUTPUT, AgentScopeRuntimeMessageType.MCP_CALL_OUTPUT].includes(message.type);
205
205
  }
206
206
  }, {
207
207
  key: "maybeToolInput",
208
208
  value: function maybeToolInput(message) {
209
- return [AgentScopeRuntimeMessageType.FUNCTION_CALL, AgentScopeRuntimeMessageType.PLUGIN_CALL, AgentScopeRuntimeMessageType.COMPONENT_CALL, AgentScopeRuntimeMessageType.MCP_CALL].includes(message.type);
209
+ return [AgentScopeRuntimeMessageType.FUNCTION_CALL, AgentScopeRuntimeMessageType.PLUGIN_CALL, AgentScopeRuntimeMessageType.TOOL_CALL, AgentScopeRuntimeMessageType.COMPONENT_CALL, AgentScopeRuntimeMessageType.MCP_CALL].includes(message.type);
210
210
  }
211
211
  }, {
212
212
  key: "maybeGenerating",
@@ -49,6 +49,8 @@ export default function AgentScopeRuntimeResponseCard(props) {
49
49
  }, item.id);
50
50
  case AgentScopeRuntimeMessageType.PLUGIN_CALL:
51
51
  case AgentScopeRuntimeMessageType.PLUGIN_CALL_OUTPUT:
52
+ case AgentScopeRuntimeMessageType.TOOL_CALL:
53
+ case AgentScopeRuntimeMessageType.TOOL_CALL_OUTPUT:
52
54
  case AgentScopeRuntimeMessageType.MCP_CALL:
53
55
  case AgentScopeRuntimeMessageType.MCP_CALL_OUTPUT:
54
56
  return /*#__PURE__*/_jsx(Tool, {
@@ -17,6 +17,8 @@ export declare enum AgentScopeRuntimeMessageType {
17
17
  REASONING = "reasoning",
18
18
  PLUGIN_CALL = "plugin_call",
19
19
  PLUGIN_CALL_OUTPUT = "plugin_call_output",
20
+ TOOL_CALL = "tool_call",
21
+ TOOL_CALL_OUTPUT = "tool_call_output",
20
22
  FUNCTION_CALL = "function_call",
21
23
  FUNCTION_CALL_OUTPUT = "function_call_output",
22
24
  COMPONENT_CALL = "component_call",
@@ -19,6 +19,8 @@ export var AgentScopeRuntimeMessageType = /*#__PURE__*/function (AgentScopeRunti
19
19
  AgentScopeRuntimeMessageType["REASONING"] = "reasoning";
20
20
  AgentScopeRuntimeMessageType["PLUGIN_CALL"] = "plugin_call";
21
21
  AgentScopeRuntimeMessageType["PLUGIN_CALL_OUTPUT"] = "plugin_call_output";
22
+ AgentScopeRuntimeMessageType["TOOL_CALL"] = "tool_call";
23
+ AgentScopeRuntimeMessageType["TOOL_CALL_OUTPUT"] = "tool_call_output";
22
24
  AgentScopeRuntimeMessageType["FUNCTION_CALL"] = "function_call";
23
25
  AgentScopeRuntimeMessageType["FUNCTION_CALL_OUTPUT"] = "function_call_output";
24
26
  AgentScopeRuntimeMessageType["COMPONENT_CALL"] = "component_call";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.64",
3
+ "version": "1.1.65",
4
4
  "description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [