-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cg/gpt-tokenizer
- Loading branch information
Showing
23 changed files
with
379 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- main | ||
paths: | ||
include: | ||
- python | ||
- pipelines/python.yml | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
strategy: | ||
matrix: | ||
Python38: | ||
python.version: '3.8' | ||
Python39: | ||
python.version: '3.9' | ||
Python310: | ||
python.version: '3.10' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
displayName: 'Use Python $(python.version)' | ||
|
||
- script: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
python scripts/install.py | ||
displayName: 'Install Dependencies' | ||
workingDirectory: 'python' | ||
|
||
- script: | | ||
python scripts/check.py | ||
displayName: 'Check' | ||
workingDirectory: 'python' | ||
|
||
- script: | | ||
python scripts/build.py | ||
displayName: 'Build' | ||
workingDirectory: 'python' | ||
|
||
- script: | | ||
python scripts/test.py | ||
displayName: 'Test' | ||
workingDirectory: 'python' | ||
|
||
- script: | | ||
python scripts/lint.py | ||
displayName: 'Lint' | ||
workingDirectory: 'python' | ||
|
||
- task: CopyFiles@2 | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)' | ||
contents: | | ||
python/packages/ai/dist/* | ||
targetFolder: $(Build.ArtifactStagingDirectory) | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact' | ||
inputs: | ||
PathToPublish: '$(Build.ArtifactStagingDirectory)/python/packages/ai' | ||
ArtifactName: Packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,13 @@ | ||
# Teams AI | ||
# Teams AI Library | ||
|
||
SDK focused on building AI based applications for Microsoft Teams. | ||
Welcome to the Teams AI Library Python package! | ||
|
||
## Development | ||
This SDK is specifically designed to assist you in creating bots capable of interacting with Teams and Microsoft 365 applications. It is constructed using the [Bot Framework SDK](https://github.com/microsoft/botbuilder-python) as its foundation, simplifying the process of developing bots that interact with Teams' artificial intelligence capabilities. See the [Teams AI repo README.md](https://github.com/microsoft/teams-ai), for general information. | ||
|
||
### Prerequisites | ||
## Getting Started | ||
|
||
[Install Poetry](https://python-poetry.org/docs/) | ||
To get started, take a look at the [getting started docs](https://github.com/microsoft/teams-ai/blob/main/getting-started/README.md). | ||
|
||
```bash | ||
$: pip install poetry | ||
``` | ||
## Migration | ||
|
||
### Install Dependencies | ||
|
||
```bash | ||
$: poetry install | ||
``` | ||
|
||
### Build | ||
|
||
```bash | ||
$: poetry build | ||
``` | ||
|
||
### Test | ||
|
||
```bash | ||
$: poetry run test | ||
``` | ||
|
||
### Lint | ||
|
||
```bash | ||
$: poetry run lint | ||
``` | ||
|
||
## Format | ||
|
||
```bash | ||
$: poetry run fmt | ||
``` | ||
|
||
## Clean | ||
|
||
```bash | ||
$: poetry run clean | ||
``` | ||
|
||
### Install Local | ||
|
||
```bash | ||
$: pip install . | ||
``` | ||
|
||
### Publish | ||
|
||
```bash | ||
$: poetry publish | ||
``` | ||
If you're migrating an existing project, switching to add on the Teams AI Library layer is quick and simple. See the [migration guide](https://github.com/microsoft/teams-ai/blob/main/getting-started/MIGRATION/PYTHON.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.