Files
wehub-resource-sync e768098d0e
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:52 +08:00

73 lines
2.0 KiB
YAML

$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."
tokens_per_message:
type: int
default: 3
description: "This parameter is related with the model_or_deployment_name used in this flow, such as gpt-4 in this sample."
tokens_per_name:
type: int
default: 1
description: "This parameter is related with the model_or_deployment_name used in this flow, such as gpt-4 in this sample."
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}
tokens_per_message: ${inputs.tokens_per_message}
tokens_per_name: ${inputs.tokens_per_name}
- 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