React directly to what you ask - no memory, just immediate response.
Copy
from praisonaiagents import Agent# Simple Q&A agentagent = Agent(instructions="Answer questions directly and concisely")agent.start("What is the capital of France?")
Work toward specific objectives, planning steps to achieve them.
Copy
from praisonaiagents import Agent# Goal-oriented research agentagent = Agent( instructions="Research and summarize topics thoroughly", planning=True # Enable planning for complex goals)agent.start("Research the benefits of solar energy")
from praisonaiagents import Agentdef search_web(query: str) -> str: """Search the web for information""" return f"Results for: {query}"# Agent with toolsagent = Agent( instructions="Search and analyze information", tools=[search_web])agent.start("Find the latest news about AI")