When using certain models, you may wish to add a role to a section of a message.

This can be done by adding a {#chat(role)} block into the prompt.

For example:

// example.baml
class Resume {
  name string
  skills string[]

function ExtractResume {
  input (resume_text: string)
  output Resume[]

impl<llm, ExtractResume> version1 {
  client GPT4Client // client definition not shown
  prompt #"
    Parse the following resume and return a structured representation of the data in the schema below.

    Output in this JSON format:

    Output JSON: