ShoppingAgentService class

购物助手服务 - 使用统一的 orchestrator 接口

Constructors

ShoppingAgentService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

baseUrl String
no setter

Static Methods

changeBackground(String background, String? sessionId) Future<OrchestratorResponse>
更换背景
compressImage(Uint8List imageBytes) Future<String>
图片压缩
generateStyleMoodboard(String? sessionId) Future<OrchestratorResponse>
生成风格灵感板
requestVirtualTryon(String? sessionId) Future<OrchestratorResponse>
请求虚拟试衣
selectBudget(String budget, String? sessionId) Future<OrchestratorResponse>
选择预算
selectScene(String scene, String? sessionId) Future<OrchestratorResponse>
选择场景
selectStyle(String styleId, String? sessionId) Future<OrchestratorResponse>
选择风格
sendMessage({required String message, String? sessionId}) Future<OrchestratorResponse>
发送消息到购物助手
submitForm(UserFormInput formData, String? sessionId) Future<OrchestratorResponse>
提交表单
uploadPhoto(String base64Image, String? sessionId) Future<OrchestratorResponse>
上传照片
uploadPhotoToServer({required Uint8List imageBytes, required String photoType, String filename = 'photo.jpg'}) Future<PhotoUploadResponse>
上传照片到专用接口(新方法,推荐使用) photoType: 'profile' (身形分析) | 'tryon' (虚拟试衣) | 'general' (通用)
uploadProfilePhotoNew(Uint8List imageBytes, String? sessionId) Future<OrchestratorResponse>
上传身形分析照片(使用新接口)
uploadTryonPhoto(String base64Image, String? sessionId) Future<OrchestratorResponse>
上传试衣照片
uploadTryonPhotoNew(Uint8List imageBytes, String? sessionId) Future<OrchestratorResponse>
上传试衣照片(使用新接口)

Constants

orchestratorPath → const String
uploadPhotoPath → const String