Skip to content

Commit

Permalink
Merge pull request #423 from TomasBack2Future/dev/deepgram_refactor
Browse files Browse the repository at this point in the history
refact into async extension
  • Loading branch information
TomasBack2Future authored Nov 19, 2024
2 parents b7049f7 + 4a9c6f5 commit 8a3b2ea
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 264 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from . import deepgram_asr_addon
from .extension import EXTENSION_NAME
from .log import logger

logger.info(f"{EXTENSION_NAME} extension loaded")
from . import addon
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
register_addon_as_extension,
TenEnv,
)
from .extension import EXTENSION_NAME

@register_addon_as_extension(EXTENSION_NAME)
@register_addon_as_extension("deepgram_asr_python")
class DeepgramASRExtensionAddon(Addon):
def on_create_instance(self, ten: TenEnv, addon_name: str, context) -> None:
from .log import logger
from .deepgram_asr_extension import DeepgramASRExtension
logger.info("on_create_instance")
from .extension import DeepgramASRExtension
ten.log_info("on_create_instance")
ten.on_create_instance_done(DeepgramASRExtension(addon_name), context)

This file was deleted.

132 changes: 0 additions & 132 deletions agents/ten_packages/extension/deepgram_asr_python/deepgram_wrapper.py

This file was deleted.

Loading

0 comments on commit 8a3b2ea

Please sign in to comment.