https://discord.gg/botpress logo
Fix issue with transition tool trimming conditions
# 👀feature-requests
d
If you add a transition tool to an autonomous node and leave a space on the end (I did this accidentally), the bot will attempt to use the transition tool and fail, because the strings its given within the conditions have been trimmed Therefore you get an exception that the condition the LLM is requesting to does not match any that are in the array of options, here is an example below: CodeExecutionError: [ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "received": "when issue has been diagnosed and the user wants to book a job.", "code": "invalid_literal", "expected": "when issue has been diagnosed and the user wants to book a job. ", "path": [ "condition" ], "message": "Invalid literal value, expected \"when issue has been diagnosed and the user wants to book a job. \"" } ], "name": "ZodError" }, { "issues": [ { "received": "when issue has been diagnosed and the user wants to book a job.", "code": "invalid_literal", "expected": "when issue has been diagnosed and user wants to fix it themselves.", "path": [ "condition" ], "message": "Invalid literal value, expected \"when issue has been diagnosed and user wants to fix it themselves.\"" } ], "name": "ZodError" } ], "path": [ "condition" ], "message": "Invalid input" } ]