Граф коммитов

1410 Коммитов

Автор SHA1 Сообщение Дата
dotnet-maestro[bot] b2382cd31d
Update dependencies from https://github.com/dotnet/arcade build 20241009.3 (#5506)
[main] Update dependencies from dotnet/arcade
2024-10-10 18:30:31 +00:00
Eric Erhardt 38d52ca091 Remove unnecessary suppression in AIFunctionFactory 2024-10-10 12:27:46 -05:00
Eirik Tsarpalis aafa6a2d02
Sanitize structured output schema type name to satisfy restrictions (#5504) 2024-10-10 18:15:15 +01:00
Daniel Cazzulino ac55349dc2 Assert specific value expected for the sanitized generic type name 2024-10-10 13:44:09 -03:00
Daniel Cazzulino 8dd475f4b7 Fix S2333 'partial' is gratuitous in this context issues
Removed partial due error S2333 being shown otherwise.
2024-10-10 12:44:32 -03:00
Daniel Cazzulino 3d9b7f2cd9 Move SanitizeMetadataName to existing FunctionCallHelpers 2024-10-10 12:41:51 -03:00
Daniel Cazzulino c8472c77ec Sanitize structured output schema type name to satisfy restrictions
The underlying native schema support in OpenAI has specific requirements on valid schema names, as shown in the following exception when using either an array or any other generic type:

```
Unhandled exception. System.ClientModel.ClientResultException: HTTP 400 (invalid_request_error: invalid_value)
Parameter: response_format.json_schema.name

Invalid 'response_format.json_schema.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.
   at OpenAI.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
```

This fix follows the approach used to sanitize function names, and sanitizes the schema name the same way.

Fixes #5501
2024-10-10 10:54:35 -03:00
Eirik Tsarpalis 221449d5d3
Set WriteIndented=true for M.E.AI logging / telemetry / etc. (#5497) 2024-10-10 12:16:35 +01:00
Genevieve Warren defa6c1d23
Doc updates to HybridCacheOptions (#5493)
* doc updates

* Update src/Libraries/Microsoft.Extensions.Caching.Hybrid/HybridCacheOptions.cs

---------

Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
2024-10-10 06:26:54 +00:00
Stephen Toub 1b64e76651 Set WriteIndented=true for M.E.AI logging / telemetry / etc. 2024-10-09 21:30:05 -04:00
Igor Velikorossov 7ada97e388
First cut of code ownership (#5486)
Contributes to #4656
2024-10-10 10:06:11 +11:00
Stephen Toub 397010983e
Mark the FunctionCall/ResultContent.Exception properties as [JsonIgnore] (#5492)
Given implementation details of the JSON source generator today, even with the converter applied to these properties, code is still being generated for Exception, leading to unsuppressable trimmer warnings.
2024-10-09 16:13:05 -04:00
Eirik Tsarpalis a51631ed08
Fix AIFunctionFactory support for AOT. (#5494) 2024-10-09 15:08:15 -04:00
Eirik Tsarpalis a2373c43bc
Remove x64 hardcoding from global.json runtimes (#5488) 2024-10-09 15:25:42 +01:00
Eirik Tsarpalis b2d0dfedb3 Remove x64 hardcoding from global.json runtimes 2024-10-09 14:51:19 +01:00
Stephen Toub 0c8bc3ea38
Flip default on FunctionInvokingChatClient.ConcurrentInvocation (#5485)
* Flip default on FunctionInvokingChatClient.ConcurrentInvocation

For better reliability, default ConcurrentInvocation to false, so that it doesn't introduce concurrency / parallelism where there wasn't any.

* Update src/Libraries/Microsoft.Extensions.AI/ChatCompletion/FunctionInvokingChatClient.cs

Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>

---------

Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
2024-10-09 06:54:43 -04:00
Stephen Toub 331ddb5bb5
Improve registration of IDistributedCache in READMEs (#5480) 2024-10-08 16:55:12 -04:00
Jose Perez Rodriguez a7e4f3b402
Merge internal changes from Preview 9 release (#5479) 2024-10-08 10:41:50 -07:00
Stephen Toub e5bbd336e6 Temporarily work around trimming-related warnings 2024-10-08 10:10:19 -07:00
Jose Perez Rodriguez 434ff45d3b Merge internal changes into main 2024-10-08 09:25:56 -07:00
Stephen Toub 01a52dd763 Add initial Microsoft.Extensions.AI libraries
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
Co-authored-by: luisquintanilla <Luis.Quintanilla@microsoft.com>
2024-10-08 12:22:24 -04:00
dotnet-maestro[bot] 6155a6a728
Update dependencies from https://github.com/dotnet/aspnetcore build 20241007.7 (#5477)
Microsoft.AspNetCore.App.Ref , Microsoft.AspNetCore.App.Runtime.win-x64 , Microsoft.AspNetCore.Mvc.Testing , Microsoft.AspNetCore.TestHost , Microsoft.Extensions.Caching.SqlServer , Microsoft.Extensions.Caching.StackExchangeRedis , Microsoft.Extensions.Diagnostics.HealthChecks , Microsoft.Extensions.Http.Polly , Microsoft.Extensions.ObjectPool
 From Version 9.0.0-rtm.24501.7 -> To Version 9.0.0-rtm.24507.7

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-10-08 12:37:07 +00:00
Igor Velikorossov 2628a0d913
Disable .NET SDK update for dev branch 2024-10-08 09:55:06 +11:00
dotnet-maestro[bot] e72878cbf4
Update dependencies from https://github.com/dotnet/arcade build 20241003.2 (#5475)
[main] Update dependencies from dotnet/arcade
2024-10-07 13:22:18 +00:00
dotnet-maestro[bot] dbad3b6d42
Update dependencies from https://github.com/dotnet/aspnetcore build 20241001.7 (#5469)
[main] Update dependencies from dotnet/aspnetcore
2024-10-03 23:50:56 +00:00
dotnet-maestro[bot] 5d94c63ddf
Update dependencies from https://github.com/dotnet/arcade build 20241001.3 (#5468)
[main] Update dependencies from dotnet/arcade
2024-10-03 18:16:37 +00:00
Jose Perez Rodriguez 76ff9848fb
Merging branch dev -> main (#5465) 2024-10-03 10:27:49 -07:00
Jose Perez Rodriguez e11fb6176d Fix correctness build 2024-10-03 10:02:14 -07:00
Jose Perez Rodriguez bc90b9f434 Fix build 2024-10-02 17:21:17 -07:00
Jose Perez Rodriguez 92ae19e87a Merged PR 43283: Using RC2 aspnetcore and runtime versions
Getting ready for our 9.0-preview9 release

----
#### AI description  (iteration 1)
#### PR Classification
Dependency update

#### PR Summary
This pull request updates the project to use RC2 versions of ASP.NET Core and runtime dependencies.
- Updated dependency versions in `/eng/Version.Details.xml` and `/eng/Versions.props` to RC2.
- Removed code coverage stage from `azure-pipelines.yml`.
- Added setup for private feeds credentials in `/eng/pipelines/templates/BuildAndTest.yml`.
- Disabled NU1507 warning in `Directory.Build.props`.
- Modified `NuGet.config` to include `dotnet9-internal` feed and removed package source mappings.
2024-10-02 23:25:23 +00:00
Jose Perez Rodriguez 2d7ad3a504 Merged PR 43287: Getting ready for 8.10 release
Getting ready for 8.10 release

----
#### AI description  (iteration 1)
#### PR Classification
Release preparation

#### PR Summary
This pull request updates dependencies and configurations in preparation for the 8.10 release.
- `/eng/Version.Details.xml`: Updated various dependencies to newer versions.
- `/eng/Versions.props`: Synchronized dependency versions with the latest updates.
- `/azure-pipelines.yml`: Removed the `codecoverage` stage.
- `/eng/pipelines/templates/BuildAndTest.yml`: Added steps to set up private feed credentials for both Windows and non-Windows agents.
2024-10-02 21:58:16 +00:00
Jose Perez Rodriguez bc9bbd213d Getting ready to merge dev into main 2024-10-02 14:48:53 -07:00
Igor Velikorossov 39383ee9da
[automated] Merge branch 'main' => 'dev' (#5461) 2024-10-01 20:23:31 +10:00
Igor Velikorossov 985641c2f3
Merge branch 'dev' into merge/main-to-dev 2024-10-01 19:56:10 +10:00
Iliar Turdushev 18002bee78
Add methods allowing retrieval of HttpRequestMessage from ResilienceContext (#5460)
Fixes #4957

- Adds extension methods allowing retrieval of the request message from resilience context
- Replaces usage of ResilienceKeys.RequestMessage variable with corresponding Get/Set methods
2024-10-01 19:53:25 +10:00
Igor Velikorossov 910070c2d2
Update .NET SDK to 9.0.100-rtm.24479.2 (#5457) 2024-10-01 10:13:02 +10:00
dotnet-maestro[bot] 7a193a0db9
Update dependencies from https://github.com/dotnet/arcade build 20240923.1 (#5459)
[dev] Update dependencies from dotnet/arcade
2024-09-30 13:41:06 +00:00
dotnet-maestro[bot] 06e66b73f4
Update dependencies from https://github.com/dotnet/arcade build 20240925.3 (#5458)
[main] Update dependencies from dotnet/arcade
2024-09-30 13:30:45 +00:00
github-actions[bot] 7c0c0d8b59 Update .NET SDK
Update .NET SDK to version 9.0.100-rtm.24479.2.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-30 12:08:55 +00:00
Igor Velikorossov abf85c798e
[automated] Merge branch 'main' => 'dev' (#5456) 2024-09-30 18:50:50 +10:00
Iliar Turdushev 2b6bc3827b
Contributes to #4957 (#5452)
Updates Polly libraries to version 8.4.2
2024-09-30 17:54:01 +10:00
dotnet-maestro[bot] ad5fe1eb4a
Update dependencies from https://github.com/dotnet/aspnetcore build 20240927.5 (#5455)
[dev] Update dependencies from dotnet/aspnetcore
- Coherency Updates:
  - Microsoft.Bcl.TimeProvider: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Caching.Abstractions: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Caching.Memory: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.Abstractions: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.Binder: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.Json: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.DependencyInjection.Abstractions: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.DependencyInjection: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Hosting.Abstractions: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Diagnostics: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Hosting: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Http: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging.Abstractions: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging.Configuration: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging.Console: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Options.ConfigurationExtensions: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Options: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.NETCore.App.Ref: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.NETCore.App.Runtime.win-x64: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Collections.Immutable: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Configuration.ConfigurationManager: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Diagnostics.DiagnosticSource: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Diagnostics.PerformanceCounter: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.IO.Hashing: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.IO.Pipelines: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Security.Cryptography.Pkcs: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Security.Cryptography.Xml: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Text.Encodings.Web: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Text.Json: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Runtime.Caching: from 9.0.0-rtm.24473.2 to 9.0.0-rtm.24476.4 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
2024-09-28 12:35:47 +00:00
dotnet-maestro[bot] ea677c3ba5
Update dependencies from https://github.com/dotnet/aspnetcore build 20240926.2 (#5453)
[dev] Update dependencies from dotnet/aspnetcore
2024-09-27 13:14:55 +00:00
dotnet-maestro[bot] f5e5ad0ed5
Update dependencies from https://github.com/dotnet/aspnetcore build 20240924.6 (#5449)
Microsoft.AspNetCore.App.Ref , Microsoft.AspNetCore.App.Runtime.win-x64 , Microsoft.AspNetCore.Mvc.Testing , Microsoft.AspNetCore.TestHost , Microsoft.Extensions.Caching.SqlServer , Microsoft.Extensions.Caching.StackExchangeRedis , Microsoft.Extensions.Diagnostics.HealthChecks , Microsoft.Extensions.Http.Polly , Microsoft.Extensions.ObjectPool
 From Version 9.0.0-rtm.24473.16 -> To Version 9.0.0-rtm.24474.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-26 23:29:30 +00:00
Igor Velikorossov a29449228c
[automated] Merge branch 'main' => 'dev' (#5451) 2024-09-27 09:29:09 +10:00
Iliar Turdushev 68d6894601
Describes compatibility issue with .NET App Insights (#5444) 2024-09-27 09:01:37 +10:00
Igor Velikorossov cbedf9fc01
[automated] Merge branch 'main' => 'dev' (#5448) 2024-09-26 20:31:27 +10:00
joegoldman2 5dc6476147
Clarify HttpRetryStrategyOptions/HttpHedgingStrategyOptions XML doc (#5445)
* Update HttpRetryStrategyOptions XML doc

* Update HttpHedgingStrategyOptions XML doc

* Update HttpHedgingStrategyOptions.cs

* Update HttpRetryStrategyOptions.cs
2024-09-26 18:43:00 +10:00
Igor Velikorossov 4e65e5a8a2
[automated] Merge branch 'main' => 'dev' (#5446) 2024-09-26 10:41:47 +10:00
Makazeu c799d768af
Add KubernetesProbesOptionsValidator to ensure different ports for probes (#5400)
* Add KubernetesProbesOptionsValidator to enforce different ports for probes

* Add another tests that KubernetesProbesOptions are validated when Host is starting

* update

---------

Co-authored-by: Yifan Zhu <yifzhu@microsoft.com>
2024-09-26 09:16:45 +10:00