A function is the contract between the application and the AI model. It defines the desired input and output.

With baml, you can modify the implementation of a function and keep the application logic that uses the function unchanged.

Checkout PromptFiddle to see various BAML function examples.