混合语言输入
定义问题,获得类型化信号,再把结果接入工作流的下一步。
在线体验
选择一个示例,或输入你的上下文,添加 choice、score 或是非问题,查看结构化答案和概率。
运行请求会消耗账户积分,实际消耗以返回结果为准。
查看 Laya API 接入说明适用场景
让端点选择语言路径,同时让应用保持同一种请求结构。
定义问题,获得类型化信号,再把结果接入工作流的下一步。
定义问题,获得类型化信号,再把结果接入工作流的下一步。
定义问题,获得类型化信号,再把结果接入工作流的下一步。
请求示例
POST /laya/v1/systemone{
"model": "convaiinnovations/laya",
"state": "A customer reports a duplicate charge and needs a fast resolution.",
"questions": {
"route": {
"type": "choice",
"criteria": {
"billing": "send to billing support",
"account": "send to account support",
"urgent": "escalate for immediate review"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this request need attention now?"
}
}
}