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

[FIX]: Include metadata with Assistant say util #2300

Merged
merged 4 commits into from
Oct 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test
misscoded committed Oct 25, 2024
commit e85abb9bf5ca1db78ca2cc5c4be22f30c15227cd
3 changes: 3 additions & 0 deletions test/unit/Assistant.spec.ts
Original file line number Diff line number Diff line change
@@ -354,6 +354,9 @@ describe('Assistant class', () => {
const { enrichAssistantArgs } = await importAssistant();
const threadStartedArgs = enrichAssistantArgs(mockThreadContextStore, mockThreadStartedArgs);

// Verify that get is not called prior to say being used
sinon.assert.notCalled(mockThreadContextStore.get);

await threadStartedArgs.say('Say called!');

sinon.assert.calledOnce(mockThreadContextStore.get);