SuperAPI AI 工具集

deepgram-rust-text-intelligence

写作与研究

查看项目

更新于 10-15 20:35

技能介绍

用途:当需求是对文本(而非音频)做摘要、情感、主题或意图分析时使用本技能,对应 Deepgram 的 /v1/read API。

主要能力:通过 HTTP 请求体传入 text 或托管 url,并设置分析开关 summarize、topics、intents、sentiment;当前文本智能文档要求显式指定 language: "en"。

使用方式:Rust crate 目前没有 deepgram::read、deepgram::text_intelligence 等类型化客户端,需用 reqwest 发原始 HTTP 请求。依赖示例:tokio = { version = "1", features = ["full"] }、reqwest = { version = "0.13", default-features = false, features = ["json", "rustls"] }、serde_json = "1"。请求端点为 https://api.deepgram.com/v1/read,认证头使用 AUTHORIZATION: Token <API_KEY>(标准 API key 不用 Bearer),Content-Type 为 application/json。

适用场景:文本摘要、主题检测、意图识别、情感分析,以及需要说明产品支持与 Rust crate 现状差距的场合。

限制:本 crate 暂无专用模块与示例;HTTP API 中的可选 callback 字段也没有类型化辅助。文本智能与音频智能不同,后者依附于 STT。不要臆造 deepgram::read 接口,需等待 crate 提供类型化接口。跨语言产品知识可安装 npx skills add deepgram/skills。