Understanding Agents in Praison Labs
Agents are the core building blocks of Praison Labs. Each agent is an autonomous AI entity with specific roles, goals, and capabilities.
Defines the agent’s purpose and objectives through role definition and specific goals
Tools and functions available to the agent for task execution
Context retention and learning capabilities across interactions
The underlying AI model powering the agent’s intelligence
Clear role and goal definitions are crucial for optimal agent performance.
Component | Description | Example |
---|---|---|
Role | Agent’s function and expertise | Research Analyst, Code Developer |
Goal | Specific objectives to achieve | Analyze market trends, Generate reports |
Backstory | Contextual background | Expert with 10 years of experience |
Install Praison Labs
Install the core package:
Create Agent
Create app.py
:
Start Agents
Execute your script:
You should see:
Overview
Perfect for straightforward tasks and direct interactions
Features
Overview
Experts in specific domains with advanced capabilities
Features
Overview
Designed for team-based operations and complex workflows
Features
Always implement proper error handling and resource management in your agent configurations.
Role Definition
Define clear, specific roles for each agent
Goal Setting
Set specific, measurable goals
Tool Selection
Choose relevant tools for the task
Memory Setup
Configure appropriate memory settings
Communication
Establish clear communication protocols
Delegation
Define explicit delegation rules
Error Handling
Implement robust error handling
Resource Management
Set up efficient resource allocation
Agents now support asynchronous operations through the following methods:
achat
: Async version of the chat methodastart
: Async version of start methodaexecute_task
: Async version of execute_task
method
arun_task
: Async version of run_task method
arun_all_tasks
: Async version of run_all_tasks
method
Follow our quickstart guide to create your first agent
Explore the complete Agent API documentation