@axiom-lattice/core 1.0.21 → 1.0.23

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.mjs CHANGED
@@ -844,6 +844,11 @@ Results are returned using cat -n format, with line numbers starting at 1
844
844
  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.
845
845
  If you read a file that exists but has empty contents you will receive a system reminder warning in place of file contents.`;
846
846
 
847
+ // src/util/genUIMarkdown.ts
848
+ var genUIMarkdown = (type, data) => {
849
+ return ["```" + type, JSON.stringify(data), "```"].join("\n");
850
+ };
851
+
847
852
  // src/deep_agent/tools.ts
848
853
  var writeTodos = tool2(
849
854
  (input, config) => {
@@ -852,7 +857,7 @@ var writeTodos = tool2(
852
857
  todos: input.todos,
853
858
  messages: [
854
859
  new ToolMessage({
855
- content: `Updated todo list to ${JSON.stringify(input.todos)}`,
860
+ content: genUIMarkdown("todo_list", input.todos),
856
861
  tool_call_id: config.toolCall?.id
857
862
  })
858
863
  ]
@@ -1471,13 +1476,6 @@ var Logger = class _Logger {
1471
1476
  // src/util/returnToolResponse.ts
1472
1477
  import { ToolMessage as ToolMessage3 } from "@langchain/core/messages";
1473
1478
  import { v4 } from "uuid";
1474
-
1475
- // src/util/genUIMarkdown.ts
1476
- var genUIMarkdown = (type, data) => {
1477
- return ["```" + type, JSON.stringify(data), "```"].join("\n");
1478
- };
1479
-
1480
- // src/util/returnToolResponse.ts
1481
1479
  var returnToolResponse = (config, think) => {
1482
1480
  const { think_id = v4(), content, title, status, type, data } = think;
1483
1481
  const contents = type ? [title, content, genUIMarkdown(type, data)] : [title, content];