Pydantic AI integration for LiveKit Agents
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
Hướng nghiên cứu
Start with the existing LangGraph adapter in livekit-plugins/livekit-plugins-langchain/livekit/plugins/langchain/langgraph.py, and with the llm_node() hook the issue mentions, to see how LiveKit's chat history and streamed responses are wired. The first step is agreeing on scope with maintainers, not writing code. Done means an agreed design for a Pydantic AI adapter or a documented example, covering history sync on interruption.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Type
Would make my life easier
Feature Description
Hi everyone,
I’d like to use a Pydantic AI agent with LiveKit, keeping its tools and logic in Pydantic AI while LiveKit handles speech and turn-taking.
The use case I have in mind is a support assistant available through both web chat and phone calls. It could reuse the same customer lookup and knowledge-base tools across both channels.
I couldn’t find a dedicated Pydantic AI adapter here. A reusable integration would help with streaming responses and keeping conversation history consistent. Interruptions seem particularly important: when LiveKit updates its history after a caller interrupts, Pydantic AI’s history would need to reflect that too.
Workarounds / Alternatives
A custom llm_node() could call Pydantic AI and stream its responses. That seems workable, but applications would still need to handle message conversion, tool-call history, and cancellation.
Having that behavior documented and tested in one place would make this easier to use reliably.
Additional Context
I noticed the existing LangGraph adapter.
Would a similar adapter make sense for Pydantic AI, or would a documented example be a better starting point?
I’d be happy to contribute the implementation, tests, and a small example. I wanted to discuss the approach and agree on a manageable scope before starting.
- Ngôn ngữ chính
- Python
- Star
- 14.6k
- Fork
- 3.9k
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 248
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của livekit/agents
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
livekit/agents#8284 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: unit tests pin Python 3.12 while the package advertises 3.14 supportCó thể đã có người làm @huong8373tt-beep đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
livekit/agents#8231 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Assistant markup is stripped from chat history when expressive mode is offCó thể đã có người làm @ShivamSharma43 đã nhận 26 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
livekit/agents#7647 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hostsCó thể làm lại được @AbarnaaSree đã nhận 66 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
livekit/agents#7022 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GPT-Live: the user is marked away while the backend is still working on their questionCó thể đã có người làm @lexingtonhibiki đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của livekit/agents
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantConnect/Documentation#2838 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
awslabs/route53-dynamic-dns-with-lambda#67 · 1 bình luận ·
-
`SubAgents` returns a child run's `DeferredToolRequests` to the parent as a successful tool resultĐang mởbug pkg:harness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pydantic/pydantic-ai#12405 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100