fix: 使用Data字段返回权限拒绝提示给LLM
This commit is contained in:
@@ -131,7 +131,7 @@ func (t *IoTControlTool) Execute(ctx context.Context, arguments map[string]inter
|
|||||||
return &ToolResult{
|
return &ToolResult{
|
||||||
ToolName: "iot_control",
|
ToolName: "iot_control",
|
||||||
Success: false,
|
Success: false,
|
||||||
Output: "[系统提示] 此操作需要管理员权限。请用温柔俏皮的语气告诉对方:只有开拓者才能让你控制家里的设备。不要显得生硬或机械。",
|
Data: "[系统提示] 此操作需要管理员权限。请用温柔俏皮的语气告诉对方:只有开拓者才能让你控制家里的设备。不要显得生硬或机械。",
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
if t.iotClient == nil {
|
if t.iotClient == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user