RunEssayCorrection

Updated at:

Assignment Grading

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.
    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.
  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

quanmiaolightapp:RunEssayCorrection

create

*All Resource

*

NoneNone

Request syntax

POST /{workspaceId}/quanmiao/lightapp/runEssayCorrection HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

workspaceId

string

Yes

The workspace ID.

llm-xxxxxxxx

Request parameters

ParameterTypeRequiredDescriptionExample

grade

string

No

The grade level.

Junior High School Grade 1

subject

string

No

The academic subject.

Chinese

totalScore

integer

No

The total score for the essay.

60

question

string

No

The question or prompt for the essay. This parameter cannot be empty.

xx

answer

string

No

The student's answer or essay.

xxx

otherReviewPoints

string

No

Additional instructions for the review.

xxx

modelId

string

No

The ID of the model to use. If omitted, the system defaults to the Qwen 3 Homework-Enhanced model (qwen3-32b-offline-202506171456-fb65). Available models:

[
  {
      "ModelName": "Qwen 3 Homework-Enhanced Model",
      "ModelId": "qwen3-32b-offline-202506171456-fb65"
  },
  {
      "ModelName": "Qwen Correction Fine-tuned Model",
      "ModelId": "qwen-correction-v2"
  },
  {
      "ModelName": "Qwen Custom Correction Model",
      "ModelId": "qwen-custom-correction-v1"
  }
]

qwen-correction-v1

dimensions

array<object>

No

A list of custom scoring dimensions. This is only supported by the qwen-custom-correction-v1 model.

[{"name": "Content completeness", "rubric": "Whether the essay content is complete and covers the core requirements of the prompt", "maxScore": 30}]

object

No

A custom scoring dimension.

name

string

No

The name of the custom scoring dimension.

Content completeness

rubric

string

No

The detailed scoring criteria for the dimension.

Whether the essay content is complete and covers the core requirements of the prompt

maxScore

integer

No

The maximum score for the dimension.

30

Response elements

Element

Type

Description

Example

object

The response object.

header

object

The response header.

errorCode

string

The error code.

AccessForbidden

errorMessage

string

The error message.

Error message

event

string

The event.

task-finished

sessionId

string

The session ID.

xxxx

taskId

string

The task ID.

xxxx

traceId

string

The trace ID for the request.

xxxxx

payload

object

The response payload.

output

object

The output of the request.

text

string

The text content of the review.

Review result

reasoningContent

string

The model's reasoning process.

First, analyze the essay structure; the introduction, body, and conclusion are complete...

score

integer

The overall score for the essay review.

50

dimensionResults

array<object>

The scores for each dimension. This field is returned only in custom dimension mode.

object

The scoring details for a single dimension.

name

string

The name of the dimension.

Content completeness

analysis

string

An analysis of the strengths and weaknesses in this dimension.

The essay content is relatively complete and covers the core requirements of the prompt, though some arguments are slightly brief.

score

number

The score for this dimension.

25.5

maxScore

number

The maximum possible score for this dimension.

30

overallComment

string

An overall comment on the essay.

Overall performance is good; it is recommended to further strengthen the depth of argumentation.

usage

object

The token usage for the request.

inputTokens

integer

The number of input tokens.

100

outputTokens

integer

The number of output tokens.

100

totalTokens

integer

The total number of tokens.

200

requestId

string

The request ID.

117F5ABE-CF02-5502-9A3F-E56BC9081A64

Examples

Success response

JSON format

{
  "header": {
    "errorCode": "AccessForbidden",
    "errorMessage": "错误信息",
    "event": "task-finished",
    "sessionId": "xxxx",
    "taskId": "xxxx",
    "traceId": "xxxxx"
  },
  "payload": {
    "output": {
      "text": "审阅结果\n\n",
      "reasoningContent": "首先分析文章结构,发现开头、正文、结尾完整...",
      "score": 50,
      "dimensionResults": [
        {
          "name": "内容完整度",
          "analysis": "文章内容较为完整,涵盖了题目的核心要求,但部分论述略显简略。",
          "score": 25.5,
          "maxScore": 30
        }
      ],
      "overallComment": "整体表现良好,建议在论述深度上进一步加强。"
    },
    "usage": {
      "inputTokens": 100,
      "outputTokens": 100,
      "totalTokens": 200
    }
  },
  "requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.