@axiom-lattice/core 1.0.22 → 1.0.24

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.js CHANGED
@@ -886,6 +886,11 @@ Results are returned using cat -n format, with line numbers starting at 1
886
886
  You have the capability to call multiple tools in a single response. It is always better to speculatively read multiple files as a batch that are potentially useful.
887
887
  If you read a file that exists but has empty contents you will receive a system reminder warning in place of file contents.`;
888
888
 
889
+ // src/util/genUIMarkdown.ts
890
+ var genUIMarkdown = (type, data) => {
891
+ return ["```" + type, JSON.stringify(data), "```"].join("\n");
892
+ };
893
+
889
894
  // src/deep_agent/tools.ts
890
895
  var writeTodos = (0, import_tools2.tool)(
891
896
  (input, config) => {
@@ -894,7 +899,7 @@ var writeTodos = (0, import_tools2.tool)(
894
899
  todos: input.todos,
895
900
  messages: [
896
901
  new import_messages.ToolMessage({
897
- content: `Updated todo list to ${JSON.stringify(input.todos)}`,
902
+ content: genUIMarkdown("todo_list", input.todos),
898
903
  tool_call_id: config.toolCall?.id
899
904
  })
900
905
  ]
@@ -1504,13 +1509,6 @@ var Logger = class _Logger {
1504
1509
  // src/util/returnToolResponse.ts
1505
1510
  var import_messages3 = require("@langchain/core/messages");
1506
1511
  var import_uuid = require("uuid");
1507
-
1508
- // src/util/genUIMarkdown.ts
1509
- var genUIMarkdown = (type, data) => {
1510
- return ["```" + type, JSON.stringify(data), "```"].join("\n");
1511
- };
1512
-
1513
- // src/util/returnToolResponse.ts
1514
1512
  var returnToolResponse = (config, think) => {
1515
1513
  const { think_id = (0, import_uuid.v4)(), content, title, status, type, data } = think;
1516
1514
  const contents = type ? [title, content, genUIMarkdown(type, data)] : [title, content];