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.1.tar.gz (2.7 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.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pollistack-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 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.1.tar.gz
Algorithm Hash digest
SHA256 537fc316405b663e5b831551ecce7ad456116b362c3d6ec2106cdaa138fbd262
MD5 d0657ab90dfc972d0d412b5f6171de52
BLAKE2b-256 0220b63a5fc27add0f0bab7265bac729409960315bd6523c0502e00f2a1d0bdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pollistack-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1af3704651a2d9c2fc7af226ed68dabb457d897023b552a55e8cb37febf53302
MD5 cd19f188b773caf3edb8cf323f11b992
BLAKE2b-256 783e6b4398c5a9e1522a7f0f378f26d041f6643e73ac5d7d61ef72ec566dcfbe

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