Skip to content

Commit

Permalink
init minimax realtime
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasliu-agora committed Oct 22, 2024
1 parent 41d1a26 commit e5384fa
Show file tree
Hide file tree
Showing 13 changed files with 473 additions and 11 deletions.
17 changes: 9 additions & 8 deletions agents/manifest-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,21 @@
},
{
"type": "extension",
"name": "azure_tts",
"version": "0.4.2",
"hash": "f1f3e58bd67ff45d537703690fe15f37f37b1e5754c29c483e74f15ee8fde7c8",
"name": "agora_sess_ctrl",
"version": "0.1.0",
"hash": "b789ec4864976c9c0ce512c118a3daedd4bb327cba00898816c546b6be4f8176",
"dependencies": [
{
"type": "system",
"name": "ten_runtime"
},
{
"type": "system",
"name": "azure_speech_sdk"
}
],
"supports": []
"supports": [
{
"os": "linux",
"arch": "x64"
}
]
},
{
"type": "system",
Expand Down
6 changes: 3 additions & 3 deletions agents/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "app",
"name": "ten_agent",
"name": "astra_agents",
"version": "0.4.0",
"dependencies": [
{
Expand Down Expand Up @@ -30,8 +30,8 @@
},
{
"type": "extension",
"name": "azure_tts",
"version": "0.4.2"
"name": "agora_sess_ctrl",
"version": "0.1.0"
}
]
}
1 change: 1 addition & 0 deletions agents/ten_packages/extension/agora_sess_ctrl
Submodule agora_sess_ctrl added at 4ee79d
21 changes: 21 additions & 0 deletions agents/ten_packages/extension/minimax_v2v_python/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
#
# Agora Real Time Engagement
# Created by Wei Hu in 2022-11.
# Copyright (c) 2024 Agora IO. All rights reserved.
#
#
import("//build/feature/ten_package.gni")

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

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

<!-- 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 -->
11 changes: 11 additions & 0 deletions agents/ten_packages/extension/minimax_v2v_python/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
#
# Agora Real Time Engagement
# Created by Wei Hu in 2024-08.
# Copyright (c) 2024 Agora IO. All rights reserved.
#
#
from . import addon
from .log import logger

logger.info("minimax_v2v_python extension loaded")
22 changes: 22 additions & 0 deletions agents/ten_packages/extension/minimax_v2v_python/addon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
#
# Agora Real Time Engagement
# Created by Wei Hu in 2024-08.
# Copyright (c) 2024 Agora IO. All rights reserved.
#
#
from ten import (
Addon,
register_addon_as_extension,
TenEnv,
)
from .extension import MiniMaxExtension
from .log import logger


@register_addon_as_extension("minimax_v2v_python")
class MiniMaxExtensionAddon(Addon):

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

0 comments on commit e5384fa

Please sign in to comment.