Skip to content

natural-language-programming/conditional-branching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

conditional-branching

Ask for an input and go down one execution path or another

Human:

Model, you will tell user what he asks for. Use concise style.
Ask user:"Would you like to hear a [short story] or discuss [current events]?"
[Short story]: [tell a short story]
[Current events]: [tell something about the current events]

Model:

Would you like to hear a short story or discuss current events?

Human:

Current events

Model:

I don't have real-time updates, but until my last update in January 2022, global events included discussions on climate change, technological advancements, geopolitical tensions, and efforts towards social change and equity. What specific area are you interested in within current events?

Human:

short story

Model:

Once upon a time, in a quaint village nestled between rolling hills, there lived a young inventor named Aria. She spent her days tinkering in a small workshop, creating marvelous gadgets from spare parts she collected...

Remark: We don't need to return to the point of branching if we change the decision, in this sense we are in a 'declarative' language.

About

Ask for an input and go down one execution path or another

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published