@hatchet-dev/typescript-sdk 1.22.2 → 1.22.3
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/package.json +1 -1
- package/v1/agent/openai.js +4 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
package/v1/agent/openai.js
CHANGED
|
@@ -49,8 +49,11 @@ const OpenAIToolFunc = (runnable) => {
|
|
|
49
49
|
// z is imported from 'zod', so '_zod' in z.string() reflects the user's actual installed version.
|
|
50
50
|
const hasZodV4 = '_zod' in z.string();
|
|
51
51
|
let hasOpenAIAgents = true;
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
|
+
let tool;
|
|
52
54
|
try {
|
|
53
|
-
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
56
|
+
({ tool } = require('@openai/agents'));
|
|
54
57
|
}
|
|
55
58
|
catch (_a) {
|
|
56
59
|
hasOpenAIAgents = false;
|
|
@@ -61,8 +64,6 @@ const OpenAIToolFunc = (runnable) => {
|
|
|
61
64
|
if (!runnable.definition.inputValidator) {
|
|
62
65
|
throw new Error('inputValidator must be defined');
|
|
63
66
|
}
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
65
|
-
const { tool } = require('@openai/agents');
|
|
66
67
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
68
|
const inputValidatorV4 = runnable.definition.inputValidator;
|
|
68
69
|
const { description } = runnable.definition;
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.22.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.22.3";
|
package/version.js
CHANGED