Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
monofuel committed Apr 19, 2024
1 parent 9543d3d commit 6354a13
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/monoprompt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ proc printVersion() =
echo "Monoprompt version 1.0.3"

proc parseMonoprompt*(filename,content: string): seq[Monoprompt] =
## Parse the contents of a monoprompt file
## Parse the contents of a monoprompt file.
## file is passed as args, no fs reads or writes are done.
let lines = content.splitLines
let (head, tail) = splitPath(filename)
Expand Down Expand Up @@ -105,8 +105,9 @@ proc readMonoprompt*(filename: string): seq[Monoprompt] =


proc execute*(mp: Monoprompt) =
## Execute a monoprompt file
## iterates over all the outputs in the monoprompt and executes them with the AI
## Execute a parsed monoprompt.
## iterates over all the outputs in the monoprompt and
## executes them with the specified LLM in the config.
echo &"Processing {mp.filename}"

echo &"Processing output {mp.filename}"
Expand Down Expand Up @@ -150,7 +151,7 @@ You will be given context, and a prompt.
writeFile(outputFilepath, fileOutput)

proc main() =
## CLI main function
## CLI main function.
## parses command line arguments and executes the monoprompt files
var args = commandLineParams()

Expand Down

0 comments on commit 6354a13

Please sign in to comment.