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 +1 -1
- package/package.json +1 -1
- package/run/RunFunctionEvent.d.ts +1 -1
- package/tool/index.cjs +1 -0
- package/tool/index.d.ts +1 -0
- package/tool/index.js +1 -0
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,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
package/tool/index.js
CHANGED