modelfusion 0.20.0 → 0.20.1

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/README.md CHANGED
@@ -252,7 +252,7 @@ Text is generated as a fallback.
252
252
  ```ts
253
253
  const { tool, parameters, result, text } = await useToolOrGenerateText(
254
254
  new OpenAIChatModel({ model: "gpt-3.5-turbo" }),
255
- [calculator /* ... */],
255
+ [calculator /* and other tools... */],
256
256
  OpenAIChatFunctionPrompt.forToolsCurried([
257
257
  OpenAIChatMessage.user("What's fourteen times twelve?"),
258
258
  ])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modelfusion",
3
3
  "description": "Build AI applications, chatbots, and agents with JavaScript and TypeScript.",
4
- "version": "0.20.0",
4
+ "version": "0.20.1",
5
5
  "author": "Lars Grammel",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -1,4 +1,4 @@
1
- import { ExecuteToolFinishedEvent, ExecuteToolStartedEvent } from "tool/ExecuteToolEvent.js";
1
+ import { ExecuteToolFinishedEvent, ExecuteToolStartedEvent } from "../tool/ExecuteToolEvent.js";
2
2
  import { ModelCallFinishedEvent, ModelCallStartedEvent } from "../model-function/ModelCallEvent.js";
3
3
  import { IdMetadata } from "./IdMetadata.js";
4
4
  export type RunFunctionEvent = RunFunctionStartedEvent | RunFunctionFinishedEvent;
package/tool/index.cjs CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ExecuteToolEvent.cjs"), exports);
17
18
  __exportStar(require("./InvalidToolNameError.cjs"), exports);
18
19
  __exportStar(require("./NoSuchToolError.cjs"), exports);
19
20
  __exportStar(require("./Tool.cjs"), exports);
package/tool/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./ExecuteToolEvent.js";
1
2
  export * from "./InvalidToolNameError.js";
2
3
  export * from "./NoSuchToolError.js";
3
4
  export * from "./Tool.js";
package/tool/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./ExecuteToolEvent.js";
1
2
  export * from "./InvalidToolNameError.js";
2
3
  export * from "./NoSuchToolError.js";
3
4
  export * from "./Tool.js";