Commit Graph
812 Commits
Author SHA1 Message Date
westeyandGitHub 4d3b17eb27 Add sample for OpenAIAssistant ChatClientAgent (#74)
* Add sample for OpenAIAssistant

* Fix warning

* Add tools sample and simplify running samples.

* Restructure samples to show common features separate from each type of underlying IChatClient implementation.

* Remove unecessary suppression.

* Renaming namespaces based on suggestion from PR.
2025-06-13 17:11:56 +01:00
westeyandGitHub d6dc360215 Update ChatClientAgentThread to support both in-memory and service storage. (#70)
* Update ChatClientAgentThread to support both in-memory and service storage.

* Fix typos.

* Address PR comments

* Move code to reusable sections.

* Remove DefaultThreadStorageLocation

* Change thread type naming and make it internal

* Fix bug for streaming case.

* Add additional unit tests

* Add more unit tests to verify agent's thread update behavior.
2025-06-12 13:28:08 +00:00
2c75f13337 .Net: Add ChatClientAgent Samples - OpenAI Model Client (#72)
* Add Streaming API

* Removing InstructionsRole

* Updating thread notification strategy

* Fix net472 failing

* Small fixes

* Adding Samples for OpenAI

* WIP samples

* default runsettings for unit tests

* Adding first samples with OpenAIModelChatClientAgents

* Removing OpenAI dependency on the sample utility

* Release -> Debug update for GettingStarted project

* Fix GettingStarted.csproj failing to build in Release

* Update dotnet/src/Shared/Samples/BaseSample.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Address PR feedback

* Fix Step 1 samples

* Simplify code

* Address PR feedback

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-12 12:22:07 +00:00
Roger BarretoandGitHub d761c92a52 .Net ChatClientAgent Streaming API Impl. (#69)
* Add Streaming API

* Removing InstructionsRole

* Updating thread notification strategy

* Fix net472 failing

* Address typo
2025-06-12 06:18:47 +00:00
Roger BarretoandGitHub 89daf173c4 .Net: ChatClientAgent (Non-Streaming initial impl) (#65)
* Add non-streaming impl

* Add missing UT

* AgentThread UT + ensuring behavior

* Fix warnings

* Increase code coverage

* Add UT

* Updated abstractions fixes

* Adding AgentInvokingChatClient for instruction handling logic

* Moving AsAgentInvokingClient to ChatClientExtensions

* Address PR Feedback

* Address PR feedback

* Address PR feedback

* Signature updates for chat run options
2025-06-11 10:21:30 +00:00
westeyandGitHub 46a117d581 Remove create/delete from AgentThread to avoid needing a thread implementation for each service. (#64)
* Remove create/delete from thread to avoid needing a thread implementation for each service.

* Address pr feedback.
2025-06-10 14:51:37 +00:00
westeyandGitHub 6882e003f5 Add IMessagesRetrievableThread interface (#63)
* Add a MessageAgentThread and GetService for Thread

* Remove redundant check and experimental attribuet.

* Address PR comments.

* Fix file name.

* Update comments.

* Remove GetService
2025-06-09 15:21:42 +00:00
Roger BarretoandGitHub 2a1c8ea1a3 Adding nuget.config + Small Async fix (#62)
* Async fix

* Fix warnings
2025-06-09 11:33:27 +00:00
af2295f130 .Net: Added Agent abstractions from SK repository (#56)
* Fixed project build in Visual Studio

* Added Agent abstractions

* Remove features we are not porting over, addressing PR comments and making updates as per agreed design.

* Add create thread method.

* Add unit tests and update invoke response type to async

* Address PR comments and fix formatting.

* Switch to shared null checker to fix build failures.

* Add additional tests to increase code coverage

* Seal mockagent

* Fix line coverage failure

* Improve coverage check formatting

---------

Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
2025-06-09 11:35:41 +01:00
Dmytro StrukandGitHub 41facf3a2d .Net: Added shared classes (#58)
* Added Throw shared class

* Added Experimental attribute

* Added IsExternalInit

* Added TrimAttributes

* Small update

* Small update

* Suppress warning

* Added comment

* Updated LegacySupport.props

* Small updates
2025-06-04 08:44:12 +00:00
Dmytro StrukandGitHub 43316ecb50 Fixed project build in Visual Studio (#55) 2025-06-03 08:51:13 +00:00
westeyandGitHub d0531bb93b Add skeleton dotnet project structure (#49)
* Add skeleton dotnet project structure

* Fix casing in import statement.

* Moving tests folder to be a sibling of src.

* Update tests to use directory.builds.props and only build necessary frameworks.

* Move more test props to directory.build.props

* Add AotCompatible flag and .net 8.0

* Rename Tests to UnitTests

* Add global.json file

* Update publish mapping for unit tests to debug, to reduce build times.
2025-05-29 15:58:57 +00:00