@jarvis-agent/core 0.2.4 → 0.2.5

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.
package/dist/index.esm.js CHANGED
@@ -44165,13 +44165,19 @@ async function callChatLLM(chatId, messageId, rlm, messages, tools, toolChoice,
44165
44165
  });
44166
44166
  }
44167
44167
  function convertAssistantToolResults(results) {
44168
- return results.filter((part) => part.type !== "reasoning").map((part) => {
44168
+ return results.map((part) => {
44169
44169
  if (part.type == "text") {
44170
44170
  return {
44171
44171
  type: "text",
44172
44172
  text: part.text,
44173
44173
  };
44174
44174
  }
44175
+ else if (part.type == "reasoning") {
44176
+ return {
44177
+ type: "reasoning",
44178
+ text: part.text,
44179
+ };
44180
+ }
44175
44181
  else if (part.type == "tool-call") {
44176
44182
  return {
44177
44183
  type: "tool-call",