Skip to content

Commit 8457888

Browse files
authored
Merge branch 'main' into kavin/whobot-fix
2 parents f9df6a1 + 17702fb commit 8457888

File tree

3 files changed

+7
-7
lines changed
  • js
    • packages/teams-ai/src/planners
    • samples
      • 06.assistants.a.mathBot/src
      • 06.assistants.b.orderBot/src

3 files changed

+7
-7
lines changed

js/packages/teams-ai/src/planners/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
export * from "./ActionPlanner";
10-
export * from "./AssistantsPlanner";
10+
export * as preview from "./AssistantsPlanner";
1111
export * from "./LLMClient";
1212
export * from "./Planner";
1313
export * from "./TestPlanner";

js/samples/06.assistants.a.mathBot/src/bot.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import {
2-
Application,
3-
AssistantsPlanner,
4-
AI
5-
} from '@microsoft/teams-ai';
1+
import { Application, preview, AI } from '@microsoft/teams-ai';
62
import { MemoryStorage, TurnContext } from 'botbuilder';
73

84
if (!process.env.OPENAI_KEY) {
95
throw new Error('Missing environment variables - please check that OPENAI_KEY.');
106
}
117

8+
const { AssistantsPlanner } = preview;
9+
1210
// Create Assistant if no ID is provided
1311
if (!process.env.ASSISTANT_ID) {
1412
(async () => {

js/samples/06.assistants.b.orderBot/src/bot.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
Application,
3-
AssistantsPlanner,
3+
preview,
44
AI
55
} from '@microsoft/teams-ai';
66
import { CardFactory, MemoryStorage, MessageFactory, TurnContext } from 'botbuilder';
@@ -11,6 +11,8 @@ if (!process.env.OPENAI_KEY) {
1111
throw new Error('Missing environment variables - please check that OPENAI_KEY.');
1212
}
1313

14+
const { AssistantsPlanner } = preview;
15+
1416
// Create Assistant if no ID is provided
1517
if (!process.env.ASSISTANT_ID) {
1618
(async () => {

0 commit comments

Comments
 (0)