it's a silly pipeline but as a begin... ```include...
# nextflow-plugins
j
it's a silly pipeline but as a begin...
Copy code
include { prompt } from 'plugin/nf-llm'

instructions = """I would like to run an echo linux command showing a list of 10 random names of famous people
Add the birthday as yyyy/MM/dd and one tip of everyone
I would like to show them as a csv text separated by ';' character
please return the raw command without any format as it will be executed as it
"""

process hello {
    output:
    stdout

    script:
    def cmd = prompt(instructions, [engine:'gemini'])
    """
    $cmd
    """
}

workflow{
    hello | splitCsv(header:true, sep:';') | view
}
-----------
executor >  local (1)
[e6/61eba9] process > hello [100%] 1 of 1 ✔
[Name:Albert Einstein, Birthday:1879/03/14, Tip:Never stop questioning.]
[Name:Marie Curie, Birthday:1867/11/07, Tip:Believe in your dreams, even if they seem impossible.]
[Name:Nelson Mandela, Birthday:1918/07/18, Tip:Education is the most powerful weapon which you can use to change the world.]
[Name:Leonardo da Vinci, Birthday:1452/04/15, Tip:Seek knowledge from every source.]
[Name:William Shakespeare, Birthday:1564/04/26, Tip:The world is your stage.]
[Name:Rosa Parks, Birthday:1913/02/04, Tip:Stand up for what you believe in, even if you stand alone.]
[Name:Martin Luther King Jr., Birthday:1929/01/15, Tip:Darkness cannot drive out darkness: only light can do that. Hate cannot drive out hate: only love can do that.]
[Name:Jane Goodall, Birthday:1934/04/03, Tip:Every individual matters. Every individual has a role to play. Every individual makes a difference.]
[Name:Stephen Hawking, Birthday:1942/01/08, Tip:Remember to look up at the stars and not down at your feet.]
[Name:Mahatma Gandhi, Birthday:1869/10/02, Tip:Be the change that you wish to see in the world.]
Pipeline complete! 👋
❤️ 4
b
j
yep, this gave me the idea "There is a chatgpt plugin but ... what if we can choose which LLM to use ?"