Skip to content

Commit 82c1b65

Browse files
authored
[C#] chore: make assistants planner experimental (#910)
## Linked issues closes: #905 ## Details Change assistant planner related class' namespace from `Microsoft.Teams.AI.AI.Planners` to `Microsoft.Teams.AI.AI.Planners.Experimental` ## Attestation Checklist - [x] My code follows the style guidelines of this project - I have checked for/fixed spelling, linting, and other errors - I have commented my code for clarity - I have made corresponding changes to the documentation (we use [TypeDoc](https://typedoc.org/) to document our code) - My changes generate no new warnings - I have added tests that validates my changes, and provides sufficient test coverage. I have tested with: - Local testing - E2E testing in Teams - New and existing unit tests pass locally with my changes
1 parent a5474f7 commit 82c1b65

File tree

8 files changed

+19
-6
lines changed

8 files changed

+19
-6
lines changed

dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI.Tests/AITests/AssistantsPlannerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using Microsoft.Bot.Builder;
22
using Microsoft.Bot.Schema;
33
using Microsoft.Teams.AI.AI;
4-
using Microsoft.Teams.AI.AI.Planners;
4+
using Microsoft.Teams.AI.AI.Planners.Experimental;
55
using Microsoft.Teams.AI.Exceptions;
66
using Record = Microsoft.Teams.AI.State.Record;
77
using Microsoft.Teams.AI.Tests.TestUtils;
88
using Moq;
99
using System.Reflection;
10+
using Microsoft.Teams.AI.AI.Planners;
1011

1112
namespace Microsoft.Teams.AI.Tests.AITests
1213
{

dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Planners/AssistantsPlanner.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
using Microsoft.Teams.AI.Utilities;
88
using System.Text.Json;
99

10-
namespace Microsoft.Teams.AI.AI.Planners
10+
// Assistants API is currently in beta and is subject to change.
11+
#pragma warning disable IDE0130 // Namespace does not match folder structure
12+
namespace Microsoft.Teams.AI.AI.Planners.Experimental
13+
#pragma warning restore IDE0130 // Namespace does not match folder structure
1114
{
1215
/// <summary>
1316
/// A planner that uses OpenAI's Assistants APIs to generate plans.

dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Planners/AssistantsPlannerOptions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
using Microsoft.Teams.AI.Utilities;
22

3-
namespace Microsoft.Teams.AI.AI.Planners
3+
// Assistants API is currently in beta and is subject to change.
4+
#pragma warning disable IDE0130 // Namespace does not match folder structure
5+
namespace Microsoft.Teams.AI.AI.Planners.Experimental
6+
#pragma warning restore IDE0130 // Namespace does not match folder structure
47
{
58
/// <summary>
69
/// Options for the Assistants planner.

dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Planners/AssistantsState.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
using Microsoft.Teams.AI.State;
22

3-
namespace Microsoft.Teams.AI.AI.Planners
3+
// Assistants API is currently in beta and is subject to change.
4+
#pragma warning disable IDE0130 // Namespace does not match folder structure
5+
namespace Microsoft.Teams.AI.AI.Planners.Experimental
6+
#pragma warning restore IDE0130 // Namespace does not match folder structure
47
{
58
/// <summary>
69
/// Model represents assistants state.

dotnet/samples/06.assistants.a.mathBot/ActivityHandlers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.Bot.Builder;
22
using Microsoft.Teams.AI;
3-
using Microsoft.Teams.AI.AI.Planners;
3+
using Microsoft.Teams.AI.AI.Planners.Experimental;
44

55
namespace MathBot
66
{

dotnet/samples/06.assistants.a.mathBot/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
using Microsoft.Teams.AI;
55
using Microsoft.Teams.AI.AI;
66
using Microsoft.Teams.AI.AI.OpenAI.Models;
7+
using Microsoft.Teams.AI.AI.Planners.Experimental;
78
using Microsoft.Teams.AI.AI.Planners;
9+
810
using MathBot;
911

1012
var builder = WebApplication.CreateBuilder(args);

dotnet/samples/06.assistants.b.orderBot/ActivityHandlers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.Bot.Builder;
22
using Microsoft.Teams.AI;
3-
using Microsoft.Teams.AI.AI.Planners;
3+
using Microsoft.Teams.AI.AI.Planners.Experimental;
44

55
namespace OrderBot
66
{

dotnet/samples/06.assistants.b.orderBot/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.Teams.AI;
55
using Microsoft.Teams.AI.AI;
66
using Microsoft.Teams.AI.AI.OpenAI.Models;
7+
using Microsoft.Teams.AI.AI.Planners.Experimental;
78
using Microsoft.Teams.AI.AI.Planners;
89
using OrderBot;
910
using OrderBot.Models;

0 commit comments

Comments
 (0)