OpenAI requests can include a string or a symbol, so the agent currently does an || check to make sure one or the other is avaliable. In performace testing an || check was faster than checking is_a or type_of check.
There is still yet probably a better way to do this, which was captured during a code review. Lets see if we can clean this code up.
OpenAI requests can include a string or a symbol, so the agent currently does an
||
check to make sure one or the other is avaliable. In performace testing an||
check was faster than checkingis_a
ortype_of
check.There is still yet probably a better way to do this, which was captured during a code review. Lets see if we can clean this code up.