-
Notifications
You must be signed in to change notification settings - Fork 14
Experiment #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Experiment #312
Conversation
…M-provided two-way subclient
.dotnet/api/OpenAI.netstandard2.0.cs
Outdated
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public virtual Task SendCommandAsync(BinaryData data, RequestOptions options); | ||
public Task StartResponseTurnAsync(CancellationToken cancellationToken = default); | ||
public virtual AssistantConversation StartConversation(ConversationSessionOptions options, CancellationToken cancellationToken = default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should take AssistantConversationOptions
public virtual AssistantConversation StartConversation(BinaryContent configuration, TwoWayClient.TwoWayPipelineOptions conversationOptions, RequestOptions requestOptions); | ||
public AssistantConversation StartConversation(CancellationToken cancellationToken = default); | ||
public virtual Task<AssistantConversation> StartConversationAsync(AssistantConversationOptions options, CancellationToken cancellationToken = default); | ||
public virtual Task<AssistantConversation> StartConversationAsync(BinaryContent configuration, TwoWayClient.TwoWayPipelineOptions conversationOptions, RequestOptions requestOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it look like to configure the conversation in a protocol-only world? (When we have munged HTTP and WebSocket messages -- i.e. making two calls on different protocols from the Start method?)
|
||
List<ConversationUpdate> receivedUpdates = []; | ||
IAsyncEnumerable<TwoWayResult<ConversationResponse>> responseStream = conversation.GetResponseStreamAsync(CancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get message stream?
Based in WIP SCM build here: Azure/azure-sdk-for-net#46737