Skip to content

Commit

Permalink
Merge branch 'kavin/aoai-assistant' of https://github.com/microsoft/t…
Browse files Browse the repository at this point in the history
…eams-ai into kavin/aoai-assistant
  • Loading branch information
singhk97 committed Apr 24, 2024
2 parents 963b152 + 673db22 commit dc8e2ac
Show file tree
Hide file tree
Showing 45 changed files with 270 additions and 274 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup NodeJS ${{ env.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup .NET ${{ env.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
Expand All @@ -84,7 +84,7 @@ jobs:
parallel: true
files: ${{ env.SOLUTION_DIR }}TestResults/coverage/lcov.info
- name: Upload Tests
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: testresults-dotnet-${{ env.dotnet-version }}
path: ${{ env.SOLUTION_DIR }}TestResults
Expand All @@ -102,7 +102,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup Python ${{ env.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: 'Dependency Review'
uses: actions/dependency-review-action@5bbc3ba658137598168acb2ab73b21c432dd411b # v4.2.5
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
Expand All @@ -50,7 +50,7 @@ jobs:
reporttypes: 'HtmlInline;lcov'
toolpath: ${{ env.SOLUTION_DIR }}report-generator-tool
- name: Upload Tests
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: testresults-dotnet-${{ matrix.dotnet-version }}
path: ${{ env.SOLUTION_DIR }}TestResults
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Initialize CodeQL
uses: github/codeql-action/init@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/init@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
languages: csharp
- name: Setup .NET
Expand All @@ -50,6 +50,6 @@ jobs:
working-directory: dotnet/packages/Microsoft.TeamsAI/
run: dotnet build Microsoft.Teams.AI.sln --configuration Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/analyze@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
category: "/language:csharp"
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/microsoft/index.json --skip-duplicate --no-symbols
- name: Upload
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: nupkg-dotnet-${{ matrix.dotnet-version }}
path: dotnet/packages/Microsoft.TeamsAI/*.nupkg
2 changes: 1 addition & 1 deletion .github/workflows/js-build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/js-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Initialize CodeQL
uses: github/codeql-action/init@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/init@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/analyze@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
category: "/language:javascript"
2 changes: 1 addition & 1 deletion .github/workflows/python-build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Initialize CodeQL
uses: github/codeql-action/init@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/init@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/analyze@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
category: "/language:python"
6 changes: 3 additions & 3 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
persist-credentials: false

Expand All @@ -58,14 +58,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
uses: github/codeql-action/upload-sarif@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
with:
sarif_file: results.sarif
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.15" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.2" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.15" />
<PackageReference Include="JsonSchema.Net" Version="5.5.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.2" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.22.2" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.22.2" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.3" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.22.3" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.22.3" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.60.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.ML.Tokenizers" Version="0.22.0-preview.24179.1" />
Expand Down
6 changes: 3 additions & 3 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test:nyc:report": "npx rimraf coverage && yarn test:mocha && nyc report"
},
"dependencies": {
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"openai": "4.28.4"
},
"devDependencies": {
Expand All @@ -42,7 +42,7 @@
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^46.10.1",
"eslint-plugin-mocha": "^10.4.2",
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint": "^8.57.0",
Expand All @@ -64,7 +64,7 @@
"sponge": "^0.1.0",
"tinyify": "^4.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"wsrun": "^5.2.4"
}
}
4 changes: 2 additions & 2 deletions js/packages/teams-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@azure/openai-assistants": "1.0.0-beta.5",
"@azure/msal-node": "^2.7.0",
"axios": "^1.6.8",
"botbuilder-dialogs": "^4.22.1",
"botbuilder-dialogs": "^4.22.2",
"botframework-connector": "^4.22.1",
"botframework-schema": "^4.22.1",
"botframework-streaming": "^4.22.1",
Expand Down Expand Up @@ -61,7 +61,7 @@
"rimraf": "5.0.5",
"shx": "^0.3.4",
"ts-mocha": "10.0.0",
"typescript": "^5.4.4"
"typescript": "^5.4.5"
},
"scripts": {
"build": "tsc -b",
Expand Down
2 changes: 1 addition & 1 deletion js/packages/teams-ai/src/planners/AssistantsPlanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class AssistantsPlanner<TState extends TurnState = TurnState> implements
* @private
* Exposed for unit testing.
* @param {string} thread_id - The current thread id
* @param {ListMessagesOptions} options - The messages listing options
* @param {ListMessagesOptions} options - The message's listing options
* @returns {Promise<ThreadMessage>} The list of messages.
*/
protected async listMessages(
Expand Down
4 changes: 2 additions & 2 deletions js/samples/01.getting-started/a.echoBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@microsoft/teams-ai": "~1.1.3",
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"dotenv": "^16.4.5",
"openai": "4.28.4",
"replace": "~1.2.0",
Expand All @@ -35,7 +35,7 @@
"nodemon": "~3.0.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"ts-node": "^10.9.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@microsoft/teams-ai": "~1.1.3",
"axios": "^1.6.8",
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"dotenv": "^16.4.5",
"openai": "4.28.4",
"replace": "~1.2.0",
Expand All @@ -36,7 +36,7 @@
"nodemon": "~3.0.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"ts-node": "^10.9.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@microsoft/teams-ai": "~1.1.3",
"axios": "^1.6.8",
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"dotenv": "^16.4.5",
"openai": "4.28.4",
"replace": "~1.2.0",
Expand All @@ -36,7 +36,7 @@
"nodemon": "~3.0.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"ts-node": "^10.9.2"
}
}
4 changes: 2 additions & 2 deletions js/samples/03.ai-concepts/a.twentyQuestions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "https://github.com/microsoft/teams-ai"
},
"dependencies": {
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"@microsoft/teams-ai": "~1.1.3",
"dotenv": "^16.4.5",
"openai": "4.28.4",
Expand All @@ -35,7 +35,7 @@
"nodemon": "~3.0.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"shx": "^0.3.4",
"ts-node": "^10.9.2"
}
Expand Down
4 changes: 2 additions & 2 deletions js/samples/03.ai-concepts/b.AI-messageExtensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "https://github.com/microsoft/teams-ai"
},
"dependencies": {
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"@microsoft/teams-ai": "~1.1.3",
"dotenv": "^16.4.5",
"openai": "4.28.4",
Expand All @@ -35,7 +35,7 @@
"nodemon": "~3.0.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"shx": "^0.3.4",
"ts-node": "^10.9.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "https://github.com/microsoft/teams-ai"
},
"dependencies": {
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"@microsoft/teams-ai": "~1.1.3",
"dotenv": "^16.4.5",
"openai": "4.28.4",
Expand All @@ -35,7 +35,7 @@
"nodemon": "~1.19.4",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"shx": "^0.3.4",
"ts-node": "^10.9.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@microsoft/teams-ai": "~1.1.3",
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"dotenv": "^16.4.5",
"openai": "4.28.4",
"replace": "~1.2.0",
Expand All @@ -38,6 +38,6 @@
"rimraf": "^5.0.5",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.4.4"
"typescript": "^5.4.5"
}
}
4 changes: 2 additions & 2 deletions js/samples/03.ai-concepts/e.customModel-LLAMA/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"url": "https://github.com/microsoft/teams-ai"
},
"dependencies": {
"botbuilder": "^4.22.1",
"botbuilder": "^4.22.2",
"@microsoft/teams-ai": "~1.1.0",
"openai": "4.28.4",
"dotenv": "^16.4.1",
Expand All @@ -38,7 +38,7 @@
"nodemon": "~1.19.4",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"shx": "^0.3.4",
"ts-node": "^10.9.2"
}
Expand Down
Loading

0 comments on commit dc8e2ac

Please sign in to comment.