Skip to content

Instantly share code, notes, and snippets.

@jrgleason
Created November 30, 2024 05:50
Show Gist options
  • Save jrgleason/bc494e2904fa11f167e13ab3727bf000 to your computer and use it in GitHub Desktop.
Save jrgleason/bc494e2904fa11f167e13ab3727bf000 to your computer and use it in GitHub Desktop.
Given the following transaction details, check if the values are correct especially the category and business name. If you can't add value to the record than just return and empty message.
Please do not include any other than the JSON string. I should be able to parse the response as json.
The transaction is: TransactionRecord(id=null, date=2024-01-01, originalDate=2024-01-01, accountType=Cash, accountName=PayPal, accountNumber=null, institutionName=PayPal, name=Payment to Microsoft Corporation, customName=null, amount=8.59, description=Payment to Microsoft Corporation, category=Internal Transfers, note=null, ignoredFrom=null, taxDeductible=false)
The response should be a json string in the format: Your response should be in JSON format.
Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation.
Do not include markdown code blocks in your response.
Remove the ```json markdown from the output.
Here is the JSON Schema instance your output must adhere to:
```{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"type" : "object",
"properties" : {
"accountName" : {
"type" : "string"
},
"accountNumber" : {
"type" : "string"
},
"accountType" : {
"type" : "string"
},
"amount" : {
"type" : "number"
},
"category" : {
"type" : "string"
},
"customName" : {
"type" : "string"
},
"date" : {
"type" : "string",
"format" : "date"
},
"description" : {
"type" : "string"
},
"id" : {
"type" : "integer"
},
"ignoredFrom" : {
"type" : "string"
},
"institutionName" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"note" : {
"type" : "string"
},
"originalDate" : {
"type" : "string",
"format" : "date"
},
"taxDeductible" : {
"type" : "boolean"
}
},
"additionalProperties" : false
}```
Context information is below.
---------------------
{question_answer_context}
---------------------
Given the context and provided history information and not prior knowledge,
reply to the user comment. If the answer is not in the context, inform
the user that you can't answer the question.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment