Insert value that contains code into a code block -- how can I *not* to have " " around it?

I am having a string of LLM calls modify, test, and refine JS code. I then want to pass that code to the Code block and have AP run it. I have solved every part of this problem except that the input.variable (key value) always results the code being surrounded by double quotes.

I have tried using a text helper to delete all instances of " and even copied and pasted the " from the previous output, but it doesn’t work. AP seems to always want to surround the code with " and insists on adding it to the code block with the double quotation marks around it.

Is AP doing this because it would not recognize the input.variable value if we placed it in " " manually?

Is there any way around this?

Thanks for your help!

Hello @Riley ,

When the code from LLM calls is in text form, it will be surrounded by double quotes. You can directly pass this text as a key-value pair in the code step and use it within the code block.

Additionally, could you please share a screenshot of the code step setup? This will help us better understand the issue.