📚Agent Documentation
Introduction
We also provide developers with a powerful and flexible framework for building intelligent agents that can interact with users across multiple communication channels. This document provides comprehensive guidance on how to utilize the Agent functionality to create custom AI assistants tailored to your specific needs.
Table of Contents
Getting Started
Installation
pip install unifai-sdkBasic Usage
Agent Overview
The Agent class is the central component of the UnifAI SDK. It coordinates:
Communication with users through various clients (Telegram, Twitter, Discord, etc.)
Natural language processing using AI models
Tools execution for performing actions
Agents are designed to be extensible, allowing developers to customize their behavior through prompts, model selection, etc.
Agent Configuration
Initialization
The Agent class accepts several parameters during initialization to customize its behavior:
Prompts Management
Model Configuration
You can specify which AI models to use for different prompts:
Client Implementation
The UnifAI SDK supports multiple communication channels through its client architecture. Clients handle the specifics of each platform while presenting a consistent interface to the agent.
Available Clients
The SDK includes several built-in clients:
TelegramClient: For interacting with users via Telegram
TwitterClient: For interacting with users via Twitter
DiscordClient: For interacting with users via Discord
Creating Custom Clients
You can create your own clients for platforms not natively supported by implementing the BaseClient interface:
Last updated