Skip to content

Stream assistant events as threadStatus #1949

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 9 commits into
base: main
Choose a base branch
from

Conversation

jeremyphilemon
Copy link
Contributor

@jeremyphilemon jeremyphilemon commented Jun 13, 2024

  • add new type of stream part b:<AssistantStreamEvent>
  • stream thread status as threadStatus
  • update + add tests
  • update reference

@jeremyphilemon jeremyphilemon force-pushed the jrmy/ai-1067-feat-support-all-stream-events-in-useassistant branch from 24fa9c2 to 7358c7b Compare June 14, 2024 08:20
@jeremyphilemon jeremyphilemon marked this pull request as ready for review June 14, 2024 09:36
@jeremyphilemon jeremyphilemon changed the title Stream assistant events as status Stream assistant events as threadStatus Jun 14, 2024
@jeremyphilemon jeremyphilemon requested a review from lgrammel June 14, 2024 09:40
break;
}

case 'assistant_control_data': {
setThreadId(value.threadId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

how are we setting the thread id now?

Copy link
Contributor Author

@jeremyphilemon jeremyphilemon Jun 19, 2024

Choose a reason for hiding this comment

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

It's set here when the event type is thread.run.created

content: '',
data: value.data,
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we still have the ability to send data? i think it was for custom data

}),
);
});

describe('loading state', () => {
it('should show loading state', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

leave old test to ensure backwards compat?

@jeremyphilemon jeremyphilemon force-pushed the jrmy/ai-1067-feat-support-all-stream-events-in-useassistant branch from 57f286b to 37bcd36 Compare June 17, 2024 12:30
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