Skip to main content

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

Python PyPI version License Documentation

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.1


🧪 Install from TestPyPI

To install a test version from TestPyPI:

pip install \
  --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple \
  saptiva-agents-test==0.1.7
# Add SAPTIVA_BASE_URL, API_USER and API_PASSWORD to the .env file

🚀 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.

🔗 View the full list of available Saptiva models


📄 License

This project is licensed under the MIT License.


🌐 Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saptiva_agents-0.1.1.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saptiva_agents-0.1.1-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file saptiva_agents-0.1.1.tar.gz.

File metadata

  • Download URL: saptiva_agents-0.1.1.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for saptiva_agents-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f99d82af79e5127afb15757337c281babb39db0809b94a4ac9d6cd6f1ca54068
MD5 ca77ba63ad388d3411613fde5f89282e
BLAKE2b-256 5967fda3c4d718ffbd6ae67140f50788e8487646d245461f99a94eb7b0733e45

See more details on using hashes here.

File details

Details for the file saptiva_agents-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: saptiva_agents-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for saptiva_agents-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a951dddfde3c12b598e461986b8ee11d1a1030a7f6fe466e761c80c8a563997
MD5 c3e985839235f3ba82b9612f9e6649a7
BLAKE2b-256 cd54f57fbd67cb468dbe6ea8195c3a44e6734b84962cd6cf50509dfb5cf9e976

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page