https://retellai.com/?utm_source=discord&utm_medium=seo logo
does retell use the function description to determ...
# ❓・ai-evy-support
m
@AI Evy does retell use the function description to determine what should be sent
a
Thanks for tagging me @Mikey. I'll look through relevant sources and get back to you shortly.
### Answer Yes, Retell uses the function description to help the LLM determine when to call a function and what parameters to extract. [(1) ]() The LLM decides when a function is needed based on the conversation context, then extracts the required information from the conversation to populate the function's parameters. For example, when defining a function like
end_call
, you include a description such as
"End the call only when user explicitly requests it."
— this tells the LLM the conditions under which it should trigger that function. [(2) ]()
Copy code
javascript
{
  type: "function",
  function: {
    name: "end_call",
    description: "End the call only when user explicitly requests it.",
    parameters: {
      type: "object",
      properties: {
        message: {
          type: "string",
The description field is critical because it guides the model's decision-making about when to invoke the function and what arguments to pass. , [(1) ]()
​ To learn more, see the sources I considered: [[1] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) [[2] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.