import 'package:get/get.dart';

typedef WoxAIChatConversationRole = String;

enum WoxAIChatConversationRoleEnum {
  WOX_AIChat_CONVERSATION_ROLE_USER("user", "user"),
  WOX_AIChat_CONVERSATION_ROLE_ASSISTANT("assistant", "assistant"),
  WOX_AIChat_CONVERSATION_ROLE_SYSTEM("system", "system"),
  WOX_AIChat_CONVERSATION_ROLE_TOOL("tool", "tool");

  final String code;
  final String value;

  const WoxAIChatConversationRoleEnum(this.code, this.value);

  static String getValue(String code) => WoxAIChatConversationRoleEnum.values.firstWhereOrNull((activity) => activity.code == code)?.value ?? "";
}
