Types of agents

Three kinds of job

A basic agent does one job in a single conversation. You have already built one.

A specialised agent keeps a domain, its own tools, and its own knowledge.

A collaborative agent works in a team and can hand work to another agent.

Which class

One agent uses Agent. Several agents with tasks use AgentTeam. A desk that passes work on uses handoffs.

Example

from praisonai import Agent, AgentTeam

one = Agent(instructions="You answer in one sentence.")
team = AgentTeam(agents=[one])
print(type(one).__name__)
print(type(team).__name__)

Try it Yourself

Reference: documentation