@@ -20,6 +20,8 @@ public class OpenAIClient {
2020 public virtual ChatClient GetChatClient ( string model ) ;
2121 [ Experimental ( "OPENAI001" ) ]
2222 public virtual ContainerClient GetContainerClient ( ) ;
23+ [ Experimental ( "OPENAI001" ) ]
24+ public virtual ConversationClient GetConversationClient ( ) ;
2325 public virtual EmbeddingClient GetEmbeddingClient ( string model ) ;
2426 [ Experimental ( "OPENAI001" ) ]
2527 public virtual EvaluationClient GetEvaluationClient ( ) ;
@@ -2560,6 +2562,59 @@ public class DeleteContainerResponse : IJsonModel<DeleteContainerResponse>, IPer
25602562 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
25612563 }
25622564}
2565+ namespace OpenAI . Conversations {
2566+ [ Experimental ( "OPENAI001" ) ]
2567+ public class ConversationClient {
2568+ protected ConversationClient ( ) ;
2569+ public ConversationClient ( ApiKeyCredential credential , OpenAIClientOptions options ) ;
2570+ public ConversationClient ( ApiKeyCredential credential ) ;
2571+ public ConversationClient ( AuthenticationPolicy authenticationPolicy , OpenAIClientOptions options ) ;
2572+ public ConversationClient ( AuthenticationPolicy authenticationPolicy ) ;
2573+ protected internal ConversationClient ( ClientPipeline pipeline , OpenAIClientOptions options ) ;
2574+ public ConversationClient ( string apiKey ) ;
2575+ [ Experimental ( "OPENAI001" ) ]
2576+ public Uri Endpoint { get ; }
2577+ public ClientPipeline Pipeline { get ; }
2578+ public virtual ClientResult CreateConversation ( BinaryContent content , RequestOptions options = null ) ;
2579+ public virtual Task < ClientResult > CreateConversationAsync ( BinaryContent content , RequestOptions options = null ) ;
2580+ public virtual ClientResult CreateConversationItems ( string conversationId , BinaryContent content , IEnumerable < IncludedConversationItemProperty > include = null , RequestOptions options = null ) ;
2581+ public virtual Task < ClientResult > CreateConversationItemsAsync ( string conversationId , BinaryContent content , IEnumerable < IncludedConversationItemProperty > include = null , RequestOptions options = null ) ;
2582+ public virtual ClientResult DeleteConversation ( string conversationId , RequestOptions options = null ) ;
2583+ public virtual Task < ClientResult > DeleteConversationAsync ( string conversationId , RequestOptions options = null ) ;
2584+ public virtual ClientResult DeleteConversationItem ( string conversationId , string itemId , RequestOptions options = null ) ;
2585+ public virtual Task < ClientResult > DeleteConversationItemAsync ( string conversationId , string itemId , RequestOptions options = null ) ;
2586+ public virtual ClientResult GetConversation ( string conversationId , RequestOptions options = null ) ;
2587+ public virtual Task < ClientResult > GetConversationAsync ( string conversationId , RequestOptions options = null ) ;
2588+ public virtual ClientResult GetConversationItem ( string conversationId , string itemId , IEnumerable < IncludedConversationItemProperty > include = null , RequestOptions options = null ) ;
2589+ public virtual Task < ClientResult > GetConversationItemAsync ( string conversationId , string itemId , IEnumerable < IncludedConversationItemProperty > include = null , RequestOptions options = null ) ;
2590+ public virtual ClientResult GetConversationItems ( string conversationId , long ? limit = null , string order = null , string after = null , IEnumerable < IncludedConversationItemProperty > include = null , RequestOptions options = null ) ;
2591+ public virtual Task < ClientResult > GetConversationItemsAsync ( string conversationId , long ? limit = null , string order = null , string after = null , IEnumerable < IncludedConversationItemProperty > include = null , RequestOptions options = null ) ;
2592+ public virtual ClientResult UpdateConversation ( string conversationId , BinaryContent content , RequestOptions options = null ) ;
2593+ public virtual Task < ClientResult > UpdateConversationAsync ( string conversationId , BinaryContent content , RequestOptions options = null ) ;
2594+ }
2595+ [ Experimental ( "OPENAI001" ) ]
2596+ public readonly partial struct IncludedConversationItemProperty : IEquatable < IncludedConversationItemProperty > {
2597+ public IncludedConversationItemProperty ( string value ) ;
2598+ public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get ; }
2599+ public static IncludedConversationItemProperty ComputerCallOutputImageUri { get ; }
2600+ public static IncludedConversationItemProperty FileSearchCallResults { get ; }
2601+ public static IncludedConversationItemProperty MessageInputImageUri { get ; }
2602+ public static IncludedConversationItemProperty MessageOutputTextLogprobs { get ; }
2603+ public static IncludedConversationItemProperty ReasoningEncryptedContent { get ; }
2604+ public static IncludedConversationItemProperty WebSearchCallActionSources { get ; }
2605+ public static IncludedConversationItemProperty WebSearchCallResults { get ; }
2606+ public readonly bool Equals ( IncludedConversationItemProperty other ) ;
2607+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
2608+ public override readonly bool Equals ( object obj ) ;
2609+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
2610+ public override readonly int GetHashCode ( ) ;
2611+ public static bool operator == ( IncludedConversationItemProperty left , IncludedConversationItemProperty right ) ;
2612+ public static implicit operator IncludedConversationItemProperty ( string value ) ;
2613+ public static implicit operator IncludedConversationItemProperty ? ( string value ) ;
2614+ public static bool operator != ( IncludedConversationItemProperty left , IncludedConversationItemProperty right ) ;
2615+ public override readonly string ToString ( ) ;
2616+ }
2617+ }
25632618namespace OpenAI . Embeddings {
25642619 public class EmbeddingClient {
25652620 protected EmbeddingClient ( ) ;
@@ -5756,6 +5811,7 @@ public class ResponseItem : IJsonModel<ResponseItem>, IPersistableModel<Response
57565811 public static WebSearchCallResponseItem CreateWebSearchCallItem ( ) ;
57575812 protected virtual ResponseItem JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
57585813 protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5814+ public static explicit operator ResponseItem ( ClientResult result ) ;
57595815 protected virtual ResponseItem PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
57605816 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
57615817 }
0 commit comments