Commit 980c05cc by wangzhiyang

feat(meeting_minutes): 添加音频文件URL支持,更新工具注册与文档

在agent_hub.py中新增逻辑,将传入的音频文件URL附加到用户查询中;重构main.py中的会议纪要工具注册代码,调整参数与调用方式;更新SKILL.md中的转写脚本命令示例,添加--endpoint参数。
1 parent 109adfed
...@@ -50,14 +50,10 @@ async def lifespan(app: FastAPI): ...@@ -50,14 +50,10 @@ async def lifespan(app: FastAPI):
) )
from skills.meeting_minutes.scripts.pipeline import run_pipeline from skills.meeting_minutes.scripts.pipeline import run_pipeline
if "meeting_minutes" not in agent_hub_instance.toolkit.groups:
agent_hub_instance.toolkit.create_tool_group(
"meeting_minutes",
description="会议纪要处理:音频转写、纪要生成、docx导出、OSS上传",
)
agent_hub_instance.toolkit.register_tool_function( agent_hub_instance.toolkit.register_tool_function(
run_pipeline, run_pipeline,
group_name="meeting_minutes", func_name="run_pipeline",
group_name="basic",
) )
yield yield
......
...@@ -25,7 +25,7 @@ description: 会议录音转写、纪要生成与文件导出。支持上传音 ...@@ -25,7 +25,7 @@ description: 会议录音转写、纪要生成与文件导出。支持上传音
调用 `skills/meeting_minutes/scripts/transcriber.py`: 调用 `skills/meeting_minutes/scripts/transcriber.py`:
``` ```
python skills/meeting_minutes/scripts/transcriber.py "<音频文件URL>" python skills/meeting_minutes/scripts/transcriber.py "<音频文件URL>" --endpoint oss-cn-shenzhen.aliyuncs.com
``` ```
该工具会返回完整的转写文本以及时间戳信息。提取 `transcript_text` 字段供下一步使用。 该工具会返回完整的转写文本以及时间戳信息。提取 `transcript_text` 字段供下一步使用。
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!