Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

AsyncTools can't continuously update the user while also treating tool output as a normal output

Aperta
#7,215 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

No source files or tests are named in the issue. Start by reading the AsyncTool documentation and the API or implementation for ctx.update() and ctx.with_filler(), then trace how tool output is handled after execution. Done means a long-running tool can keep updating the user during execution and its returned output is also spoken as a normal result.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Bug Description

I have noticed that Livekit AsyncTools can't continuously keep updating the user during tool execution while at the same time return the tool output as a normal return/output. I see that the agent is able to either update the agent during tool execution, but not treat the tool output as a normal tool output. Or it can return the tool output as a normal output, but then it can't continuously keep updating the user during execution. It looks like these two things mutually exclusive and that we can't have both.

For more info on this, have a look at this post in Livekit community

Expected Behavior

My expectation is that a Livekit agent that has an AsyncTool should be able to continuously keep updating the agent during tool execution using ctx.update() and ctx.with_filler(). And when a tool output is returned, it should treat the tool output as a normal output and speak the result to the user.

Reproduction Steps
1. Create an AsyncTool that performs a long executing worfklow.
2. Implement ctx.update(), ctx.with_filler() and the tool output in the tool
Operating System

macOs

Models Used

Amazon Nova Sonic

Package Versions
Python 3.14
livekit 1.1.17
livekit-agents 1.8.0
livekit-api 1.2.1
livekit-plugins-aws 1.8.0
Session/Room/Call IDs

No response

Proposed Solution
AsyncTools should be able to continuously keep updating the agent during tool execution using ctx.update() and ctx.with_filler(). And when a tool output is returned, it should treat the tool output as a normal output and speak the result to the user.
Additional Context

Check this post in the Livekit community.

Screenshots and Recordings

No response

Lingua principale
Python
Stelle
14.6k
Fork
3.9k
Merge medio
2g 9h
PR unite (30g)
159

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di livekit/agents

Tutte le issue di livekit/agents

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.