Skip to content

Commit cf0379d

Browse files
committed
fix: export ToolType from SDK index
Add ToolType enum export along with EnhancedTool and MaxToolRounds type exports to make them accessible from the main SDK entry point.
1 parent 4cd7a40 commit cf0379d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/sdk/sdk.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ import { Providers } from "./providers.js";
2020
import { callModel as callModelFunc } from "../funcs/callModel.js";
2121
import { ResponseWrapper } from "../lib/response-wrapper.js";
2222
import { RequestOptions } from "../lib/sdks.js";
23-
import { EnhancedTool, MaxToolRounds } from "../lib/tool-types.js";
23+
import { EnhancedTool, MaxToolRounds, ToolType } from "../lib/tool-types.js";
2424
import * as models from "../models/index.js";
25+
export { ToolType };
26+
export type { EnhancedTool, MaxToolRounds };
2527
// #endregion imports
2628

2729
export class OpenRouter extends ClientSDK {

tests/e2e/callModel.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ describe("callModel E2E Tests", () => {
6161

6262
expect(text).toBeDefined();
6363
expect(text.toLowerCase()).toContain("bob");
64+
console.log(text)
6465
});
6566
});
6667

0 commit comments

Comments
 (0)