One question agent

Ask once

Three lines: create an Agent with instructions, send one question, print the reply.

Press Try it Yourself to run a small example in the browser sandbox. On your machine, set OPENAI_API_KEY first.

Example

from praisonai import Agent

agent = Agent(instructions="You are a helpful assistant.")
print(agent.start("In one sentence, what is a token?"))

Try it Yourself

Example explained

  • instructions — Tells the model how to behave.
  • start — Your question for this run.

Reference: documentation