Saptiva-Agents es un potente framework para construir aplicaciones de IA multiagente que pueden actuar de forma autónoma o colaborar con humanos.
Project description
🤖 Saptiva Agents
Saptiva-Agents is a powerful framework for building multi-agent AI applications that can act autonomously or collaborate with humans.
⚙️ Installation
Saptiva-Agents requires Python 3.10 or later.
pip install -U saptiva-agents
✅ Latest stable version: v0.1.2
🧪 Install from PyPI
To install from PyPI:
pip install saptiva-agents==0.1.2
🚀 Quickstart
👋 Hello World
Create an assistant agent using llama3.3:70b with Saptiva-Agents:
import asyncio
from saptiva_agents import LLAMA_MODEL
from saptiva_agents.base import SaptivaAIChatCompletionClient
from saptiva_agents.agents import AssistantAgent
async def main() -> None:
model_client = SaptivaAIChatCompletionClient(
model=LLAMA_MODEL,
api_key="YOUR_SAPTIVA_API_KEY"
)
agent = AssistantAgent("assistant", model_client=model_client)
print(await agent.run(task="Say 'Hello World!'"))
await model_client.close()
asyncio.run(main())
python hello_world.py
🌐 Web Browsing Agent Team
Create a browser-based agent team using Playwright:
# pip install saptiva-agents
# playwright install --with-deps chromium
import asyncio
from saptiva_agents import QWEN_MODEL
from saptiva_agents.agents import UserProxyAgent
from saptiva_agents.base import SaptivaAIChatCompletionClient
from saptiva_agents.conditions import TextMentionTermination
from saptiva_agents.teams import RoundRobinGroupChat
from saptiva_agents.web_surfer import MultimodalWebSurfer
from saptiva_agents.ui import Console
async def main() -> None:
model_client = SaptivaAIChatCompletionClient(
model=QWEN_MODEL,
api_key="YOUR_SAPTIVA_API_KEY"
)
web_surfer = MultimodalWebSurfer(
"web_surfer",
model_client,
headless=False,
animate_actions=True,
start_page="https://www.google.com"
)
user_proxy = UserProxyAgent("user_proxy")
termination = TextMentionTermination("exit", sources=["user_proxy"])
team = RoundRobinGroupChat([web_surfer, user_proxy], termination_condition=termination)
try:
await Console(team.run_stream(task="Navega a saptiva.com y consigue información sobre Saptiva AI."))
finally:
await web_surfer.close()
await model_client.close()
asyncio.run(main())
python web_surfer.py
📚 Available Models
Saptiva-Agents supports a variety of models for both text and multimodal tasks.
🧠 Text Models
| Model | Description |
|---|---|
llama3.3:70b |
State-of-the-art model based on Meta LLaMA 3, ideal for complex natural language tasks. |
qwen2.5:72b-instruct |
Advanced instruction-tuned model from Alibaba DAMO, designed to follow user prompts precisely. |
🖼️ Multimodal Models
| Model | Description |
|---|---|
gemma3:27b |
Multimodal model capable of reasoning over visual and textual inputs. Ideal for interactive tasks and web exploration. |
📄 License
This project is licensed under the MIT License.
🌐 Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saptiva_agents-0.1.2.tar.gz.
File metadata
- Download URL: saptiva_agents-0.1.2.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b64c73e6c55b0e130ba4322728c4803a342d074bafe2c576cbcd6110068b1a0
|
|
| MD5 |
9a39e35245453ab405ce1620888d946b
|
|
| BLAKE2b-256 |
48e65327669b21122a30a8a77bee6440320827e85a1e66daef1d0c43f3a1fe03
|
File details
Details for the file saptiva_agents-0.1.2-py3-none-any.whl.
File metadata
- Download URL: saptiva_agents-0.1.2-py3-none-any.whl
- Upload date:
- Size: 48.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a32fad3f71971d95db63f053fc5ea6a4f8cd45744e65dd7af46e335c08966b13
|
|
| MD5 |
30b17568b1e2391ad814d95c0164a69d
|
|
| BLAKE2b-256 |
78a56c7ec34449127bd9497a3d8484b13d81909e96b27c4330572c455b9dad01
|