Run
Note: Run these in your terminal, after praisonai is installed and a key is set. Try it Yourself runs Python, not the praisonai command.
A question
praisonai run takes the prompt after the word run. Use this when you want the run command rather than the bare prompt.
The quotes keep the question as one argument.
Example
praisonai run "What is the capital of France?"Example explained
- run — The subcommand that sends one prompt.
Same question in Python
Try it Yourself mirrors praisonai run with start — useful when you are scripting before you switch back to the CLI.
Example
from praisonai import Agent
agent = Agent(instructions="Answer factual questions in one sentence.")
print(agent.start("What is the capital of France?"))Example explained
- from praisonai import Agent — Imports Agent needed for same question in python.
- Agent(…) — Instantiates the Agent configured for same question in python.
- .start(…) — Executes the configured run for same question in python and returns the result.
Reference: documentation