Skip to content

Commit

Permalink
door bell scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasBack2Future committed Nov 5, 2024
1 parent 9e523d6 commit 32ec5b0
Show file tree
Hide file tree
Showing 10 changed files with 1,059 additions and 277 deletions.
764 changes: 487 additions & 277 deletions agents/property.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions agents/ten_packages/extension/vision_python_async/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# This file is part of TEN Framework, an open source project.
# Licensed under the Apache License, Version 2.0.
# See the LICENSE file for more information.
#
import("//build/feature/ten_package.gni")

ten_package("vision_python_async") {
package_kind = "extension"

resources = [
"__init__.py",
"addon.py",
"extension.py",
"log.py",
"manifest.json",
"property.json",
"tests",
]
}
29 changes: 29 additions & 0 deletions agents/ten_packages/extension/vision_python_async/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# vision_python_async

<!-- brief introduction for the extension -->

## Features

<!-- main features introduction -->

- xxx feature

## API

Refer to `api` definition in [manifest.json] and default values in [property.json](property.json).

<!-- Additional API.md can be referred to if extra introduction needed -->

## Development

### Build

<!-- build dependencies and steps -->

### Unit test

<!-- how to do unit test for the extension -->

## Misc

<!-- others if applicable -->
9 changes: 9 additions & 0 deletions agents/ten_packages/extension/vision_python_async/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# This file is part of TEN Framework, an open source project.
# Licensed under the Apache License, Version 2.0.
# See the LICENSE file for more information.
#
from . import addon
from .log import logger

logger.info("vision_python_async extension loaded")
20 changes: 20 additions & 0 deletions agents/ten_packages/extension/vision_python_async/addon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# This file is part of TEN Framework, an open source project.
# Licensed under the Apache License, Version 2.0.
# See the LICENSE file for more information.
#
from ten import (
Addon,
register_addon_as_extension,
TenEnv,
)
from .extension import VisionExtension
from .log import logger


@register_addon_as_extension("vision_python_async")
class VisionExtensionAddon(Addon):

def on_create_instance(self, ten_env: TenEnv, name: str, context) -> None:
logger.info("VisionExtensionAddon on_create_instance")
ten_env.on_create_instance_done(VisionExtension(name), context)
Loading

0 comments on commit 32ec5b0

Please sign in to comment.