Skip to content

Commit f7ba581

Browse files
Merge pull request #9 from restackio/aiSdk
move to ai sdk
2 parents cc45342 + 6f32908 commit f7ba581

37 files changed

+2392
-682
lines changed

examples/get-started/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
},
1919
"dependencies": {
20-
"@restackio/restack-sdk-ts": "^0.0.73",
20+
"@restackio/ai": "^0.0.75",
2121
"@temporalio/workflow": "^1.11.2"
2222
},
2323
"devDependencies": {

examples/get-started/pnpm-lock.yaml

Lines changed: 1817 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/get-started/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import Restack from "@restackio/restack-sdk-ts";
1+
import Restack from "@restackio/ai";
22

3-
export const client = new Restack();
3+
export const client = new Restack();
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import { welcome, goodbye } from "../functions/functions";
2-
import { log, step } from "@restackio/restack-sdk-ts/workflow";
3-
2+
import { log, step } from "@restackio/ai/workflow";
43

54
export async function greetingWorkflow(name: String) {
6-
7-
const welcomeMessage = await step().welcome('human');
5+
const welcomeMessage = await step().welcome("human");
86
log.info(welcomeMessage);
97

10-
const goodbyeMessage = await step().goodbye('human');
8+
const goodbyeMessage = await step().goodbye("human");
119
log.info(goodbyeMessage);
12-
13-
};
14-
10+
}

examples/hello/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@restackio/integrations-openai": "^0.0.23",
26-
"@restackio/restack-sdk-ts": "^0.0.66",
26+
"@restackio/ai": "^0.0.75",
2727
"@temporalio/workflow": "^1.11.2",
2828
"dotenv": "^16.4.5",
2929
"zod": "^3.23.8",

0 commit comments

Comments
 (0)