How to run code snippets in chat prompts. I want to be run code snippet first and then use the output of the code as prompts.
you can not run or execute code in chat prompt,
but here is what you can do
- run chat prompt for function calling
- function calling will execute/ run your code and give you output
3)and then send your output as 2nd request to process to get final result.
The idea to use function calling can be done when using the API, but how is the user supposed to declare the tool functions available to the model from the chat interface?
I think it can’t be done from inside AI studio.