Skip to main content

Python SDK for PolliStack Agent Engine

Project description

pollistack

Python SDK for the PolliStack Agent Engine.

Installation

pip install pollistack

Quick Start

import asyncio
from pollistack.client import PolliClient

async def main():
    client = PolliClient(
        base_url='http://localhost:8000',
        api_key='your-api-key'
    )
    
    response = await client.chat(
        prompt="Hello, my name is Alice.",
        user_id="alice-123",
        app_id="my-app"
    )
    print(response)

if __name__ == "__main__":
    asyncio.run(main())

API Reference

PolliClient

  • chat(prompt, user_id, app_id=None, model="qwen-coder"): Send a prompt.
  • sync(query, user_id, content=None, app_id=None): Sync memory.
  • retrieve(query, user_id, app_id=None): Get relevant context.
  • remember(prompt, response, user_id, app_id=None): Extract memory.
  • get_graph(user_id, limit=50, app_id=None): Fetch graph.

License

MIT

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

pollistack-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

pollistack-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file pollistack-0.1.0.tar.gz.

File metadata

  • Download URL: pollistack-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pollistack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a3e7a1bc4eed524da39bce977978e623b5c7021624f767b6c9e80fd43fe488bc
MD5 2ee892ec2c899dba23d5361a474238bb
BLAKE2b-256 0a86de1a855588da5e56cc5094ac36727755584ae3fff112f1af86914c3dc5ba

See more details on using hashes here.

File details

Details for the file pollistack-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pollistack-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pollistack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f39e8ef72ee070aaef05e6bd26e63ceec7b07d72489100d47488b0890769f480
MD5 b1976b1278059908a5e53b1120a894ce
BLAKE2b-256 e14c0eed519e675afc52baf3f1fc2ddfaaf442f0da37e7cdb60512adf68f55d0

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