类的使用
net.sohelp.boot.engine.workflow.model.AiResponse
使用AiResponse的程序包
-
net.sohelp.boot.engine.workflow.handler中AiResponse的使用
修饰符和类型方法说明FlowAiHandler.execute(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 执行 AI 处理并返回结构化响应修饰符和类型方法说明default voidFlowAiHandler.mergeAiVariables(Execution execution, AiResponse aiResponse, AiConfig aiConfig) 合并 AI 提取的变量到执行参数default booleanFlowAiHandler.onAsyncComplete(FlowContext flowLongContext, String asyncToken, AiResponse aiResponse) 异步回调处理:当 AI 异步处理完成后调用booleanFlowAiHandler.processAiResponse(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, AiResponse aiResponse) 处理 AI 相应对象逻辑 -
net.sohelp.boot.engine.workflow.model中AiResponse的使用
修饰符和类型方法说明static AiResponse创建异步处理响应static AiResponse创建失败响应static AiResponse创建降级响应(转人工处理)static AiResponseAiResponse.lowConfidence(String decision, String advice, Double confidence) 创建低置信度响应(需人工复核)static AiResponse创建成功响应static AiResponse创建成功响应(带提取变量)