This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.
I’m adding RPC to my Python agent and looking for a JavaScript frontend to test it. The agent-starter-react example seems to be missing RPC support. What other examples could I use to test my Python agent?
There’s no single ‘generic’ RPC frontend, but many of the complex examples use RPC in their custom frontends:
For example, the teleprompter example includes RPC usage:
"use client";
import { useEffect, useState, useRef, useCallback } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { ConnectionState, RpcInvocationData } from "livekit-client";
import { useConnectionState, useMaybeRoomContext } from "@livekit/components-react";
import { Button } from "@/components/ui/button";
export interface TeleprompterProps {
typingSpeed?: number;
}
const DEFAULT_SCRIPT = `Welcome to the teleprompter demo!
This is where you can type your script. When you switch to teleprompter mode and start speaking, the text will automatically scroll based on what you say.
Try reading this text aloud and watch as the teleprompter follows along with your speech. The system will match your spoken words to the text and automatically scroll to keep up with your pace.
You can edit this text in edit mode, then switch to teleprompter mode to use it as your script.`;
This file has been truncated. show original