ojob.io/ai/prompt

Usage

ojob ojob.io/ai/prompt prompt="Produce an array 'results' with the sumamry of the command output." context="This is the result of running the 'abc' command." instructions="Always answer with an array." file=/tmp/abc.txt withMD=true 

Description

Using a LLM model returns the result of a prompt, with an optional context as provided text (through stdin) or from a file. The model should be defined through
OpenAF's sBuckets or system variable (MODEL).

Expects

Name Description
prompt The text prompt to ask to the LLM model
context The text context of the provided text.
instructions Provide additional instructions to the LLM model
file The file to describe in instead of stdin
withMD If true, the output will be in Markdown format