Skip to content
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

Implement Agent streaming with test and samples #31696

Merged
merged 5 commits into from
Nov 11, 2024

Conversation

ganeshyb
Copy link
Member

@ganeshyb ganeshyb commented Nov 8, 2024

Two new streaming API for Running Agents.
createRunStreaming: (threadId: string, assistantId: string, options?: Omit<CreateRunOptions, "assistant_id">, requestParams?: RequestParameters) => AsyncIterable<AgentStreamEventMessage>;

createThreadAndRunStreaming: (assistantId: string, options?: Omit<CreateAndRunThreadOptions, "assistant_id">, requestParams?: RequestParameters)

Leverage Azure Core SSE package for streaming.

This also brings in some models omitted by the JS code gen, necessary for streaming.

@ganeshyb ganeshyb requested review from a team, bterlson and xirzec as code owners November 8, 2024 16:42
@ganeshyb ganeshyb merged commit 8aeb475 into feature/azure-ai-sdk Nov 11, 2024
11 of 14 checks passed
@ganeshyb ganeshyb deleted the users/ganeshbh/agents-stream branch November 11, 2024 16:51
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.

2 participants