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

1410 Коммитов

Автор SHA1 Сообщение Дата
Eric Erhardt 33e95b87cc Move clean logic to target.
Include the rest of the libraries in the repo
2024-11-11 15:14:53 -06:00
Eric Erhardt 10fcb7bbc9 Hook the Test target as well so the test runs in CI 2024-11-11 14:44:16 -06:00
Eric Erhardt c847f9a615 Make dotnet test publish the TestApp and fail if there are any warnings/errors 2024-11-11 13:45:26 -06:00
Stephen Toub d42d3e58c5
Tweak ChatMessage/StreamingChatCompletionUpdate.ToString (#5617)
* Tweak ChatMessage/StreamingChatCompletionUpdate.ToString

Include all text rather than just the first text content.

* Address PR feedback and fix / add tests
2024-11-11 13:43:55 -05:00
Eric Erhardt 86deeab76e Clean up the AotCompatibility.TestApp
- Remove unnecessary code in Program.cs by turning off ReferenceTrimmer
- Make the project publishable without passing in a TFM by only targeting a single TFM
2024-11-11 11:05:06 -06:00
Eric Erhardt 002cdb70bf Remove AI in Microsoft.Extensions.AI.AotCompatibility.TestApp 2024-11-11 10:55:20 -06:00
Stephen Toub 81847a8c8b
Add DebuggerDisplay for DataContent (#5618) 2024-11-11 10:46:16 -05:00
Stephen Toub 148e221539
Use ToChatCompletion / ToStreamingChatCompletionUpdates in CachingChatClient (#5616)
* Use ToChatCompletion / ToStreamingChatCompletionUpdates in CachingChatClient

Adds a ToStreamingChatCompletionUpdates method that's the counterpart to the recently added ToChatCompletion.

Then uses both from CachingChatClient instead of its now bespoke coalescing implementation. When coalescing is enabled (the default), CachingChatClient caches everything as a ChatCompletion, rather than distinguishing streaming and non-streaming.

* Address PR feedback
2024-11-11 10:12:10 -05:00
Stephen Toub c163960f9e
Use ToChatCompletion in OpenTelemetryChatClient (#5614) 2024-11-11 09:38:04 -05:00
Genevieve Warren 3f1f59cd52
Docs improvements (#5613)
* docs improvements

* small addition

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>

---------

Co-authored-by: Stephen Toub <stoub@microsoft.com>
2024-11-10 13:11:49 -05:00
Stephen Toub c86b7ead53
Add ToChatCompletion{Async} methods for combining StreamingChatCompleteUpdates (#5605) 2024-11-08 07:46:59 -05:00
dotnet-maestro[bot] d8f84d7467
[main] Update dependencies from dotnet/arcade (#5610)
* Update dependencies from https://github.com/dotnet/arcade build 20241016.2

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk
 From Version 9.0.0-beta.24501.3 -> To Version 9.0.0-beta.24516.2

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2024-11-08 11:31:46 +11:00
Stephen Toub f02cfa33a4
Update M.E.AI CHANGELOG.mds for latest preview (#5609) 2024-11-07 17:42:10 -05:00
Stephen Toub b74ff9cb86
Add logging/activities to FunctionInvokingChatClient (#5596)
* Add logging/activities to FunctionInvokingChatClient

* Change FunctionInvokingChatClient to use ActivitySource from OpenTelemetryChatClient
2024-11-07 15:50:03 -05:00
Stephen Toub aba6fd63b4
Make IChatClient/IEmbeddingGenerator.GetService non-generic (#5608) 2024-11-07 14:08:34 -05:00
Stephen Toub 8b320e2f70
Rework UseChatOptions as ConfigureOptions (#5606)
* Update README to include a section on UseChatOptions

* Rework UseChat/EmbeddingGenerationOptions to always clone

The callbacks now configure the supplied instance.
2024-11-07 14:04:04 -05:00
Darius Letterman 1af24f570a
handle catch-all parameters (#5604) 2024-11-07 16:05:34 +01:00
Jose Perez Rodriguez 16acdbf144 Merged PR 44778: Merging branch release/9.0 into internal/release/9.0 2024-11-06 22:12:31 +00:00
Jose Perez Rodriguez d468173295
[release/9.0] Merging changes from main into release branch for November release (#5602) 2024-11-06 09:38:41 -08:00
Stephen Toub f902047c64 Set DisableNETStandardCompatErrors for M.E.AI projects (#5603) 2024-11-06 08:49:32 -05:00
Stephen Toub f05cf03a40
Set DisableNETStandardCompatErrors for M.E.AI projects (#5603) 2024-11-06 08:24:50 -05:00
Marc Gravell fdf418036e
HybridCache: don't log cancellation as failure (#5601) 2024-11-06 11:32:40 +00:00
Igor Velikorossov 5bf9f9fd9d
Assign ownership (#5600)
Resolves #4656
2024-11-06 08:57:07 +11:00
Marc Gravell 80c9263380 HybridCache stability and logging improvements (#5467)
* - handle serialization failures
- enforce payload quota
- enforce key validity
- add proper logging (infrastructure failure: needs attn)

# Conflicts:
#	src/Libraries/Microsoft.Extensions.Caching.Hybrid/Microsoft.Extensions.Caching.Hybrid.csproj

* - add "callback" to .dic
- log deserialization failures
- expose serialization failures
- tests for serialization logging scenarios

* support and tests for stability despite unreliable L2

* nit

* Compile for NS2.0

* include enabled check in our log output

* add event-source tracing and counters

* explicitly specify event-source guid

* satisfy the stylebot overloads

* nix SDT

* fix failing CI test

* limit to net462

* PR feedback (all except event tests)

* naming

* add event source tests

* fix redundant comment

* add clarification

* more clarifications

* dance for our robot overlords

* drop Microsoft.Extensions.Telemetry.Abstractions package-ref

* fix glitchy L2 test

* better tracking for invalid event-source state

* reserve non-printable characters from keys, to prevent L2 abuse

* improve test output for ETW

* tyop

* ETW tests: allow longer if needed

* whitespace

* more ETW fixins

---------

Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
2024-11-05 10:27:25 -08:00
Stephen Toub 228a96dcda Add UseEmbeddingGenerationOptions (#5594)
* Add UseEmbeddingGenerationOptions

Counterpart to UseChatOptions

* Document/test null options returned from callback
2024-11-05 10:27:14 -08:00
Stephen Toub 32505677dc Improve AdditionalPropertiesDictionary (#5593)
- Add a strongly-typed Enumerator
- Add a TryAdd method
- Add a DebuggerDisplay for Count
- Add a DebuggerTypeProxy for the collection of properties
2024-11-05 10:27:03 -08:00
Eirik Tsarpalis 23b073207f Improve JsonSchemaExporter trimmer safety. (#5591)
* Improve JsonSchemaExporter trimmer safety.

* Remove var

* Address feedback.

* Remove DynamicallyAccessedMemberTypes.All

* Extract reflection helpers into separate file and remove a number of warning suppressions.

* Re-enable failing tests that were patched in .NET 9
2024-11-05 10:26:51 -08:00
Eirik Tsarpalis ce9a807d4b Plug JsonSchemaExporter test data to the AIJsonUtilities tests (#5590)
* Plug JsonSchemaExporter test data to the AIJsonUtilities tests

* Update src/LegacySupport/DiagnosticAttributes/README.md

* Update src/Libraries/Microsoft.Extensions.AI.Abstractions/Utilities/AIJsonUtilities.Schema.cs

* Address feedback.
2024-11-05 10:26:39 -08:00
Eirik Tsarpalis 365f33ce1f Lower `AIJsonUtilities` to STJv8 and move to Abstractions library. (#5582)
* Lower AIJsonUtilities to STJv8 and move to Abstractions library.

* Add README.md
2024-11-05 10:26:25 -08:00
Stephen Toub cd9da61b84 Add ChatOptions.Seed (#5587) 2024-11-05 10:26:15 -08:00
Stephen Toub fe9e5bf9a9 Add ImageContent integration test (#5586) 2024-11-05 10:26:05 -08:00
Eirik Tsarpalis 7f60bea106 fix exception when generating boolean schemas (#5585) 2024-11-05 10:25:42 -08:00
Stephen Toub e90c1fa05e Fix AzureAIInferenceEmbeddingGenerator to respect EmbeddingGenerationOptions.Dimensions (#5575)
Merge conflict blip.
2024-11-05 10:25:05 -08:00
Stephen Toub 2aa1535ded Explicitly reference System.Memory.Data in OpenAI/AzureAIInference projects (#5576)
To ensure a recent version is used.
2024-11-05 10:24:55 -08:00
Stephen Toub 500abd72bf Add changelogs for M.E.AI projects (#5577) 2024-11-05 10:24:45 -08:00
Stephen Toub 7e59b8b4a2 Add NativeAOT testapp project for M.E.AI (#5573)
* Add NativeAOT testapp project for M.E.AI

* Address PR feedback
2024-11-05 10:24:23 -08:00
Marc Gravell 9eea77d211
HybridCache stability and logging improvements (#5467)
* - handle serialization failures
- enforce payload quota
- enforce key validity
- add proper logging (infrastructure failure: needs attn)

# Conflicts:
#	src/Libraries/Microsoft.Extensions.Caching.Hybrid/Microsoft.Extensions.Caching.Hybrid.csproj

* - add "callback" to .dic
- log deserialization failures
- expose serialization failures
- tests for serialization logging scenarios

* support and tests for stability despite unreliable L2

* nit

* Compile for NS2.0

* include enabled check in our log output

* add event-source tracing and counters

* explicitly specify event-source guid

* satisfy the stylebot overloads

* nix SDT

* fix failing CI test

* limit to net462

* PR feedback (all except event tests)

* naming

* add event source tests

* fix redundant comment

* add clarification

* more clarifications

* dance for our robot overlords

* drop Microsoft.Extensions.Telemetry.Abstractions package-ref

* fix glitchy L2 test

* better tracking for invalid event-source state

* reserve non-printable characters from keys, to prevent L2 abuse

* improve test output for ETW

* tyop

* ETW tests: allow longer if needed

* whitespace

* more ETW fixins

---------

Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
2024-11-04 11:45:20 +00:00
Stephen Toub a12664ed4a
Add UseEmbeddingGenerationOptions (#5594)
* Add UseEmbeddingGenerationOptions

Counterpart to UseChatOptions

* Document/test null options returned from callback
2024-11-01 10:19:52 -04:00
Stephen Toub 53783e75e2
Improve AdditionalPropertiesDictionary (#5593)
- Add a strongly-typed Enumerator
- Add a TryAdd method
- Add a DebuggerDisplay for Count
- Add a DebuggerTypeProxy for the collection of properties
2024-11-01 09:38:21 -04:00
Eirik Tsarpalis 0672220635
Improve JsonSchemaExporter trimmer safety. (#5591)
* Improve JsonSchemaExporter trimmer safety.

* Remove var

* Address feedback.

* Remove DynamicallyAccessedMemberTypes.All

* Extract reflection helpers into separate file and remove a number of warning suppressions.

* Re-enable failing tests that were patched in .NET 9
2024-11-01 11:20:36 +00:00
Eirik Tsarpalis 6ada76637c
Plug JsonSchemaExporter test data to the AIJsonUtilities tests (#5590)
* Plug JsonSchemaExporter test data to the AIJsonUtilities tests

* Update src/LegacySupport/DiagnosticAttributes/README.md

* Update src/Libraries/Microsoft.Extensions.AI.Abstractions/Utilities/AIJsonUtilities.Schema.cs

* Address feedback.
2024-10-31 17:20:53 +00:00
Eirik Tsarpalis 6811fd5d24
Lower `AIJsonUtilities` to STJv8 and move to Abstractions library. (#5582)
* Lower AIJsonUtilities to STJv8 and move to Abstractions library.

* Add README.md
2024-10-31 10:34:50 -04:00
Stephen Toub 17e5ecdd8d
Add ChatOptions.Seed (#5587) 2024-10-31 10:33:56 -04:00
Stephen Toub e18a05582e
Add ImageContent integration test (#5586) 2024-10-30 13:34:55 -04:00
Eirik Tsarpalis bf0e0a4c3e
fix exception when generating boolean schemas (#5585) 2024-10-30 14:40:45 +00:00
Makazeu 8327c2fddd
Merge ResourceMonitoringOptions.Linux.cs to ResourceMonitoringOptions.cs (#5580) 2024-10-29 21:49:05 +00:00
Stephen Toub 0ce85d2adf
Fix AzureAIInferenceEmbeddingGenerator to respect EmbeddingGenerationOptions.Dimensions (#5575)
Merge conflict blip.
2024-10-26 08:34:44 +01:00
Stephen Toub 0db3caafac
Explicitly reference System.Memory.Data in OpenAI/AzureAIInference projects (#5576)
To ensure a recent version is used.
2024-10-26 08:34:31 +01:00
Stephen Toub e0c951d0ae
Add changelogs for M.E.AI projects (#5577) 2024-10-26 08:34:11 +01:00
Stephen Toub 090d7a2113
Add NativeAOT testapp project for M.E.AI (#5573)
* Add NativeAOT testapp project for M.E.AI

* Address PR feedback
2024-10-26 03:10:16 +00:00