这是一个简单的Python demo，用于生成符合要求的请求包，并进行加密和签名。请确保在运行代码之前已经安装了requests库和cryptography库。
```import json
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.serialization import load_pem_private_key
import base64
import requests

# 用于加密的公钥，用于签名的私钥
public_key_pem = b"""-----BEGIN PUBLIC KEY-----
...你的公钥...
-----END PUBLIC KEY-----"""

private_key_pem = b"""-----BEGIN PRIVATE KEY-----
...你的私钥...
-----END PRIVATE KEY-----"""

# 加载公钥和私钥
private_key = load_pem_private_key(private_key_pem, password=None)
public_key = load_pem_public_key(public_key_pem)

# 构造请求包
request_body = {
    "serialnumber": "",
    "appcode": "",
    "body": {}
}

# 拼接应用token
app_token = "your_app_token"
request_body_with_token = json.dumps(request_body) + app_token

# 加密请求包
ciphertext = public_key.encrypt(
    request_body_with_token.encode(),
    padding.OAEP(
        mgf=padding.MGF1(algorithm=hashes.SHA256()),
        algorithm=hashes.SHA256(),
        label=None
    )
)

# 生成签名
signature = private_key.sign(
    ciphertext,
    padding.PSS(
        mgf=padding.MGF1(hashes.SHA256()),
        salt_length=padding.PSS.MAX_LENGTH
    ),
    hashes.SHA256()
)

# 构造密文
encrypted_request = {
    "data": base64.b64encode(ciphertext).decode(),
    "signature": base64.b64encode(signature).decode()
}

# 发送请求给服务器
url = "your_server_url"
response = requests.post(url, json=encrypted_request)

# 处理响应
if response.status_code == 200:
    print("请求成功")
    print(response.json())
else:
    print("请求失败")
    print(response.text)```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence