Skip to main content

Python SDK for using Conva AI co-pilots

Project description

Python Library for Conva AI

This is the python library for using Conva AI Co-pilots

Example

import asyncio
from conva_ai.client import AsyncConvaAI

async def generate(query: str, stream: bool):
    omni_client = AsyncConvaAI(
        assistant_id="<YOUR_COPILOT_ID>", 
        assistant_version="<YOUR_COPILOT_VERSION>", 
        api_key="<YOUR_API_KEY>"
    )
    response = omni_client.invoke_capability(query, stream=stream)
    async for res in response:
        print(res.model_dump_json(indent=4))

asyncio.run(generate("how are you", True))

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

conva_ai-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

conva_ai-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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