Long Chen
28e68c52d6
agents: Agent[Deps, State, Output] from deps_type, state_type and output_type
...
Agent took deps_type and state_type but nothing read them: the
framework loads state with the door's type, and a type checker could
not use them because Agent was not generic. run() took Any and returned
RunResult[Any], so a wrong state or deps object and a typo on a
structured output all passed the type checker.
Agent is now generic, the three parameters read from those arguments
and Any when one is left out, so a bare Agent annotation and a subclass
keep working. run(), stream(), @agent.instructions and
@agent.output_validator carry the types, and agent.run(state=ctx.state)
checks the door's state type against the agent's.
tests/type_checks/agent_generics.py pins this: each expected error has
a type: ignore[code], and scripts/check_types.py checks the package, so
it fails both when a check is lost and when a new error appears.
2026-10-14 14:44:21 +08:00
Théo Monnom
06c30e4f55
agents: stream the reply as the model writes it
...
- Agent.stream() is run() as an async iterator of the reply's text, with
run.result once the loop ends
- a text door handler may yield instead of returning; the answer is the
last run's result, and awaiting run() inside a door streams on its own
through the run hooks
- a message on a known thread uses the cached thread record, and the
answer stream is created as the request comes in
2026-10-12 17:52:52 -07:00
Théo Monnom
1a2eb23c3e
README: install the 2.0 beta from PyPI with uv
2026-10-12 15:54:21 -07:00
Théo Monnom
f4fd1f6f58
Agents 2.0
2026-10-12 13:55:33 -07:00
David Lange
938a4ecf48
chore(examples): use AssemblyAI universal-3-6-pro ( #7578 )
2026-10-03 15:08:30 -07:00
detail-app[bot]
96341b0db2
docs: update LiveKit Inference OpenAI model list for newer GPT-5.x variants ( #7588 )
...
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
2026-10-02 14:24:26 -07:00
bb1405ee37
feat: add Microsoft AI speech plugin ( #7378 )
...
Co-authored-by: Mir <7480806+mirimadahmed@users.noreply.github.com >
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-10-01 16:00:33 -05:00
Piyush Gambhir and Chenghao Mou
df6455d7c7
fix(workflows): forward Twilio CallToken during warm transfers ( #7309 )
...
Co-authored-by: Chenghao Mou <chenghao.mou@livekit.io >
2026-09-25 15:20:05 +01:00
98ed3e8501
feat(azure): Add Azure Voice Live Realtime API support ( #4693 )
...
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-09-24 16:44:43 -04:00
Shayne Parlo and Claude Fable 5.1
c0a8f4467f
examples(homepage): disconnect scripted callers on a known opening line ( #7297 )
...
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com >
2026-09-21 12:08:28 -04:00
russellmartin-livekit
8fc2650ded
Move OpenAI Realtime inference client into agents core ( #7318 )
2026-09-18 09:44:46 +01:00
Chenghao Mou
10288f64e6
fix: initialize the otel example provider once per process ( #7171 )
2026-09-17 13:57:10 +01:00
Smiljanic19A
888db1c2b1
Migrate Speechmatics STT plugin to Agent STT ( #7028 )
2026-09-14 18:33:03 -04:00
6835d4cd57
feat: add openai gpt-live duplex support ( #7212 )
...
Co-authored-by: Long Chen <longch1024@gmail.com >
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-10 19:52:51 +01:00
u9g
e9a3422f47
fix(hotel_receptionist): don't pass simulation runs the grading never checked ( #6797 )
2026-09-08 11:39:38 -04:00
Chenghao Mou
6bbdf7322c
chore(inference): remove ElevenLabs models after the gateway brownout ( #7106 )
2026-09-03 16:58:02 +01:00
u9g
3257ad2f24
fix(hotel_receptionist): stop a restaurant modification silently resizing the party ( #6806 )
2026-09-03 11:57:47 -04:00
Rehuz
32758b5950
chore(lint): enable RUF006 so dangling asyncio tasks fail CI ( #7054 )
2026-09-03 09:06:43 +08:00
Anunay Maheshwari and Long Chen
2910214aa4
feat: twilio connector warm transfer ( #6283 )
...
Co-authored-by: Long Chen <longch1024@gmail.com >
2026-09-01 15:10:16 +05:30
u9g
ba3d6bd5e3
refactor(hotel_receptionist): split scenarios into scoped and open-ended files ( #7065 )
2026-08-31 15:39:11 -04:00
u9g
d77be95b9f
fix(hotel_receptionist): move book_room's sequencing and pricing rules into the tools ( #6849 )
2026-08-26 14:36:45 -04:00
u9g
38095e1f50
fix(workflows): ask before recording a volunteered value ( #6980 )
2026-08-26 12:17:10 -04:00
ZF
c20671ce34
fix(dtmf): drop removed repeat_instructions arg from GetDtmfTask example and docstring ( #6972 )
2026-08-25 10:17:37 +08:00
Tina Nguyen
0ab5562be2
(xai inference): add LLM models ( #6971 )
2026-08-24 16:39:20 -04:00
naszzz
393d4aa242
fix(rime): remove Arcana model support ( #6773 )
2026-08-20 12:14:19 -04:00
Excelius
176c9d04af
docs: fix typos in healthcare example ( #6912 )
2026-08-19 15:52:49 -04:00
Tina Nguyen
b5be82e28d
(expressive example): update readme ( #6829 )
2026-08-13 10:15:30 -04:00
Chenghao Mou
bc5f3df3a2
fix: stabilize LiveKit pronunciation with Fish Audio ( #6825 )
2026-08-12 18:05:25 +01:00
Théo Monnom and Théo Monnom
0ee40ce513
examples: switch homepage agent to Fish Audio with expressive mode ( #6822 )
...
Co-authored-by: Théo Monnom <theo@livekit.io >
2026-08-12 09:03:46 -07:00
Théo Monnom and Tina Nguyen
404a3b70b2
feat(expressive): expose expressive mode and add expressive_agent example ( #6698 )
...
Co-authored-by: Tina Nguyen <thetinalenguyen@gmail.com >
2026-08-07 18:20:24 -04:00
Chenghao Mou and Dixing Xu
8a448479b0
fix(amd): start SIP detection timeout after answer ( #6580 )
...
Co-authored-by: Dixing Xu <i@dex.moe >
2026-08-05 14:57:42 +01:00
u9g and Théo Monnom
b634d4cc40
Make every example a uv workspace member ( #6649 )
...
Co-authored-by: Théo Monnom <theo.8bits@gmail.com >
2026-08-03 16:44:37 -04:00
Shayne Parlo
95136c1ddd
Add homepage voice agent example ( #6422 )
2026-07-29 18:13:48 -04:00
u9g and Copilot Autofix powered by AI
b110c91c1c
fix(workflows): return corrective instructions as tool output instead of generate_reply ( #6372 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-07-29 15:46:30 -04:00
Shawn Feldman and Claude Opus 5
a502ab91a4
fix(examples): pass LemonSlice avatar options via extra_kwargs ( #6574 )
...
Co-authored-by: Claude Opus 5 <noreply@anthropic.com >
2026-07-28 16:01:46 -06:00
Shawn Feldman and Claude Opus 4.8
538884e65d
feat(inference): add inference.AvatarSession (avatar provisioning via the gateway) ( #6492 )
...
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-23 12:21:57 -06:00
Neil Dwyer
21a43ececa
Update READMEs to use gemma ( #6502 )
2026-07-21 14:29:47 -07:00
u9g
f1af0690aa
fix(drive-thru): assume quantity of one when unstated to avoid count confirmation ( #6463 )
2026-07-20 09:00:15 -04:00
Long Chen
e1e08ff9ef
feat(stt): add stt_context_options for keyterms and chat context ( #6475 )
2026-07-18 11:45:59 +08:00
Long Chen and devin-ai-integration[bot]
77b5d8bbc7
feat(mcp): per-tool options and progress update for MCPToolset ( #5694 )
...
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-17 14:26:51 +08:00
lukasIO and Ryan Gaus
69983cde29
Add LiveKit cloud auth to krisp viva plugin ( #5914 )
...
Co-authored-by: Ryan Gaus <ryan.gaus@livekit.io >
2026-07-13 11:11:43 +02:00
Tina Nguyen and chana
03ab627260
(examples revamp): remove redundant files ( #5523 )
...
Co-authored-by: chana <chana.zolty@livekit.io >
2026-07-12 23:28:06 -04:00
Théo Monnom
52a9881be0
frontdesk: end-to-end simulation example with dynamic tool mocking ( #6089 )
2026-07-12 19:44:58 -07:00
u9g
69bd94ea80
elevenlabs: deprecate STT model_id in favor of model ( #6378 )
2026-07-10 14:46:26 -04:00
u9g
48d70a757f
fix(drive-thru): instruct agent to add stated quantities without confirming ( #6383 )
2026-07-10 14:37:50 -04:00
Tina Nguyen
ab95b65e74
(expressive mode): hide and remove from examples ( #6370 )
2026-07-09 14:47:08 -04:00
Tina Nguyen and Chenghao Mou
ae40effa2e
feat: expressive mode ( #6116 )
...
Co-authored-by: Chenghao Mou <chenghao.mou@livekit.io >
2026-07-06 20:00:12 -04:00
94de5c16d5
feat(plugins-tavus): rename replica/persona to face/pal ( #6239 )
...
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
Co-authored-by: Tina Nguyen <72938484+tinalenguyen@users.noreply.github.com >
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-02 18:44:18 -04:00
Long Chen
d0c03c4c95
feat(voice): stream tool call status events ( #6100 )
2026-07-01 18:32:48 +08:00
Andrew Weitz
48b3ed26c1
Allow LemonSlice avatars to join third party meeting platforms ( #6233 )
2026-06-30 11:42:30 +08:00