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='https://api.meridian-labs.ai',
    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.2.tar.gz (3.1 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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pollistack-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 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.2.tar.gz
Algorithm Hash digest
SHA256 91b01629a090d3e9505a4160a895114bc1395267184b791ba2df0737ad43f151
MD5 f8c6608e5d5c7f3980357c777e175a3a
BLAKE2b-256 7d202943ec46066aecf16931ac425dbf74de9a985afe709734d2cc9dc3616b19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pollistack-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b924c7b11f209fc01d30be6ac435054d2e7197c07ad54ebbe4f636ec42f5737
MD5 ca2dc361a9f768e2be14f015b457c3c1
BLAKE2b-256 c57d19d7c2b7fa571d98f10941628cdf13d2a3ca37c307a98a6e92966e62b225

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