Learn how to create AI agents that can use tools to interact with external systems and perform actions.
Feature | Knowledge | Tools |
---|---|---|
Purpose | Static reference information | Dynamic interaction capabilities |
Access | Read-only reference | Execute actions and commands |
Updates | Manual through files | Real-time through tool calls |
Storage | Knowledge base | Assigned to specific agents |
Persistence | Permanent until changed | Available during agent execution |
Tools are functions that agents can use to interact with external systems and perform actions. They are essential for creating agents that can do more than just process text.
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package and duckduckgo_search package:
Create Custom Tool
To add additional tools/features you need some coding which can be generated using ChatGPT or any LLM
Create a new file tools.py
with the following content:
Create Agent
Create a new file agents.yaml
with the following content:
Start Agents
Execute your script:
Create any function that you want to use as a tool, that performs a specific task.
Assign the tool to an agent
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package and duckduckgo_search package:
Create Custom Tool
To add additional tools/features you need some coding which can be generated using ChatGPT or any LLM
Create a new file tools.py
with the following content:
Create Agent
Create a new file agents.yaml
with the following content:
Start Agents
Execute your script:
Tools for searching and retrieving information from various sources
Essential Python utilities for data manipulation and scripting
Web crawling and scraping capabilities for data extraction
Access and search academic papers from arXiv repository
Extract and parse content from news articles and websites
Fast analytical SQL database operations and queries
Web search functionality using DuckDuckGo’s API
Privacy-focused web search using local SearxNG instance
Perform mathematical calculations and conversions
Parse and manipulate YAML format data
Handle JSON data structures and operations
Data analysis and manipulation using Pandas
Fetch financial market data from Yahoo Finance
Execute shell commands and system operations
Access and search Wikipedia articles and data
Process and manipulate XML format data
File system operations and management utilities
Work with Excel spreadsheets and workbooks
Handle CSV file operations and transformations
Tools for searching and retrieving information from various sources
Tools for reading, writing, and manipulating files
Tools for interacting with external APIs and services
Type Hints
Documentation
Error Handling
Search Tools
File Tools
API Tools
Following these best practices will help you create robust, efficient, and secure tools in PraisonAI.
Single Responsibility
Each tool should have one clear purpose and do it well. Avoid creating tools that try to do too many things.
Clear Interfaces
Define explicit input/output types and maintain consistent parameter naming.
Documentation
Always include detailed docstrings and type hints.
Efficient Processing
Optimize resource usage and processing time.
Resource Management
Properly handle resource allocation and cleanup.
Caching
Implement caching for frequently accessed data.
Async Operations
Use async/await for I/O-bound operations.
Input Validation
Always validate and sanitize inputs to prevent security vulnerabilities.
Rate Limiting
Implement rate limiting for API calls to prevent abuse.
API Key Management
Securely handle API keys and credentials using environment variables.
Error Masking
Hide sensitive information in error messages to prevent information leakage.
Pro Tip: Start with these practices from the beginning of your project. It’s easier to maintain good practices than to retrofit them later.
Learn how to create AI agents that can use tools to interact with external systems and perform actions.
Feature | Knowledge | Tools |
---|---|---|
Purpose | Static reference information | Dynamic interaction capabilities |
Access | Read-only reference | Execute actions and commands |
Updates | Manual through files | Real-time through tool calls |
Storage | Knowledge base | Assigned to specific agents |
Persistence | Permanent until changed | Available during agent execution |
Tools are functions that agents can use to interact with external systems and perform actions. They are essential for creating agents that can do more than just process text.
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package and duckduckgo_search package:
Create Custom Tool
To add additional tools/features you need some coding which can be generated using ChatGPT or any LLM
Create a new file tools.py
with the following content:
Create Agent
Create a new file agents.yaml
with the following content:
Start Agents
Execute your script:
Create any function that you want to use as a tool, that performs a specific task.
Assign the tool to an agent
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package:
Create Agent with Tool
Create app.py
Start Agents
Execute your script:
Install PraisonAI
Install the core package and duckduckgo_search package:
Create Custom Tool
To add additional tools/features you need some coding which can be generated using ChatGPT or any LLM
Create a new file tools.py
with the following content:
Create Agent
Create a new file agents.yaml
with the following content:
Start Agents
Execute your script:
Tools for searching and retrieving information from various sources
Essential Python utilities for data manipulation and scripting
Web crawling and scraping capabilities for data extraction
Access and search academic papers from arXiv repository
Extract and parse content from news articles and websites
Fast analytical SQL database operations and queries
Web search functionality using DuckDuckGo’s API
Privacy-focused web search using local SearxNG instance
Perform mathematical calculations and conversions
Parse and manipulate YAML format data
Handle JSON data structures and operations
Data analysis and manipulation using Pandas
Fetch financial market data from Yahoo Finance
Execute shell commands and system operations
Access and search Wikipedia articles and data
Process and manipulate XML format data
File system operations and management utilities
Work with Excel spreadsheets and workbooks
Handle CSV file operations and transformations
Tools for searching and retrieving information from various sources
Tools for reading, writing, and manipulating files
Tools for interacting with external APIs and services
Type Hints
Documentation
Error Handling
Search Tools
File Tools
API Tools
Following these best practices will help you create robust, efficient, and secure tools in PraisonAI.
Single Responsibility
Each tool should have one clear purpose and do it well. Avoid creating tools that try to do too many things.
Clear Interfaces
Define explicit input/output types and maintain consistent parameter naming.
Documentation
Always include detailed docstrings and type hints.
Efficient Processing
Optimize resource usage and processing time.
Resource Management
Properly handle resource allocation and cleanup.
Caching
Implement caching for frequently accessed data.
Async Operations
Use async/await for I/O-bound operations.
Input Validation
Always validate and sanitize inputs to prevent security vulnerabilities.
Rate Limiting
Implement rate limiting for API calls to prevent abuse.
API Key Management
Securely handle API keys and credentials using environment variables.
Error Masking
Hide sensitive information in error messages to prevent information leakage.
Pro Tip: Start with these practices from the beginning of your project. It’s easier to maintain good practices than to retrofit them later.