fix assistant exports and tool calls
This commit is contained in:
1 parent
9c64f8772d
commit
443fbe0c36
13 files changed
+728
-29
No files matched your search
@@ -7,7 +7,7 @@ import { getCustomWidgetSkill } from "@homarr/custom-widgets/authoring-resources
|
||||
import { getCustomWidgetJsonSchema } from "@homarr/custom-widgets/core";
|
||||
|
||||
import { createCustomWidgetDynamicContextController } from "./custom-widget-authoring-context";
|
||||
import { repairCustomWidgetToolInput } from "./assistant-tool-input-repair";
|
||||
import { repairAssistantToolInput } from "./assistant-tool-input-repair";
|
||||
|
||||
const usage = {
|
||||
inputTokens: { total: 10, noCache: 10, cacheRead: 0, cacheWrite: 0 },
|
||||
@@ -217,7 +217,7 @@ describe("Custom Widget assistant tool loop", () => {
|
||||
execute,
|
||||
}),
|
||||
},
|
||||
experimental_repairToolCall: ({ toolCall }) => Promise.resolve(repairCustomWidgetToolInput(toolCall)),
|
||||
experimental_repairToolCall: ({ toolCall }) => Promise.resolve(repairAssistantToolInput(toolCall)),
|
||||
stopWhen: stepCountIs(2),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user