Skip to content

Python: Preb1 merge from main 1 #10805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
5098ba3
Python: Improve handling for kernel plugin from file. (#10286)
moonbox3 Jan 24, 2025
b592a4a
.Net: Moved IChatHistoryReducer from Agents to SK packages (#10285)
dmytrostruk Jan 27, 2025
2d7a558
.Net: Agents: Support Azure AI Agent (#10134)
crickman Jan 27, 2025
1a84cb6
Python: prompt template config and kernel args support for agents (#1…
moonbox3 Jan 28, 2025
07db439
.Net: Bump Testcontainers.Milvus from 4.0.0 to 4.1.0 in /dotnet (#10314)
dependabot[bot] Jan 28, 2025
c69d55c
.Net: Bump Moq.Analyzers from 0.1.2 to 0.3.0 in /dotnet (#10315)
dependabot[bot] Jan 28, 2025
015f560
.Net: Bump Azure.Identity, Microsoft.Identity.Client and System.Text.…
dependabot[bot] Jan 28, 2025
62417d8
.Net: Bump xunit.runner.visualstudio from 3.0.0 to 3.0.1 in /dotnet (…
dependabot[bot] Jan 28, 2025
f005058
Python: Add Deepseek service to concept samples (#10306)
TaoChenOSU Jan 28, 2025
989b8d5
.Net: Adding Ollama extension for improved Aspire experience (#10324)
RogerBarreto Jan 28, 2025
9655254
.Net: Version 1.35.0 (#10318)
markwallace-microsoft Jan 28, 2025
10818c5
.Net: SK Process Cloud Events - Publish Interface abstractions scaffo…
esttenorio Jan 28, 2025
471d9a8
.Net: Bump DuckDB.NET.Data.Full from 1.1.2.1 to 1.1.3 in /dotnet (#10…
dependabot[bot] Jan 28, 2025
6fbbb44
.Net: Add CachedContent Property to GeminiPromptExecutionSettings (#1…
davidpene Jan 28, 2025
89cd872
.Net: issue-10278 : Change ChatPromptParser to enable 0-n text part i…
ThDuquennoy Jan 28, 2025
7e20631
Python: Allow enums to be passed in to on_function_result. Improve ha…
moonbox3 Jan 28, 2025
ec9b980
Python: improve agent samples and chat history handling (#10301)
eavanvalkenburg Jan 29, 2025
44034eb
Python: Improve hashing of cmc and scmc items. Add tests. (#10332)
moonbox3 Jan 29, 2025
d015742
Python: Bump Python version to 1.20.0 for a release. (#10331)
moonbox3 Jan 29, 2025
c311183
.Net: Updated agent logs to include agent name (#10330)
dmytrostruk Jan 29, 2025
f32972c
.Net: Removed System.Memory.Data dependency (#9970)
dmytrostruk Jan 30, 2025
3724e24
Python: Add vector search to Postgres connector (#10213)
lossyrob Jan 30, 2025
f4f8637
.NET - Introduce ChatCompletionAgent `Allow-List` of supported conten…
crickman Jan 30, 2025
605db09
Python: intro allowed content types in chat history channel receive. …
moonbox3 Jan 30, 2025
10c1dfe
Python: [python] Bug fix 10340 (#10341)
drdrew42 Jan 31, 2025
537a232
.Net: Updated chat history reducers to include system message (#10344)
dmytrostruk Jan 31, 2025
8b2a64c
.Net: Graduate OpenAPI package (#10356)
SergeyMenshykh Jan 31, 2025
1484043
Python: Document generator agent framework demo (#10184)
TaoChenOSU Jan 31, 2025
7789c5f
Python: Bedrock agent (#10307)
TaoChenOSU Jan 31, 2025
f466aec
add workflow to create issue from needs port (#10369)
eavanvalkenburg Feb 3, 2025
b9cb428
updated ifs (#10370)
eavanvalkenburg Feb 3, 2025
f459caf
Fix needs port if (#10371)
eavanvalkenburg Feb 3, 2025
1b85aa9
Python: Fix OpenAI assistant metadata type (#10383)
TaoChenOSU Feb 4, 2025
f8592ad
Python: Update README.md to add clarity re: .env file (#10360)
jenfoxbot Feb 4, 2025
0b2bd01
Python: Update document generator demo README (#10386)
TaoChenOSU Feb 4, 2025
2537edb
.Net: CrewAI Plugin (#10363)
alliscode Feb 4, 2025
6bb1707
.Net: Increased timeout for integration tests (#10403)
dmytrostruk Feb 4, 2025
1e15f6c
.Net: Added traces for Agent invocations (#10387)
dmytrostruk Feb 4, 2025
926d2b7
.Net: Updated package version (#10396)
dmytrostruk Feb 4, 2025
f54c31f
Python: Skip Ollama integration tests temporarily to unblock PRs (#10…
TaoChenOSU Feb 4, 2025
8675186
Python: Bump torch from 2.5.1 to 2.6.0 in /python (#10380)
dependabot[bot] Feb 5, 2025
7c10d5f
Python: Fixed Python bug when enable_json_response=True (#10376)
shethaadit Feb 5, 2025
0555ae7
Python: Update pymongo requirement from <4.11,>=4.8.0 to >=4.8.0,<4.1…
dependabot[bot] Feb 5, 2025
583cbad
Python: Bump google-cloud-aiplatform from 1.60 to 1.79.0 in /python (…
dependabot[bot] Feb 5, 2025
2a6cdd8
Python: Add unit tests for Bedrock agent integration (#10362)
TaoChenOSU Feb 5, 2025
0a8c4d8
Python: Update agent tracing span name and attributes (#10398)
TaoChenOSU Feb 5, 2025
4d2b2be
Python: Bug: Type Definition Error ImageContent (#10395)
ymuichiro Feb 5, 2025
fd2d2c8
.Net: Bump Roslynator.Formatting.Analyzers from 4.12.9 to 4.12.11 in …
dependabot[bot] Feb 5, 2025
e4b83ee
.NET Agents - Fix updated grouping for Getting Started samples (#10402)
crickman Feb 5, 2025
c938c18
.Net: Bump DuckDB.NET.Data from 1.1.2.1 to 1.1.3 in /dotnet (#10385)
dependabot[bot] Feb 5, 2025
7ffd8b8
.Net: replaces message creation by send messages in CAP and API manif…
baywet Feb 5, 2025
a6edd98
.Net: Avoid sending duplicate function tools when creating a thread (…
markwallace-microsoft Feb 5, 2025
ce6002d
Python: Add Bedrock agent integration tests (#10400)
TaoChenOSU Feb 5, 2025
35641b7
Python: Allow AI Inference connector to use Azure AI Services resourc…
TaoChenOSU Feb 6, 2025
c445f5c
Python: Implement MongoDB Atlas store (#10177)
eavanvalkenburg Feb 6, 2025
3461ed6
Python: Fixes to Cosmos DB NoSQL query syntax generation. (#10373)
davidatorres Feb 6, 2025
89cb493
.Net: Clean-up (#10431)
crickman Feb 6, 2025
9f89771
.NET: Doc improvements for Agents folder (#10404)
gewarren Feb 6, 2025
f618205
.Net Add Audio content capabilities to Gemini (#10364)
davidpene Feb 6, 2025
a9e0c09
.Net: Fix solution structure: Move Connectors.Postgres.UnitTests into…
atiq-bs23 Feb 6, 2025
1b735c7
.Net: Avoid sending duplicate function tools when creating a thread (…
markwallace-microsoft Feb 6, 2025
c3ab713
Python: Add support for Azure AI Agent Service (#10414)
moonbox3 Feb 7, 2025
a2f335e
.Net: Version bump for 1.36.1 (#10450)
markwallace-microsoft Feb 7, 2025
1ae5661
.Net: VectorData doc improvements (#10449)
gewarren Feb 7, 2025
f5eb23d
.Net: Feature copilot agent plugins demo sample (#10444)
fabianwilliams Feb 7, 2025
018c014
.Net: Fix #10389 (#10406)
RamType0 Feb 10, 2025
8bfadfc
.Net: Update GettingStarted Documentation (#10453)
lastcoolnameleft Feb 10, 2025
b8795b7
.Net: Hybrid Model Orchestration ADR (#10439)
SergeyMenshykh Feb 10, 2025
8f4efa5
Python: Allow for factory callbacks in the process framework (#10451)
moonbox3 Feb 11, 2025
a7fe8e8
Python: Remove old references of plugin import (#10462)
moonbox3 Feb 11, 2025
de2857c
.Net: Update prompty support to use prompty.core (#10481)
markwallace-microsoft Feb 11, 2025
3f22587
Bump danielpalme/ReportGenerator-GitHub-Action from 5.4.3 to 5.4.4 (#…
dependabot[bot] Feb 11, 2025
9d5ad78
Python: set openai package to newer version and removed default value…
eavanvalkenburg Feb 12, 2025
7bdf550
Python: experimental py3.13 support (#10276)
eavanvalkenburg Feb 12, 2025
dc6ca1a
Python: Fix csv file paths for learn site sample. Improve streaming o…
moonbox3 Feb 12, 2025
cbfd7e9
Python: improved content inits, added ndarray support for binary cont…
eavanvalkenburg Feb 12, 2025
56bd394
Python: Add Azure AI Agent AI Search Sample. Update memory sample wit…
moonbox3 Feb 12, 2025
9c9b03b
Python: Bump Python version to 1.21.0 for a release. (#10500)
moonbox3 Feb 12, 2025
5e208a7
.Net: Update {Azure}OpenAI Connectors to latest 2.2.0-beta.1 (#10496)
RogerBarreto Feb 12, 2025
bc0bfe0
.Net: Feature copilot agent plugins demosample (#10508)
fabianwilliams Feb 12, 2025
87d5a50
.Net: Updated package version (#10509)
dmytrostruk Feb 12, 2025
88fbaf8
.Net: Hybrid model orchestration sample (#10503)
SergeyMenshykh Feb 12, 2025
892c206
Python: Adding Crew.AI as a plugin. (#10474)
alliscode Feb 13, 2025
23a9036
.Net: Adding Coverage Report Artifact for Workflow execution (#10504)
RogerBarreto Feb 13, 2025
784f13e
Python: Fix Chat History Agent format instructions regression. (#10512)
moonbox3 Feb 13, 2025
50a46c3
.NET Agents - Fix enum handling of function parameters (#10513)
crickman Feb 13, 2025
5486f2b
.Net: Fix bug where special chars in collection name fails index crea…
westey-m Feb 13, 2025
ca052ee
.Net Agents: Fix consumption of execution settings when defining agen…
crickman Feb 13, 2025
c2ebc3d
Python: Update motor requirement from <3.7.0,>=3.3.2 to >=3.3.2,<3.8.…
dependabot[bot] Feb 13, 2025
a03c5d6
Python: removes AWS "us." region prefix from model id (#10329)
gtang31-te Feb 13, 2025
1e08663
.Net: Removed Obsolete VolatileVectorStore and references. (#10494)
shethaadit Feb 13, 2025
76d101e
Python: add AzureAIAgent client creation method. Handle user_agent. (…
moonbox3 Feb 14, 2025
cd84e87
Python: Bump Python version to 1.21.1 for a release. (#10539)
moonbox3 Feb 14, 2025
d350b83
Python: Updates to doc gen demo after introducing KernelArgs to Chat …
moonbox3 Feb 14, 2025
5680206
.Net: Azure OpenAI Connector - Adding new max completion tokens overr…
RogerBarreto Feb 14, 2025
2d2ee3a
.Net: Remove experimental attribute from AllowStrictSchemaAdherence p…
SergeyMenshykh Feb 17, 2025
29da41e
.Net: Add option to disable automatic HTML decoding for Handlebars te…
markwallace-microsoft Feb 17, 2025
07136f8
Python: Bump google-cloud-aiplatform from 1.79.0 to 1.80.0 in /python…
dependabot[bot] Feb 18, 2025
268261f
.Net: Bump MSTest.TestFramework from 3.6.3 to 3.8.0 in /dotnet (#10581)
dependabot[bot] Feb 18, 2025
fb2f4fe
.Net: Include developer role in parsing regex (#10568)
markwallace-microsoft Feb 18, 2025
5b03f7c
.Net: Bump Handlebars.Net and Handlebars.Net.Helpers in /dotnet (#10580)
dependabot[bot] Feb 18, 2025
ffacc04
Python: .Net: ADR for realtime (#10355)
eavanvalkenburg Feb 18, 2025
31166d4
.Net: Bump Google.Apis.CustomSearchAPI.v1 from 1.60.0.3001 to 1.68.0.…
dependabot[bot] Feb 18, 2025
78a1c4a
.Net: Update Microsoft.Extensions.AI packages to the latest version. …
eiriktsarpalis Feb 18, 2025
5cad286
Python: Fix Infinite Recursion in Hashing Logic by Tracking Visited O…
moonbox3 Feb 18, 2025
f3c1054
Python: Clarify in READMEs which Assistant api versions should be use…
moonbox3 Feb 18, 2025
971a742
Python: update GoogleConnector settings arg to search_api_key from ap…
moonbox3 Feb 18, 2025
2f8157f
Python: Bump Python version to 1.21.2 for a release. (#10599)
moonbox3 Feb 18, 2025
14a3263
Python: Update install-uv target to install uv into active virtual en…
moonbox3 Feb 18, 2025
374d8f9
Python: filter improvements (#10588)
eavanvalkenburg Feb 19, 2025
b8835d2
Python: updated reasoning samples (#10563)
eavanvalkenburg Feb 19, 2025
e183399
.Net Agents - Fix and streamlining for `OpenAIAssistantAgent` (#10583)
crickman Feb 19, 2025
68448b1
Python: Fix kernel parameter metadata input type arg to call type_ (#…
moonbox3 Feb 19, 2025
b6e4e66
.Net: Bump System.Formats.Asn1 from 8.0.1 to 8.0.2 in /dotnet (#10579)
dependabot[bot] Feb 19, 2025
a9b20b1
.Net Agents - Support role-override for `ChatCompletionAgent` (#10601)
crickman Feb 19, 2025
7137770
.Net: Add Bedrock Agent to .Net SDK (#10443)
TaoChenOSU Feb 19, 2025
e36c08a
Python: Bump Python version to 1.21.3 for a release. (#10617)
moonbox3 Feb 19, 2025
2984423
Python: Add support for AutoGen's 0.2 ConversableAgent (#10607)
moonbox3 Feb 20, 2025
82aafd3
.Net Agents - Refine client provider/factory (#10616)
crickman Feb 20, 2025
2482cb9
Version 1.38.0 (#10625)
markwallace-microsoft Feb 20, 2025
2794352
.Net: Add Bedrock Agent tests (#10618)
TaoChenOSU Feb 20, 2025
99cbd45
.Net Agents - Fix typos and sample execution settings (#10628)
crickman Feb 20, 2025
5c7e759
.Net: Change Agents.Abstractions to depend on SemanticKernel.Abstract…
markwallace-microsoft Feb 20, 2025
ef56875
.Net: Added traces for OpenAI Assistant and Azure AI channels (#10630)
dmytrostruk Feb 21, 2025
f431685
.Net Agents - Update Templating Pattern (#10633)
crickman Feb 21, 2025
4c91cfd
.Net: Adds Process Framework with Aspire demo (#10614)
tommasodotNET Feb 21, 2025
534d860
Python: Introducing AzureCosmosDBforMongoDB store and collection (#10…
eavanvalkenburg Feb 24, 2025
7b83ffd
.Net: Add prompt execution settings to AutoFunctionInvocationContext …
SergeyMenshykh Feb 24, 2025
f5480e9
.Net: Fix Usage Tokens in AzureOpenAI Connector - Added UT + IT's (#1…
RogerBarreto Feb 25, 2025
6d0c614
Python: Update boto3 requirement from ~=1.36.4 to >=1.36.4,<1.38.0 in…
dependabot[bot] Feb 25, 2025
a24de53
.Net: Bump Microsoft.ML.Tokenizers and Microsoft.ML.Tokenizers.Data.C…
dependabot[bot] Feb 25, 2025
2c73059
.Net: Updated package version (#10677)
dmytrostruk Feb 25, 2025
83c10d5
Python: removed pyright until we have time to reevaluate typing setup…
eavanvalkenburg Feb 25, 2025
bd22ea3
.Net: Add support for OpenAPI parameters defined with schema but with…
SergeyMenshykh Feb 25, 2025
d91c96d
Python: resolving #10642 - public events fail to propagate (#10643)
drdrew42 Feb 25, 2025
583db49
.Net: Update sample to demonstrate how hybrid AI orchestration can be…
SergeyMenshykh Feb 25, 2025
9e979f8
Python: Improve/Simplify the Assistant Agents (#10666)
moonbox3 Feb 26, 2025
60df17d
Python: Improve agent getting started samples (#10667)
TaoChenOSU Feb 26, 2025
174bdab
Python: Introduce feature decorator to allow for experimental and rel…
moonbox3 Feb 27, 2025
caef2f3
Python: improve feature decorator return type so it doesn't affect Py…
moonbox3 Feb 27, 2025
536edaa
Python: Introducing the Chroma Connector with the new vector store de…
eavanvalkenburg Feb 27, 2025
15ca7a7
Python: Agent `get_response` API (#10701)
TaoChenOSU Feb 27, 2025
9048d15
.Net: Concept sample showing how to switch deployments based on funct…
markwallace-microsoft Feb 27, 2025
de22689
.Net: Use Contoso endpoints (#10711)
markwallace-microsoft Feb 27, 2025
16d48bb
Python: lazy create stores in integration tests (#10705)
eavanvalkenburg Feb 27, 2025
9401760
.Net Agents: Update experimental meta-data for graduation (#10600)
crickman Feb 27, 2025
9d746f6
.Net: Updated package version (#10717)
dmytrostruk Feb 27, 2025
0235f2b
.Net: Adding preview package suffix to Agents.OpenAI. (#10719)
alliscode Feb 28, 2025
5e8fc1e
Python: Bump Python version to 1.22.0 for a release. (#10718)
moonbox3 Feb 28, 2025
fd27470
Python: Allow plugins via agent constructors. Update samples. (#10707)
moonbox3 Feb 28, 2025
4fdaf67
.Net: Sample Code Showcasing Usage of Reasoning Models in OpenAI and …
joslat Feb 28, 2025
9ad9f2c
.Net: ADR Samples Contribution Guidelines (#10526)
RogerBarreto Mar 1, 2025
2323ae0
Python: Cleanup ChatCompletionAgent concept samples (#10726)
moonbox3 Mar 3, 2025
5d55c05
.Net: Use preview suffix for Agents abstractions (#10745)
markwallace-microsoft Mar 3, 2025
90e136e
Python: fixed vector dimension to 1536 (#10749)
cplemm Mar 3, 2025
c140db3
Python: Don't store AzureAIInferenceChatCompletion response inner_con…
moonbox3 Mar 3, 2025
3a799c8
Python: Allow OpenAIAssistant model id to pass into setup resources (…
moonbox3 Mar 3, 2025
0153073
Python: Bump Python version to 1.22.1 for a release (#10751)
moonbox3 Mar 3, 2025
a0e93cc
Python: add ado run (#10755)
eavanvalkenburg Mar 3, 2025
e659da7
Trigger ado (#10756)
eavanvalkenburg Mar 3, 2025
244740c
add manual release pipeline (#10757)
eavanvalkenburg Mar 3, 2025
02c713d
Trigger ado (#10758)
eavanvalkenburg Mar 3, 2025
9faa01b
fix permissions (#10759)
eavanvalkenburg Mar 3, 2025
7f5ff37
permission and env (#10760)
eavanvalkenburg Mar 3, 2025
a6746d5
vars (#10761)
eavanvalkenburg Mar 3, 2025
d6b7837
updated command (#10762)
eavanvalkenburg Mar 3, 2025
7647e7a
fixed variables (#10763)
eavanvalkenburg Mar 3, 2025
bee063c
.Net: Upgrade to latest ONNX Runtime GenAI (#10743)
stephentoub Mar 3, 2025
04f5fbb
.Net: Add Calendar write for Copilot Agent Plugin Calendar (#10622)
musale Mar 3, 2025
75453a1
Python: Move to a thinner wrap for Bedrock Agent in Python (#10740)
TaoChenOSU Mar 3, 2025
8fd6da2
Python: Improve Bedrock service setup docs (#10772)
TaoChenOSU Mar 4, 2025
4eb4493
Python: improved chat history samples (#10737)
eavanvalkenburg Mar 4, 2025
de54193
Python: Introducing Realtime Clients for OpenAI and Azure OpenAI (#10…
eavanvalkenburg Mar 4, 2025
b07ce3d
.Net: Concept Samples Updates and Fixes (#10746)
RogerBarreto Mar 4, 2025
022f05e
.Net: dotnet format issues with SDK 9.0 (#10741)
ross-p-smith Mar 4, 2025
7787725
Python: Bump google-cloud-aiplatform from 1.80.0 to 1.82.0 in /python…
dependabot[bot] Mar 4, 2025
7c8dccc
.Net: Add missing Ollama Connector Aspire Friendly Extensions (#10775)
RogerBarreto Mar 4, 2025
f8ee3ac
.Net: Demo showing how to integrate MCP tools with Semantic Kernel (#…
markwallace-microsoft Mar 4, 2025
863760a
Merge changes from main
westey-m Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .github/_typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ extend-exclude = [
"PopulationByCountry.csv",
"PopulationByAdmin1.csv",
"WomensSuffrage.txt",
"SK-dotnet.sln.DotSettings"
"SK-dotnet.sln.DotSettings",
"**/azure_ai_search_hotel_samples/README.md",
"**/Demos/ProcessFrameworkWithAspire/ProcessFramework.Aspire/ProcessFramework.Aspire.ProcessOrchestrator/Program.cs",
"**/Demos/ProcessFrameworkWithAspire/**/*.http"
]

[default.extend-words]
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/dotnet-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,17 @@ jobs:

# Generate test reports and check coverage
- name: Generate test reports
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.3
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.4
with:
reports: "./TestResults/Coverage/**/coverage.cobertura.xml"
targetdir: "./TestResults/Reports"
reporttypes: "JsonSummary"
reporttypes: "HtmlInline;JsonSummary"

- name: Upload coverage report artifact
uses: actions/upload-artifact@v4
with:
name: CoverageReport-${{ matrix.os }}-${{ matrix.dotnet }}-${{ matrix.configuration }} # Artifact name
path: ./TestResults/Reports # Directory containing files to upload

- name: Check coverage
shell: pwsh
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/label-needs-port.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Issue when Needs Port label is added
on:
issues:
types: [labeled]
pull_request_target:
types: [labeled]

jobs:
create_issue:
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.pull_request.labels.*.name, 'needs_port_to_python') || contains(github.event.issue.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.issue.labels.*.name, 'needs_port_to_python')
name: "Create Issue"
continue-on-error: true
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: read
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}

steps:
- name: Create dotnet issue
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.issue.labels.*.name, 'needs_port_to_dotnet')
run: |
new_issue_url=$(gh issue create \
--title "Port python feature: ${{ github.event.issue.title || github.event.pull_request.title }}" \
--label ".NET" \
--body "# Original issue
${{ github.event.issue.html_url || github.event.pull_request.html_url }}
## Description
${{ github.event.issue.body || github.event.pull_request.body }}")
- name: Create python issue
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_python') || contains(github.event.issue.labels.*.name, 'needs_port_to_python')
run: |
new_issue_url=$(gh issue create \
--title "Port dotnet feature: ${{ github.event.issue.title || github.event.pull_request.title }}" \
--label "python" \
--body "# Original issue
${{ github.event.issue.html_url || github.event.pull_request.html_url }}
## Description
${{ github.event.issue.body || github.event.pull_request.body }}")
17 changes: 17 additions & 0 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ on:
release:
types: [published]

permissions:
contents: read
id-token: "write"

jobs:
python-build-assets:
if: github.event_name == 'release' && startsWith(github.event.release.tag_name, 'python-')
name: Python Build Assets and add to Release
runs-on: ubuntu-latest
environment: "integration"
permissions:
contents: write
env:
Expand All @@ -21,6 +26,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
cache-dependency-glob: "**/uv.lock"
- name: Check version
run: |
echo "Building and uploading Python package version: ${{ github.event.release.tag_name }}"
Expand All @@ -31,3 +37,14 @@ jobs:
with:
files: |
python/dist/*
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Start DevOps pipeline
uses: azure/cli@v2
with:
inlineScript: |
az pipelines run --id ${{ vars.ADO_PYTHON_RELEASE_ID }} --org ${{ vars.ADO_ORG }} --project ${{ vars.ADO_PROJECT_NAME }} --parameters tag=${{ github.event.release.tag_name }} delay=0
122 changes: 113 additions & 9 deletions .github/workflows/python-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ env:
MISTRALAI_EMBEDDING_MODEL_ID: ${{ vars.MISTRALAI_EMBEDDING_MODEL_ID }}
ANTHROPIC_API_KEY: ${{secrets.ANTHROPIC_API_KEY}}
ANTHROPIC_CHAT_MODEL_ID: ${{ vars.ANTHROPIC_CHAT_MODEL_ID }}
OLLAMA_CHAT_MODEL_ID: "${{ vars.OLLAMA_CHAT_MODEL_ID || '' }}" # llava-phi3
OLLAMA_CHAT_MODEL_ID_IMAGE: "${{ vars.OLLAMA_CHAT_MODEL_ID_IMAGE || '' }}" # llava-phi3
OLLAMA_CHAT_MODEL_ID_TOOL_CALL: "${{ vars.OLLAMA_CHAT_MODEL_ID_TOOL_CALL || '' }}" # llama3.2
OLLAMA_TEXT_MODEL_ID: "${{ vars.OLLAMA_TEXT_MODEL_ID || '' }}" # llava-phi3
OLLAMA_CHAT_MODEL_ID: "${{ vars.OLLAMA_CHAT_MODEL_ID || '' }}" # llama3.2:1b
OLLAMA_CHAT_MODEL_ID_IMAGE: "${{ vars.OLLAMA_CHAT_MODEL_ID_IMAGE || '' }}" # moondream
OLLAMA_CHAT_MODEL_ID_TOOL_CALL: "${{ vars.OLLAMA_CHAT_MODEL_ID_TOOL_CALL || '' }}" # llama3.2:1b
OLLAMA_TEXT_MODEL_ID: "${{ vars.OLLAMA_TEXT_MODEL_ID || '' }}" # llama3.2:1b
OLLAMA_EMBEDDING_MODEL_ID: "${{ vars.OLLAMA_EMBEDDING_MODEL_ID || '' }}" # nomic-embed-text
GOOGLE_AI_GEMINI_MODEL_ID: ${{ vars.GOOGLE_AI_GEMINI_MODEL_ID }}
GOOGLE_AI_EMBEDDING_MODEL_ID: ${{ vars.GOOGLE_AI_EMBEDDING_MODEL_ID }}
Expand All @@ -69,6 +69,8 @@ env:
REDIS_CONNECTION_STRING: ${{ vars.REDIS_CONNECTION_STRING }}
AZURE_COSMOS_DB_NO_SQL_URL: ${{ vars.AZURE_COSMOS_DB_NO_SQL_URL }}
AZURE_COSMOS_DB_NO_SQL_KEY: ${{ secrets.AZURE_COSMOS_DB_NO_SQL_KEY }}
BEDROCK_AGENT_AGENT_RESOURCE_ROLE_ARN: ${{ secrets.BEDROCK_AGENT_AGENT_RESOURCE_ROLE_ARN }}
BEDROCK_AGENT_FOUNDATION_MODEL: ${{ vars.BEDROCK_AGENT_FOUNDATION_MODEL }}

jobs:
paths-filter:
Expand Down Expand Up @@ -118,6 +120,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
cache-dependency-glob: "**/uv.lock"
- name: Install dependencies
run: |
uv sync --all-extras --dev
Expand Down Expand Up @@ -147,10 +150,92 @@ jobs:
run: |
uv run pytest -v --log-cli-level=INFO --durations=20 -n logical --dist loadfile --dist worksteal -m "not ollama" ./tests/integration/completions ./tests/integration/embeddings ./tests/samples ./tests/integration/cross_language

python-merge-gate-multi-modality:
name: Python Pre-Merge Integration Tests - Multi-Modality
needs: paths-filter
if: github.event_name != 'pull_request' && github.event_name != 'schedule' && needs.paths-filter.outputs.pythonChanges == 'true'
strategy:
max-parallel: 1
fail-fast: false
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]
defaults:
run:
working-directory: python
runs-on: ${{ matrix.os }}
environment: "integration"
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --all-extras --dev
- name: Azure CLI Login
if: github.event_name != 'pull_request'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Run Integration Tests
id: run_tests_multi_modality
shell: bash
run: |
uv run pytest -v --log-cli-level=INFO --durations=20 -n logical --dist loadfile --dist worksteal ./tests/integration/audio_to_text ./tests/integration/text_to_audio ./tests/integration/text_to_image

python-merge-gate-agents:
name: Python Pre-Merge Integration Tests - Agents
needs: paths-filter
if: github.event_name != 'pull_request' && github.event_name != 'schedule' && needs.paths-filter.outputs.pythonChanges == 'true'
strategy:
max-parallel: 1
fail-fast: false
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]
defaults:
run:
working-directory: python
runs-on: ${{ matrix.os }}
environment: "integration"
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --all-extras --dev
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ vars.AWS_REGION }}
- name: Run Integration Tests
id: run_tests_agents
shell: bash
run: |
uv run pytest -v --log-cli-level=INFO --durations=20 -n logical --dist loadfile --dist worksteal ./tests/integration/agents

python-merge-gate-ollama:
name: Python Pre-Merge Integration Tests - Ollama
needs: paths-filter
if: github.event_name != 'pull_request' && github.event_name != 'schedule' && needs.paths-filter.outputs.pythonChanges == 'true'
# Ollama tests are very unstable at the moment. It often fails to pull models from the Ollama server. Thus, this job is disabled for now.
if: false && github.event_name != 'pull_request' && github.event_name != 'schedule' && needs.paths-filter.outputs.pythonChanges == 'true'
strategy:
max-parallel: 1
fail-fast: false
Expand All @@ -173,6 +258,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
cache-dependency-glob: "**/uv.lock"
- name: Install dependencies
run: |
uv sync --all-extras --dev
Expand Down Expand Up @@ -237,6 +323,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
cache-dependency-glob: "**/uv.lock"
- name: Install dependencies
run: |
uv sync --all-extras --dev
Expand Down Expand Up @@ -268,7 +355,6 @@ jobs:
run:
working-directory: python
runs-on: ${{ matrix.os }}
environment: "integration"
env:
UV_PYTHON: ${{ matrix.python-version }}
MEMORY_CONCEPT_SAMPLE: "true"
Expand All @@ -295,6 +381,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
cache-dependency-glob: "**/uv.lock"
- name: Install dependencies
run: |
uv sync --all-extras --dev
Expand All @@ -305,7 +392,8 @@ jobs:
ollama serve &
sleep 5
- name: Pull model in Ollama
if: matrix.os == 'ubuntu-latest'
# Ollama tests are very unstable at the moment. It often fails to pull models from the Ollama server. Thus, Ollama is disabled for now.
if: false && matrix.os == 'ubuntu-latest'
run: |
ollama pull ${{ vars.OLLAMA_CHAT_MODEL_ID }}
ollama pull ${{ vars.OLLAMA_CHAT_MODEL_ID_IMAGE }}
Expand Down Expand Up @@ -343,14 +431,16 @@ jobs:
id: run_tests_completions
timeout-minutes: 10
shell: bash
# Ollama tests are very unstable at the moment. It often fails to pull models from the Ollama server. Thus, Ollama is disabled for now.
run: |
uv run pytest -v -n logical --dist loadfile --dist worksteal ./tests/integration/completions
uv run pytest -v -n logical --dist loadfile --dist worksteal -m "not ollama" ./tests/integration/completions
- name: Run Integration Tests - Embeddings
id: run_tests_embeddings
timeout-minutes: 5
shell: bash
# Ollama tests are very unstable at the moment. It often fails to pull models from the Ollama server. Thus, Ollama is disabled for now.
run: |
uv run pytest -v -n logical --dist loadfile --dist worksteal ./tests/integration/embeddings
uv run pytest -v -n logical --dist loadfile --dist worksteal -m "not ollama" ./tests/integration/embeddings
- name: Run Integration Tests - Memory
id: run_tests_memory
timeout-minutes: 5
Expand All @@ -375,6 +465,18 @@ jobs:
shell: bash
run: |
uv run pytest -v -n logical --dist loadfile --dist worksteal ./tests/samples
- name: Run Integration Tests - Agents
id: run_tests_agents
timeout-minutes: 5
shell: bash
run: |
uv run pytest -v -n logical --dist loadfile --dist worksteal ./tests/integration/agents
- name: Run Integration Tests - Multi-Modality
id: run_tests_multi_modality
timeout-minutes: 5
shell: bash
run: |
uv run pytest -v -n logical --dist loadfile --dist worksteal ./tests/integration/audio_to_text ./tests/integration/text_to_audio ./tests/integration/text_to_image

# This final job is required to satisfy the merge queue. It must only run (or succeed) if no tests failed
python-integration-tests-check:
Expand All @@ -388,6 +490,8 @@ jobs:
python-merge-gate-ai-services,
python-merge-gate-ollama,
python-merge-gate-memory,
python-merge-gate-agents,
python-merge-gate-multi-modality,
python-integration-tests,
]
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
cache-dependency-glob: "**/uv.lock"
- name: Install the project
run: uv sync --all-extras --dev
- uses: pre-commit/action@v3.0.1
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/python-manual-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python Start Release on ADO

on:
workflow_dispatch:
inputs:
tag:
description: "Tag to release"
required: true

permissions:
contents: read
id-token: "write"

jobs:
python-build-assets:
name: Trigger ADO Pipeline for Python Release
runs-on: ubuntu-latest
environment: "integration"
steps:
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Start DevOps pipeline
uses: azure/cli@v2
with:
inlineScript: |
az pipelines run --id ${{ vars.ADO_PYTHON_RELEASE_ID }} --org ${{ vars.ADO_ORG }} --project ${{ vars.ADO_PROJECT_NAME }} --parameters tag=${{ inputs.tag }} delay=0
1 change: 1 addition & 0 deletions .github/workflows/python-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
version: "0.5.x"
enable-cache: true
cache-suffix: ${{ runner.os }}-${{ env.UV_PYTHON }}
cache-dependency-glob: "**/uv.lock"
- name: Install the project
run: uv sync --all-extras --dev
- name: Test with pytest
Expand Down
Loading
Loading