Commit Graph

1 Commits

  • .NET: Add AsIChatClientWithStoredOutputDisabled for ProjectResponsesClient (#4911)
    * Add AsIChatClientWithStoredOutputDisabled for ProjectResponsesClient
    
    Add extension method on ProjectResponsesClient in Microsoft.Agents.AI.AzureAI
    package (Azure.AI.Extensions.OpenAI namespace) mirroring the existing extension
    on ResponsesClient in the OpenAI package. This enables Azure AI consumers to
    disable server-side response storage without depending on the OpenAI package.
    
    - New ProjectResponsesClientExtensions class with AsIChatClientWithStoredOutputDisabled
    - Optional deploymentName parameter (model is no longer required)
    - Updated OpenAI counterpart doc to remove 'Required' wording for model param
    - Added unit tests covering null guard, inner client accessibility,
      StoredOutputEnabled=false, and reasoning encrypted content inclusion/exclusion
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    
    * Preserve existing RawRepresentationFactory when disabling stored output
    
    Address PR review feedback: wrap/chain the existing factory instead of
    replacing it, so upstream configuration (e.g., deploymentName/model defaults
    from AsIChatClient) is preserved.
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>