Skip to content

Commit

Permalink
init minimax
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasliu-agora committed Oct 22, 2024
1 parent a637d49 commit f9be5e6
Show file tree
Hide file tree
Showing 10 changed files with 427 additions and 8 deletions.
14 changes: 8 additions & 6 deletions agents/manifest-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,19 @@
},
{
"type": "extension",
"name": "azure_tts",
"version": "0.4.0",
"hash": "c8f838754aaae7ed4598e99fb94b6e251382ade08fa23dbf85e91e9864d018ef",
"name": "agora_sess_ctrl",
"version": "0.1.0",
"hash": "b789ec4864976c9c0ce512c118a3daedd4bb327cba00898816c546b6be4f8176",
"dependencies": [
{
"type": "system",
"name": "ten_runtime"
},
}
],
"supports": [
{
"type": "system",
"name": "azure_speech_sdk"
"os": "linux",
"arch": "x64"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions agents/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
{
"type": "extension",
"name": "azure_tts",
"version": "=0.4.0"
"name": "agora_sess_ctrl",
"version": "0.1.0"
}
]
}
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 f9be5e6

Please sign in to comment.