Skip to content

Update testConversation.py#246

Merged
andrewrfreed merged 2 commits intomasterfrom
245_disambiguation_bug
Jan 25, 2024
Merged

Update testConversation.py#246
andrewrfreed merged 2 commits intomasterfrom
245_disambiguation_bug

Conversation

@victorpovar
Copy link
Copy Markdown
Collaborator

@victorpovar victorpovar commented Jan 24, 2024

Resolve issue #245

DCO 1.1 Signed-off-by: Victor Povar victorp@ca.ibm.com

Copy link
Copy Markdown
Collaborator

@andrewrfreed andrewrfreed left a comment

Choose a reason for hiding this comment

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

Good error fix, one suggestion to add a comment.

Comment thread utils/testConversation.py
elif 'generic' in resp['output'] and len(resp['output']['generic']) != 0:
elif 'generic' in resp['output'] and len(resp['output']['generic']) != 0 and 'text' in resp['output']['generic'][0]:
response_text_list = [ resp['output']['generic'][0]['text'] ]
elif 'generic' in resp['output'] and len(resp['output']['generic']) != 0 and 'title' in resp['output']['generic'][0]:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@victorpovar can you add a comment here in the code that this block is supporting disambiguation nodes?
Otherwise looks good to me and nice catch.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@andrewrfreed Done, added a comment. Thank you for the review.

@victorpovar
Copy link
Copy Markdown
Collaborator Author

Added additional comment to add additional details.

Copy link
Copy Markdown
Collaborator

@andrewrfreed andrewrfreed left a comment

Choose a reason for hiding this comment

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

LGTM!

@andrewrfreed andrewrfreed merged commit c6d91ab into master Jan 25, 2024
@andrewrfreed andrewrfreed deleted the 245_disambiguation_bug branch January 25, 2024 17:59
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.

failure in testConversation.py class when encountering disambiguation responses

2 participants