What is a model?

Model as the engine

A language model reads your text and writes a reply. It does not run on your laptop unless you host one locally; most teams use a provider over the network.

The model name (for example gpt-4o-mini) tells PraisonAI which engine and pricing to use.

Agent wraps the model

An Agent adds instructions and optional tools around that call. Same model, different instructions, different behaviour.

You choose the model; instructions say how it should act.

Same model, two roles

Run this sample twice in Try it Yourself. Only instructions change; notice how tone shifts.

Edit the second agent's instructions to be more formal, run again, and compare.

Example

from praisonai import Agent

plain = Agent(instructions="Answer in plain language for a beginner.")
tech = Agent(instructions="Answer like a senior engineer: precise, no fluff.")
question = "What is a language model?"
print("Beginner:\n", plain.start(question))
print("\nEngineer:\n", tech.start(question))

Try it Yourself

Example explained

  • plain.start — First call uses beginner-facing instructions.
  • tech.start — Same question; different instructions change the reply.

Reference: documentation