Commit Graph

762 Commits

  • 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.
  • 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.
  • .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>
  • .Net ChatClientAgent Streaming API Impl. (#69)
    * Add Streaming API
    
    * Removing InstructionsRole
    
    * Updating thread notification strategy
    
    * Fix net472 failing
    
    * Address typo
  • .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
  • 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.
  • 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
  • Adding nuget.config + Small Async fix (#62)
    * Async fix
    
    * Fix warnings
  • .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>
  • .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
  • 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.