$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json
inputs:
  name:
    type: string
    default: "FilmTriviaGPT"
  goals:
    type: list
    default: ["Introduce 'Lord of the Rings' film trilogy including the film title, release year, director, current age of the director, production company and a brief summary of the film."]
  role:
    type: string
    default: "an AI specialized in film trivia that provides accurate and up-to-date information about movies, directors, actors, and more."
outputs:
  output:
    type: string
    reference: ${autogpt_easy_start.output}
nodes:
- name: autogpt_easy_start
  type: python
  source:
    type: code
    path: autogpt_easy_start.py
  inputs:
    connection: open_ai_connection
    functions: ${functions.output}
    model_or_deployment_name: gpt-4
    system_prompt: ${system_prompt.output}
    triggering_prompt: ${triggering_prompt.output}
    user_prompt: ${user_prompt.output}
- name: system_prompt
  type: prompt
  source:
    type: code
    path: system_prompt.jinja2
  inputs:
    name: ${inputs.name}
    role: ${inputs.role}
- name: user_prompt
  type: prompt
  source:
    type: code
    path: user_prompt.jinja2
  inputs:
    goals: ${generate_goal.output}
- name: triggering_prompt
  type: prompt
  source:
    type: code
    path: triggering_prompt.jinja2
- name: functions
  type: python
  source:
    type: code
    path: functions.py
- name: generate_goal
  type: python
  source:
    type: code
    path: generate_goal.py
  inputs:
    items: ${inputs.goals}
environment:
    python_requirements_txt: requirements.txt
