Skip to content

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

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Conversation

annelo-msft
Copy link
Collaborator

Based in WIP SCM build here: Azure/azure-sdk-for-net#46737

[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);
Copy link
Collaborator Author

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);
Copy link
Collaborator Author

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);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get message stream?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant