Skip to main content

Composio Integration for LiveKit

This package integrates LiveKit with Composio, allowing you to use Composio's powerful toolset within LiveKit's agent framework.

Installation

pip install composio_livekit

Requirements

  • Python 3.9 or higher
  • composio_core >= 0.7.0
  • livekit >= 0.14.0
  • pydantic >= 2.0.0

Usage

Basic Integration

from composio_livekit import ComposioToolSet, Action
from livekit.agents.voice import Agent

# Initialize the toolset
composio_toolset = ComposioToolSet()

# Get specific tools
tools = composio_toolset.get_tools(
    actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER]
)

# Use with LiveKit Agent
class Assistant(Agent):
    def __init__(self):
        super().__init__(
            instructions="You are a helpful voice AI assistant.",
            tools=tools
        )

Complete Example

For a complete example including voice integration, see the demo file in the repository:

from livekit.agents.voice import AgentSession
from livekit.plugins import (
    openai,
    cartesia,
    deepgram,
    silero,
    turn_detector,
)

async def setup_agent_session():
    session = AgentSession(
        stt=deepgram.STT(),
        llm=openai.LLM(model="gpt-4o"),
        tts=cartesia.TTS(),
        vad=silero.VAD.load(),
        turn_detection=turn_detector.EOUModel(),
    )
    
    await session.start(
        room=ctx.room,
        agent=Assistant(),
    )

Features

  • Seamless integration between Composio tools and LiveKit agents
  • Support for all Composio actions and apps
  • Type-safe function signatures
  • Proper handling of array parameters and complex types

License

Apache License 2.0

Metadata

Release files for composio-livekit 0.7.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for composio-livekit 0.7.20
File Size Uploaded Provenance Actions
composio_livekit-0.7.20.tar.gz 4.5 kB Without provenance Details for composio_livekit-0.7.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for composio-livekit 0.7.20
File Interpreter ABI Platform Actions
composio_livekit-0.7.20-py3-none-any.whl Python 3 none any Details for composio_livekit-0.7.20-py3-none-any.whl

Total release size: 9.3 kB

Release files / composio_livekit-0.7.20.tar.gz

Download URL composio_livekit-0.7.20.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
18d5f33dfa530a2c8cd0b0cb97b234dfa51c26ebb84989cb0946f261aad93df7
BLAKE2b-256 checksum
How to use checksums
2510dc254a0beeca2c924dce0e589e9d608299641d90948ea5162b430b8b011c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / composio_livekit-0.7.20-py3-none-any.whl

Download URL composio_livekit-0.7.20-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b787acb13b7e48f0e6519820a428da8479733375a066873c2bc495fb80cfb7ce
BLAKE2b-256 checksum
How to use checksums
2330fa402f40e4e1ae91732ddea354f19c755491bac469a770c2658062b891c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for composio-livekit 0.7.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page