52 lines
1.6 KiB
JSON
52 lines
1.6 KiB
JSON
{
|
|
"model": null,
|
|
"signature": {
|
|
"$defs": {
|
|
"Reasoning": {
|
|
"type": "dspy.Reasoning"
|
|
}
|
|
},
|
|
"description": "Classify an email as spam or not spam based on its subject and body.\n\nInstructions:\n1. Read the subject and body of the email carefully.\n2. Look for common spam indicators: urgency, suspicious links, unsolicited offers,\n misleading sender info, or requests for personal information.\n3. Output \"spam\" if the email is spam, or \"not spam\" if it is legitimate.",
|
|
"properties": {
|
|
"subject": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "The email subject line",
|
|
"prefix": "Subject:",
|
|
"title": "Subject",
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "The email body text",
|
|
"prefix": "Body:",
|
|
"title": "Body",
|
|
"type": "string"
|
|
},
|
|
"reasoning": {
|
|
"$ref": "#/$defs/Reasoning",
|
|
"__dspy_field_type": "output",
|
|
"desc": "Your reasoning for your answer. Inlude any uncertainties about your answer or ambiguity in the task.",
|
|
"prefix": "Reasoning:"
|
|
},
|
|
"is_spam": {
|
|
"__dspy_field_type": "output",
|
|
"desc": "Whether the email is spam: 'spam' or 'not spam'",
|
|
"enum": [
|
|
"spam",
|
|
"not spam"
|
|
],
|
|
"prefix": "Is Spam:",
|
|
"title": "Is Spam",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"subject",
|
|
"body",
|
|
"reasoning",
|
|
"is_spam"
|
|
],
|
|
"title": "StringSignature",
|
|
"type": "object"
|
|
}
|
|
} |