LLMTask/LLMContextTask: fix LLMService type

This commit is contained in:
Aleix Conchillo Flaqué
2026-05-13 21:48:22 -07:00
parent 922293ae76
commit 6d87765648
2 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,8 @@ self-contained conversation context, removing the need for subclasses
to manually wire `LLMContextAggregatorPair`.
"""
from typing import Any
from pipecat.pipeline.pipeline import Pipeline
from pipecat.processors.aggregators.llm_context import LLMContext
from pipecat.processors.aggregators.llm_response_universal import (
@@ -49,7 +51,7 @@ class LLMContextTask(LLMTask):
self,
name: str,
*,
llm: LLMService,
llm: LLMService[Any],
active: bool = False,
bridged: tuple[str, ...] | None = None,
defer_tool_frames: bool = True,

View File

@@ -78,7 +78,7 @@ class LLMTask(PipelineTask):
self,
name: str,
*,
llm: LLMService,
llm: LLMService[Any],
pipeline: Pipeline | None = None,
active: bool = False,
bridged: tuple[str, ...] | None = None,