Skip to content

Commit 589f6da

Browse files
Merge pull request #68 from GetStream/fix-turn-naming
Fix turn naming
2 parents 2f3580c + 9c71d49 commit 589f6da

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

agents-core/vision_agents/core/turn_detection/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from .turn_detection import (
22
TurnEvent,
33
TurnEventData,
4-
BaseTurnDetector,
54
TurnDetector,
65
TurnDetection,
76
)
@@ -16,7 +15,6 @@
1615
# Base classes and types
1716
"TurnEvent",
1817
"TurnEventData",
19-
"BaseTurnDetector",
2018
"TurnDetector",
2119
"TurnDetection",
2220
# Events

agents-core/vision_agents/core/turn_detection/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from dataclasses import dataclass, field
44
from typing import Any, Dict, Optional
55

6-
from stream_agents.core.events.base import PluginBaseEvent
6+
from vision_agents.core.events.base import PluginBaseEvent
77

88

99
@dataclass

agents-core/vision_agents/core/turn_detection/turn_detection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from enum import Enum
55
import uuid
66
from getstream.video.rtc.track_util import PcmData
7-
from stream_agents.core.events.manager import EventManager
8-
from stream_agents.core.events import PluginInitializedEvent
7+
from vision_agents.core.events.manager import EventManager
8+
from vision_agents.core.events import PluginInitializedEvent
99
from . import events
1010

1111

@@ -70,7 +70,7 @@ async def process_audio(
7070
...
7171

7272

73-
class BaseTurnDetector(ABC):
73+
class TurnDetector(ABC):
7474
"""Base implementation for turn detection with common functionality."""
7575

7676
def __init__(

plugins/krisp/vision_agents/plugins/krisp/turn_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from getstream.audio.utils import resample_audio
1010
from getstream.video.rtc.track_util import PcmData
1111
from vision_agents.core.turn_detection import (
12-
BaseTurnDetector,
12+
TurnDetector,
1313
TurnStartedEvent,
1414
TurnEndedEvent,
1515
TurnEvent,
@@ -39,7 +39,7 @@ def log_callback(log_message, log_level):
3939
print(f"[{log_level}] {log_message}", flush=True)
4040

4141

42-
class TurnDetection(BaseTurnDetector):
42+
class TurnDetection(TurnDetector):
4343
def __init__(
4444
self,
4545
model_path: Optional[str] = os.getcwd() + "/krisp-viva-tt-v1.kef",

0 commit comments

Comments
 (0)