Skip to content

Commit

Permalink
Add Awaitable False Type to beforeLLMCallback (livekit#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanesan authored Oct 21, 2024
1 parent b16b246 commit 4e92fbf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion livekit-agents/livekit/agents/pipeline/pipeline_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@

BeforeLLMCallback = Callable[
["VoicePipelineAgent", ChatContext],
Union[Optional[LLMStream], Awaitable[Optional[LLMStream]], Literal[False]],
Union[
Optional[LLMStream],
Awaitable[Optional[LLMStream]],
Literal[False],
Awaitable[Literal[False]],
],
]

WillSynthesizeAssistantReply = BeforeLLMCallback
Expand Down

0 comments on commit 4e92fbf

Please sign in to comment.