One prompt

Note: Run these in your terminal, after praisonai is installed and a key is set. Try it Yourself runs Python, not the praisonai command.

Hello

A quoted sentence is the task. praisonai runs an agent and prints the reply.

No file, no flags. The sentence is the whole request.

Example

praisonai "Hello"

Example explained

  • praisonai — The command installed with the package.

Same question in Python

The command above needs your terminal. Try it Yourself runs a one-shot Agent with the same kind of greeting.

Example

from praisonai import Agent

agent = Agent(instructions="Greet the user in one short sentence.")
print(agent.start("Hello"))

Try it Yourself

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