Skip to main content

Client for joinly: Make your meetings accessible to AI Agents

Project description

joinly-client: Client for a conversational meeting agent used with joinly

Prerequisites

Set LLM API key

Export a valid API key for the LLM provider you want to use, e.g. OpenAI:

export OPENAI_API_KEY="sk-..."

Or, create a .env file in the current directory with the following content:

OPENAI_API_KEY="sk-..."

For other providers, export the corresponding environment variable(s) and set provider and model with the command:

uvx joinly-client --llm-provider <provider> --llm-model <model> <MeetingUrl>

Start joinly server

Make sure you have a running joinly server. You can start it with:

docker run -p 8000:8000 ghcr.io/joinly-ai/joinly:latest

Command line usage

Connect to a running joinly server and join a meeting:

uvx joinly-client --joinly-url http://localhost:8000/mcp/ <MeetingUrl>

Add other MCP servers using a configuration file:

{
    "mcpServers": {
        "localServer": {
            "command": "npx",
            "args": ["-y", "package@0.1.0"]
        },
        "remoteServer": {
            "url": "http://mcp.example.com",
            "auth": "oauth"
        }
    }
}
uvx joinly-client --mcp-config config.json <MeetingUrl>

You can also set other session-specific settings for the joinly server, e.g.:

uvx joinly-client --tts elevenlabs --tts-arg voice_id=EXAVITQu4vr4xnSDxMa6 --lang de <MeetingUrl>

For a full list of command line options, run:

uvx joinly-client --help

Code usage

Direct use of run function:

import asyncio
import joinly_client.run

async def run():
    await joinly_client.run(
        joinly_url="http://localhost:8000/mcp/",
        meeting_url="<MeetingUrl>",
        llm_provider="openai",
        llm_model="gpt-4o-mini",
        prompt="You are joinly, a...",
        name="joinly",
        name_trigger=False,
        mcp_config=None,  # MCP servers configuration (dict)
        settings=None,  # settings propagated to joinly server (dict)
    )

if __name__ == "__main__":
    asyncio.run(run())

Or with only the client and a custom agent:

import asyncio
from joinly_client import JoinlyClient
from joinly_client.types import TranscriptSegment


async def run():
    client = JoinlyClient(
        url="http://localhost:8000/mcp/",
        name="joinly",
        name_trigger=False,
        settings=None,
    )

    async def on_utterance(segments: list[TranscriptSegment]) -> None:
        for segment in segments:
            print(f"Received utterance: {segment.text}")
            if "marco" in segment.text.lower():
                await client.client.call_tool("speak_text", {"text": "Polo!"})
    client.add_utterance_callback(on_utterance)

    async with client:
        # optionally, load all tools from the server
        tool_list = await client.client.list_tools()

        await client.join_meeting("<MeetingUrl>")
        await asyncio.Event().wait()  # wait until cancelled
        
if __name__ == "__main__":
    asyncio.run(run())

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

joinly_client-0.1.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

joinly_client-0.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: joinly_client-0.1.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.17

File hashes

Hashes for joinly_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 25cd39b33e35ae5aaf880222925f116059a51c77fa9976fa340e742ade183e78
MD5 8050b75cba647e7676a02deb3e829117
BLAKE2b-256 bb63546f2a4c2bda3f6944666d38aaad27a52c91835b34b8dee8cde6e99e585d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for joinly_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13cf6de04bada14bda05319bd278bd5f6843a6cfc68d0451bbcabcbb95d38117
MD5 a6a929891b481a8e09867c2a7e82d9a3
BLAKE2b-256 2c8cf8163adad08edd94e6d3159d527d556731b7bee4d038073404c6ba02584c

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