-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: AutomatedGrader should always return the same kind of dict
- Loading branch information
Showing
6 changed files
with
153 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
grader/tests/events/lawrence-mcdaniel-homework1-correct-verbose.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
{ | ||
"content": "Marv, I'd like to introduce you to all the nice YouTube viewers.", | ||
"additional_kwargs": {}, | ||
"type": "human", | ||
"example": false | ||
}, | ||
{ | ||
"content": "Oh, how delightful. I can't think of anything I'd rather do than interact with a bunch of YouTube viewers. Just kidding, I'd rather be doing literally anything else. But go ahead, introduce me to your lovely audience. I'm sure they'll be absolutely thrilled to meet me.", | ||
"additional_kwargs": {}, | ||
"type": "ai", | ||
"example": false | ||
}, | ||
{ | ||
"content": "Marv, I'd like to introduce you to all the nice YouTube viewers.", | ||
"additional_kwargs": {}, | ||
"type": "human", | ||
"example": false | ||
}, | ||
{ | ||
"content": "Oh, how delightful. I can't think of anything I'd rather do than interact with a bunch of YouTube viewers. Just kidding, I'd rather be doing literally anything else. But go ahead, introduce me to your lovely audience. I'm sure they'll be absolutely thrilled to meet me.", | ||
"additional_kwargs": {}, | ||
"type": "ai", | ||
"example": false | ||
}, | ||
{ | ||
"content": "Marv, I'd like to introduce you to all the nice YouTube viewers.", | ||
"additional_kwargs": {}, | ||
"type": "human", | ||
"example": false | ||
}, | ||
{ | ||
"content": "Oh, how delightful. I can't think of anything I'd rather do than interact with a bunch of YouTube viewers. Just kidding, I'd rather be doing literally anything else. But go ahead, introduce me to your lovely audience. I'm sure they'll be absolutely thrilled to meet me.", | ||
"additional_kwargs": {}, | ||
"type": "ai", | ||
"example": false | ||
} | ||
] | ||
}, | ||
"output_key": null, | ||
"input_key": null, | ||
"return_messages": true, | ||
"human_prefix": "Human", | ||
"ai_prefix": "AI", | ||
"memory_key": "chat_history", | ||
"request_meta_data": { | ||
"lambda": "lambda_langchain", | ||
"model": "gpt-3.5-turbo", | ||
"end_point": "ChatCompletion", | ||
"temperature": 0.5, | ||
"max_tokens": 256 | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
grader/tests/events/lawrence-mcdaniel-homework1-incorrect-response-status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"statusCode": 403, | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
|
2 changes: 1 addition & 1 deletion
2
...ence-mcdaniel-homework1-invalid-json.json → ...wrence-mcdaniel-homework1-type-error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"statusCode": "200", | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
|
35 changes: 35 additions & 0 deletions
35
grader/tests/events/lawrence-mcdaniel-homework1-wrong-messages.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"isBase64Encoded": false, | ||
"statusCode": 200, | ||
"body": { | ||
"chat_memory": { | ||
"messages": [ | ||
{ | ||
"content": "no idea what to say", | ||
"additional_kwargs": {}, | ||
"type": "wilderbeast", | ||
"example": false | ||
}, | ||
{ | ||
"content": "me neither", | ||
"additional_kwargs": {}, | ||
"type": "assistant", | ||
"example": false | ||
} | ||
] | ||
}, | ||
"output_key": null, | ||
"input_key": null, | ||
"return_messages": true, | ||
"human_prefix": "Human", | ||
"ai_prefix": "AI", | ||
"memory_key": "chat_history", | ||
"request_meta_data": { | ||
"lambda": "lambda_langchain", | ||
"model": "gpt-3.5-turbo", | ||
"end_point": "ChatCompletion", | ||
"temperature": 0.5, | ||
"max_tokens": 256 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters