Function calling in LLMs allows AI agents to interpret user intent and interact with external systems by generating structured outputs that describe function calls without executing them directly. This capability enhances LLMs' ability to perform tasks such as shopping assistance by identifying user needs and invoking appropriate actions through structured data formats.