https://retellai.com/?utm_source=discord&utm_medium=seo logo
In simulation I need to mock a custom function mul...
# ❓・ai-evy-support
l
@AI Evy In simulation I need to mock a custom function multiple times as I need different outputs for the same conversation
a
Thanks for tagging me @legend28469. I'll look through relevant sources and get back to you shortly.
### Answer The documentation describes that in the LLM Playground, you can add a mock response for functions during testing so that the response is returned instead of making an actual function call [(1) ]() . However, it does not specify support for mocking the same custom function with multiple different outputs within a single conversation. There is no information in the sources about configuring multiple mock outputs for the same function in a single simulation session. Check out these potentially useful sources: [Manually test your agent]() , [Batch test your agent]() , [Custom Function]() . Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Manually test your agent](https://docs.retellai.com/test/llm-playground) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy okay well can I determine the output at least of the function in a conversation so that the first time it's called it's one output and the second time it's a different output?
a
Thanks for the follow-up, @legend28469. I'll get back to you soon.
### Answer The documentation states that in the LLM Playground, you can add a mock response for functions during testing so that a fixed response is returned instead of making an actual function call [(1) ]() . However, there is no documentation indicating that you can configure the same custom function to return different outputs for multiple calls within a single conversation—only one mock response per function is described . If you need to mock different outputs for repeated calls to the same function in a single test conversation, this behavior is not documented as supported in the available sources .
​ To learn more, see the sources I considered: [[1] Manually test your agent](https://docs.retellai.com/test/llm-playground) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.