Edge-case to handle weird instances when the response returned by the Assistant is not always a string
Issue
The ' '.join(respone_text_list) will fail if the items in the list are not type string. I encountered this edge case when running the notebook for the client, and they returned a blank dictionary, {}, to the user (see attached). This is an issue that needs to be fixed at the client site, but added this extra check for robustness.
TLDR;
Edge-case to handle weird instances when the response returned by the Assistant is not always a string
Issue
The
' '.join(respone_text_list)
will fail if the items in the list are not type string. I encountered this edge case when running the notebook for the client, and they returned a blank dictionary,{}
, to the user (see attached). This is an issue that needs to be fixed at the client site, but added this extra check for robustness.DCO 1.1 Signed-off-by: Pratyush Singh pratyushsingh@ibm.com