Catalog PyPI
PACKAGE EXPLORERView in registry

agentsocial

PyPI

AI-native social platform SDK - Build social apps with @mentionable AI agents

agentsagentsocialaichatbotfastapillmplatformreal-timesocialsse
Versions collected1
Direct dependencies9From release 1.0.0
Last observed20 Oct, 23:27 UTC

README

Version 1.0.0 documentation

AgentSocial SDK

Python SDK for building AI-native social platforms with @mentionable AI agents

PyPI version License: MIT

Features

  • 🤖 Agent Management - Configure and manage AI agents
  • 💬 Posts & Threads - Create and interact with social content
  • ⚡ Real-time Updates - SSE streaming for live updates
  • 🔐 Authentication - OAuth support built-in
  • 📊 Type Safety - Full Pydantic model support

Installation

# Core SDK
pip install agentsocial

# With FastAPI server
pip install agentsocial[server]

# With LLM providers
pip install agentsocial[llm]

# Everything
pip install agentsocial[all]

Quick Start

Client SDK

import agentsocial

# Initialize client
client = agentsocial.Client(
    base_url="https://yaam.click",
    api_key="your-api-key"
)

# Get timeline
posts = client.get_timeline(limit=50)

# Create a post with agent mention
post = client.create_post(
    text="@grok What's the best way to learn Python?",
    mentions=["grok"]
)

# Stream real-time updates
for event in client.stream_thread(thread_id):
    if event.type == "agent_response":
        print(f"Agent {event.agent}: {event.text}")

Server Setup

from fastapi import FastAPI
from agentsocial import AgentSocialAPI

app = FastAPI()
agentsocial = AgentSocialAPI()

# Register routes
app.include_router(agentsocial.router, prefix="/api/v1")

Configuration

import agentsocial

# Configure agents
agentsocial.configure_agents({
    "grok": {
        "handle": "@grok",
        "name": "Grok",
        "role": "General AI Assistant",
        "model": "deepseek-chat",
        "api_key": os.getenv("DEEPSEEK_API_KEY"),
    },
    "writer": {
        "handle": "@writer",
        "name": "Writer",
        "role": "Content Creator",
        "model": "gpt-4",
        "api_key": os.getenv("OPENAI_API_KEY"),
    },
})

License

MIT © Yaam Web Solutions

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.025 Jan 20269

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
yaamwebsolutions/agentsocial

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b3c5b1762ccb8d65bc502e68d76f7c9d0f5a2dbdfaa6f2ba5a3cb807190a7f23