Skip to main content

Realtime framework for production-grade multimodal and voice AI agents.

Project description

RiyadhAI Agents SDK

Realtime framework for production-grade multimodal and voice AI agents.

Installation

pip install riyadhai

Quickstart

from dotenv import load_dotenv

from riyadhai import agents
from riyadhai.agents import AgentSession, Agent
from riyadhai.plugins import google

load_dotenv()


async def entrypoint(ctx: agents.JobContext):
    await ctx.connect()

    session = AgentSession(
        llm=google.GeminiRealtimeModel()
    )

    await session.start(
        room=ctx.room,
        agent=Agent(instructions="You are a helpful voice AI assistant.")
    )

    await session.generate_reply(
        instructions="Greet the user and offer your assistance."
    )


if __name__ == "__main__":
    agents.cli.run_app(agents.WorkerOptions(entrypoint_fnc=entrypoint))

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

riyadhai-0.0.2.tar.gz (19.6 MB view details)

Uploaded Source

Built Distribution

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

riyadhai-0.0.2-py3-none-any.whl (19.8 MB view details)

Uploaded Python 3

File details

Details for the file riyadhai-0.0.2.tar.gz.

File metadata

  • Download URL: riyadhai-0.0.2.tar.gz
  • Upload date:
  • Size: 19.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for riyadhai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a404aec34690ca3082a93dfe09f96ad5dd441f0e0b1e6715369853971a538650
MD5 24d395bfd597f471113ff5c33de1da85
BLAKE2b-256 e5da40674ea27877f45f71cddad9e23aaa3ee1a6a62f952f305c703e0e31fe8e

See more details on using hashes here.

File details

Details for the file riyadhai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: riyadhai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for riyadhai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd0e6b7ef0ce563368aec5ea2c2104768c84242f5008a18872d98c28c634b5b
MD5 7aedb243dc00be06f6fa6f266741d6f7
BLAKE2b-256 beded618f81824722e1af82fbffaaf4b1bf5f265a863e654787db96a2498fd4a

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