Chat
Note: Run these in your terminal, after praisonai is installed and a key is set. Try it Yourself runs Python, not the praisonai command.
One message
praisonai chat sends one message and prints the reply.
The quoted text is that message. Run it in your terminal after the package and a key are set.
Example
praisonai chat "Hello, how can you help me today?"Example explained
- chat — A conversation. Here it starts with one message.
One turn in Python
Multi-turn chat continues in the CLI. Here you practise one user turn with start before you open praisonai chat.
Example
from praisonai import Agent
agent = Agent(instructions="You are a helpful assistant.")
print(agent.start("Hello, how can you help me today?"))Example explained
- from praisonai import Agent — Imports Agent needed for one turn in python.
- Agent(…) — Instantiates the Agent configured for one turn in python.
- .start(…) — Executes the configured run for one turn in python and returns the result.
Reference: documentation