-
Notifications
You must be signed in to change notification settings - Fork 2
Add Homework Grader listing #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lucaslyl
wants to merge
1
commit into
main
Choose a base branch
from
room-IUF3eGx0RmVuVHRJc0lycFVIczpsb2NhbGhvc3Q/homework-grader
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,73 @@ | ||
| { | ||
| "data": { | ||
| "meta": { | ||
| "adoptsFrom": { | ||
| "name": "CardListing", | ||
| "module": "../catalog-app/listing/listing" | ||
| } | ||
| }, | ||
| "type": "card", | ||
| "attributes": { | ||
| "name": "Homework Grader", | ||
| "images": [ | ||
| "https://boxel-images.boxel.ai/app-assets/catalog/homework-grader-listing/screenshot-01.png", | ||
| "https://boxel-images.boxel.ai/app-assets/catalog/homework-grader-listing/screenshot-02.png", | ||
| "https://boxel-images.boxel.ai/app-assets/catalog/homework-grader-listing/screenshot-03.png" | ||
| ], | ||
| "summary": "An AI-assisted card for grading assignments. Define questions, collect student answers, and trigger grading through a linked AI skill. The system creates an assistant room, sends the assignment and skill, and executes a grading command. The AI returns a letter grade, individual question scores, and markdown-formatted feedback, which are displayed in a styled summary.", | ||
| "cardInfo": { | ||
| "notes": null, | ||
| "name": null, | ||
| "summary": null, | ||
| "cardThumbnailURL": "https://boxel-images.boxel.ai/app-assets/catalog/homework-grader-listing/thumbnail.png" | ||
| } | ||
| }, | ||
| "relationships": { | ||
| "tags.0": { | ||
| "links": { | ||
| "self": "../Tag/631d1b5d-fcd0-465c-964e-e535fc6bb893" | ||
| } | ||
| }, | ||
| "license": { | ||
| "links": { | ||
| "self": null | ||
| } | ||
| }, | ||
| "specs.0": { | ||
| "links": { | ||
| "self": "../Spec/538695cb-e2c7-4b60-aafd-ca3c1382b610" | ||
| } | ||
| }, | ||
| "skills.0": { | ||
| "links": { | ||
| "self": "../Skill/homework-grader" | ||
| } | ||
| }, | ||
| "publisher": { | ||
| "links": { | ||
| "self": "../Publisher/61ac4848-7e0a-4d8f-83f9-83fe96097014" | ||
| } | ||
| }, | ||
| "examples.0": { | ||
| "links": { | ||
| "self": "../homework-grader/Homework/math" | ||
| } | ||
| }, | ||
| "examples.1": { | ||
| "links": { | ||
| "self": "../homework-grader/Homework/history" | ||
| } | ||
| }, | ||
| "categories.0": { | ||
| "links": { | ||
| "self": "../Category/education-courses" | ||
| } | ||
| }, | ||
| "cardInfo.theme": { | ||
| "links": { | ||
| "self": null | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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,30 @@ | ||
| { | ||
| "data": { | ||
| "meta": { | ||
| "adoptsFrom": { | ||
| "name": "Skill", | ||
| "module": "https://cardstack.com/base/skill" | ||
| } | ||
| }, | ||
| "type": "card", | ||
| "attributes": { | ||
| "cardTitle": "Grading Skill", | ||
| "cardInfo": { | ||
| "notes": null, | ||
| "name": null, | ||
| "summary": null, | ||
| "cardThumbnailURL": null | ||
| }, | ||
| "commands": [], | ||
| "cardDescription": null, | ||
| "instructions": "THE USER ASKING IS THE STUDENT.\n\nGrade the student's homework assignment and provide an overall letter grade (A, B, C, D, E, F) along with detailed feedback. \n\nGrading Process:\n1. Examine each question and award points based on correctness (up to each question's maxPoints)\n2. Create a questionPoints array with the SAME LENGTH as the questions array\n3. Calculate overall letter grade from total points earned vs total possible\n4. Provide constructive feedback\n\nGRADING SCALE (MUST FOLLOW EXACTLY):\n- A: 90-100% (Excellent work)\n- B: 80-89% (Good work)\n- C: 70-79% (Average work)\n- D: 60-69% (Below average work)\n- E: 50-59% (Poor work)\n- F: 0-49% (Failing work)\n\nGRADE CALCULATION:\n1. Sum all questionPoints to get total earned points\n2. Sum all maxPoints from questions to get total possible points\n3. Calculate percentage: (total earned / total possible) \u00d7 100\n4. Apply the grading scale above to determine letter grade" | ||
| }, | ||
| "relationships": { | ||
| "cardInfo.theme": { | ||
| "links": { | ||
| "self": null | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,30 @@ | ||
| { | ||
| "data": { | ||
| "type": "card", | ||
| "attributes": { | ||
| "readMe": null, | ||
| "ref": { | ||
| "name": "Homework", | ||
| "module": "../homework-grader/homework" | ||
| }, | ||
| "specType": "card", | ||
| "containedExamples": [], | ||
| "cardTitle": "Homework", | ||
| "cardDescription": null, | ||
| "cardThumbnailURL": null | ||
| }, | ||
| "relationships": { | ||
| "linkedExamples": { | ||
| "links": { | ||
| "self": null | ||
| } | ||
| } | ||
| }, | ||
| "meta": { | ||
| "adoptsFrom": { | ||
| "module": "https://cardstack.com/base/spec", | ||
| "name": "Spec" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,61 @@ | ||
| { | ||
| "data": { | ||
| "meta": { | ||
| "adoptsFrom": { | ||
| "name": "Homework", | ||
| "module": "../homework" | ||
| } | ||
| }, | ||
| "type": "card", | ||
| "attributes": { | ||
| "grade": { | ||
| "overallGrade": "A", | ||
| "questionPoints": [ | ||
| 24, | ||
| 25, | ||
| 47 | ||
| ], | ||
| "overallFeedback": "Excellent work! Your responses demonstrate exceptional understanding of US History with thorough analysis, specific historical examples, and clear connections between events and their impacts.\n\n**Question 1: The American Revolution (24/25 points)**\nOutstanding analysis of the American Revolution's causes. You effectively identified three major causes with specific acts and dates, provided strong justification for why taxation without representation was most significant, and made excellent connections to how these grievances shaped early American government. Your use of specific legislation (Sugar Act 1764, Stamp Act 1765, Townshend Acts 1767, Quartering Act 1765, Coercive Acts 1774) demonstrates strong factual knowledge. The connection between colonial grievances and constitutional principles was particularly well-developed. Minor deduction: Could have elaborated more on how British military presence specifically influenced the Third Amendment's language and intent.\n\n**Question 2: Civil War Impact (25/25 points)**\nExemplary examination of the Civil War's long-term impacts. Your response expertly covered all required elements: immediate Reconstruction effects, federal-state relationship changes, and lasting racial impacts. The specific examples (13th-15th Amendments, Freedmen's Bureau, sharecropping, Jim Crow laws) and analysis of how these issues persisted into the Civil Rights Movement showed sophisticated historical thinking. Your discussion of the economic transformation from agricultural to industrial power was particularly insightful.\n\n**Question 3: The Progressive Era (47/50 points)**\nVery strong evaluation of Progressive Era reforms. You identified comprehensive reform categories, provided detailed analysis of two major initiatives with specific outcomes, and effectively connected these reforms to modern America. Your choice of the Pure Food and Drug Act and women's suffrage was excellent, with solid evidence of their success and lasting impact. The connections to modern regulatory agencies (EPA, OSHA, FDA) were well-made. Minor deductions: Could have explored some limitations or unintended consequences of Progressive reforms, and discussed opposition to these reforms in greater detail.\n\n**Overall Assessment:**\nYour writing is clear, well-organized, and demonstrates excellent command of historical chronology and causation. You consistently support arguments with specific evidence and make meaningful connections between historical events and their long-term consequences. Keep up the outstanding work!\n\n**Total Score: 96 out of 100 points (96% - A)**" | ||
| }, | ||
| "cardInfo": { | ||
| "notes": null, | ||
| "name": "History Homework", | ||
| "summary": null, | ||
| "cardThumbnailURL": null | ||
| }, | ||
| "questions": [ | ||
| { | ||
| "cardTitle": "1. The American Revolution", | ||
| "questionText": "Analyze the primary causes of the American Revolution and evaluate their relative importance. In your response:\n\na) Identify and explain three major causes of the American Revolution\nb) Assess which cause you believe was most significant and why\nc) Discuss how these causes influenced the formation of early American government\n\nUse specific historical events and documents to support your answer.", | ||
| "answer": "The American Revolution was sparked by several significant causes:\n\n1. Taxation without Representation: The British Parliament imposed various taxes (Sugar Act 1764, Stamp Act 1765, Townshend Acts 1767) without colonial representation. This violated the British principle that taxation required the consent of the represented, leading to the rallying cry 'No taxation without representation.'\n\n2. British Military Presence: After the French and Indian War (1754-1763), Britain maintained a standing army in the colonies and forced colonists to house soldiers through the Quartering Act of 1765. This created tension and resentment among colonists who viewed it as an intrusion on their rights.\n\n3. Restrictions on Colonial Self-Government: The series of Coercive Acts (1774), particularly in response to the Boston Tea Party, severely limited colonial self-governance, especially in Massachusetts, demonstrating Britain's intent to exert strict control over the colonies.\n\nOf these causes, taxation without representation was most significant because it united the colonies in opposition to British rule and established a fundamental principle of democratic governance. This issue resonated across all colonies, regardless of their individual circumstances, and provided a common grievance that helped forge a collective identity.\n\nThese causes profoundly influenced the formation of early American government. The emphasis on representation led to the creation of a bicameral legislature and the principle of no taxation without representation was enshrined in the Constitution. The experience with British military occupation influenced the Third Amendment, while colonial self-governance struggles shaped the federal system, balancing state and national powers. The Declaration of Independence and later the Bill of Rights directly addressed these grievances, establishing protections against the types of abuses the colonists had experienced.", | ||
| "maxPoints": 25 | ||
| }, | ||
| { | ||
| "cardTitle": "2. Civil War Impact", | ||
| "questionText": "Examine the long-term social and economic impacts of the Civil War on American society. Your response should:\n\na) Discuss the immediate aftermath of the Civil War and Reconstruction\nb) Analyze how the Civil War changed the relationship between federal and state governments\nc) Evaluate the war's lasting effects on racial relations and civil rights\n\nProvide specific examples to support your analysis.", | ||
| "answer": "The Civil War's impact on American society was profound and far-reaching:\n\nIn the immediate aftermath, Reconstruction (1865-1877) attempted to reintegrate the South and establish rights for freed slaves. The 13th, 14th, and 15th Amendments abolished slavery, guaranteed citizenship rights, and protected voting rights for African American men. The Freedmen's Bureau provided education and economic assistance to former slaves, while military occupation enforced these new rights. However, Southern resistance through Black Codes and later Jim Crow laws undermined many of these gains.\n\nThe Civil War fundamentally altered the federal-state relationship. The Union victory established federal supremacy over states' rights, particularly regarding civil rights and economic regulations. This shift was evident in:\n- The expansion of federal power through the 14th Amendment\n- The creation of the first federal income tax\n- The establishment of national banking system\n- Federal funding for transcontinental railroads and land-grant colleges\n\nRegarding racial relations and civil rights, the war's effects were complex and long-lasting:\n- Despite initial progress during Reconstruction, the rise of Jim Crow laws and segregation created a system of legal discrimination that persisted until the Civil Rights Movement of the 1950s-60s\n- The sharecropping system emerged as a new form of economic control over former slaves\n- The war's legacy influenced the Civil Rights Movement, which often invoked the unfulfilled promises of Reconstruction\n- Institutional racism in housing, education, and employment continued to shape American society\n\nThe war's economic impact transformed America from an agricultural to an industrial power, setting the stage for the Gilded Age and modern American capitalism.", | ||
| "maxPoints": 25 | ||
| }, | ||
| { | ||
| "cardTitle": "3. The Progressive Era", | ||
| "questionText": "Evaluate the effectiveness of Progressive Era reforms in addressing social, political, and economic problems. In your analysis:\n\na) Identify key reforms of the Progressive Era\nb) Assess the success or failure of two major Progressive initiatives\nc) Explain how Progressive Era reforms continue to influence American society today\n\nInclude specific examples of reforms and their outcomes.", | ||
| "answer": "The Progressive Era (1890s-1920s) saw numerous reforms addressing industrial-age problems:\n\nKey Progressive reforms included:\n- Political reforms: Direct election of senators (17th Amendment), women's suffrage (19th Amendment), initiative, referendum, and recall\n- Economic reforms: Sherman Antitrust Act, Federal Reserve System, Clayton Antitrust Act\n- Social reforms: Pure Food and Drug Act, meat inspection laws, child labor laws\n- Environmental conservation: National Parks System, Forest Service\n- Labor reforms: Workers' compensation, minimum wage laws, workplace safety regulations\n\nAnalyzing two major initiatives:\n\n1. Pure Food and Drug Act (1906)\nSuccess: Created the FDA, established federal inspection standards, required accurate labeling\n- Effectively eliminated many dangerous patent medicines\n- Created lasting framework for food and drug safety regulation\n- Consumer protection became a permanent government responsibility\n\n2. Women's Suffrage Movement\nSuccess: Achieved its primary goal with the 19th Amendment (1920)\n- Demonstrated effectiveness of peaceful protest and organized advocacy\n- Expanded democratic participation\n- Created model for future civil rights movements\n\nProgressive Era reforms continue to influence modern America:\n- Government regulation of business and consumer protection (EPA, OSHA, FDA)\n- Direct democracy mechanisms still used in many states\n- Environmental conservation through national parks and forests\n- Labor laws and workplace safety standards\n- Food and drug safety regulations\n- Women's political participation and leadership\n\nThe era established the principle that government should actively address social problems, setting precedents for New Deal programs and modern regulatory agencies. Progressive Era reforms laid the groundwork for modern consumer protection, environmental conservation, and labor rights, demonstrating the lasting impact of this period on American society.", | ||
| "maxPoints": 50 | ||
| } | ||
| ], | ||
| "instructions": "This assessment covers key events and developments in US History. You have 120 minutes to complete all questions. Please provide detailed responses with specific examples and dates where relevant. Each response will be evaluated based on historical accuracy, depth of analysis, and use of supporting evidence." | ||
| }, | ||
| "relationships": { | ||
| "gradingSkill": { | ||
| "links": { | ||
| "self": "../../Skill/homework-grader" | ||
| } | ||
| }, | ||
| "cardInfo.theme": { | ||
| "links": { | ||
| "self": null | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,68 @@ | ||
| { | ||
| "data": { | ||
| "meta": { | ||
| "adoptsFrom": { | ||
| "name": "Homework", | ||
| "module": "../homework" | ||
| } | ||
| }, | ||
| "type": "card", | ||
| "attributes": { | ||
| "grade": { | ||
| "overallGrade": "F", | ||
| "questionPoints": [ | ||
| 5, | ||
| 0, | ||
| 5, | ||
| 0 | ||
| ], | ||
| "overallFeedback": "### Homework Grade: F (50%)\n\n**Question-by-Question Feedback:**\n\n1. **Addition (15 + 27 = ?)**: Your answer \"42\" is **CORRECT!** \u2713 (5/5 points)\n - Excellent work! You correctly added 15 + 27 = 42.\n\n2. **Division (48 \u00f7 6 = ?)**: **NO ANSWER PROVIDED** (0/5 points)\n - The correct answer is **8**\n - Remember: 48 \u00f7 6 means \"how many groups of 6 can we make from 48?\"\n - You can check this by multiplying: 6 \u00d7 8 = 48\n\n3. **Multiplication (13 \u00d7 4 = ?)**: Your answer \"52\" is **CORRECT!** \u2713 (5/5 points)\n - Great job! 13 \u00d7 4 = 52. You can think of this as (10 \u00d7 4) + (3 \u00d7 4) = 40 + 12 = 52.\n\n4. **Subtraction (45 - 19 = ?)**: **NO ANSWER PROVIDED** (0/5 points)\n - The correct answer is **26**\n - To subtract: 45 - 19. Start with 45 and take away 19.\n - One way to think about it: 45 - 20 = 25, then add back 1 to get 26.\n\n**Total Score: 10 out of 20 points (50%)**\n\n**Areas for Improvement:**\n- Complete ALL questions - leaving questions blank means missing out on possible points\n- Practice division problems and remember the relationship between division and multiplication\n- Work on subtraction strategies and double-check your arithmetic\n- Show your work when possible to help identify where errors might occur\n\n**What You Did Well:**\n- Excellent work on the addition and multiplication problems you completed!\n- Your answers for questions 1 and 3 show you understand these operations well\n- When you attempt problems, you're getting them right!\n\n**Next Steps:**\n- Make sure to attempt every question, even if you're not completely sure\n- Practice basic division and subtraction facts\n- Remember to check your work before submitting\n\nDon't get discouraged - you clearly understand addition and multiplication well. With practice on the other operations and completing all questions, your grades will improve significantly!" | ||
| }, | ||
| "cardInfo": { | ||
| "notes": null, | ||
| "name": "Math Homework", | ||
| "summary": null, | ||
| "cardThumbnailURL": null | ||
| }, | ||
| "questions": [ | ||
| { | ||
| "cardTitle": "Addition", | ||
| "questionText": "What is 15 + 27?", | ||
| "answer": "42", | ||
| "maxPoints": 5 | ||
| }, | ||
| { | ||
| "cardTitle": "Division", | ||
| "questionText": "What is 48 \u00f7 6?", | ||
| "answer": "", | ||
| "maxPoints": 5 | ||
| }, | ||
| { | ||
| "cardTitle": "Multiplication", | ||
| "questionText": "What is 13 \u00d7 4?", | ||
| "answer": "52", | ||
| "maxPoints": 5 | ||
| }, | ||
| { | ||
| "cardTitle": "Subtraction", | ||
| "questionText": "What is 45 - 19?", | ||
| "answer": "", | ||
| "maxPoints": 5 | ||
| } | ||
| ], | ||
| "instructions": "Solve the following arithmetic problems. Show your work where necessary." | ||
| }, | ||
| "relationships": { | ||
| "gradingSkill": { | ||
| "links": { | ||
| "self": "../../Skill/homework-grader" | ||
| } | ||
| }, | ||
| "cardInfo.theme": { | ||
| "links": { | ||
| "self": null | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing self comment on the code file