Skip to main content

SubmitDeepWriteTask

You can submit a deep writing task. You can provide information such as questions, instructions, and attachments, based on the topic you want to research or analyze. The system schedules and executes this task in the background.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Try it now

Authorization information

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see the following:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization in the operation. For more information, see the following:
    • Required resource types are marked with a leading *.
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions at the same time for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:SubmitDeepWriteTaskcreate
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringNollm-1setzb9xb8m11vrc
InputstringYes

The user's question.

Beijing 2025 new energy vehicle development trends
InstructionsstringNo

The instructions.

Please analyze Beijing new energy vehicles in terms of car brands, new car releases, energy, etc.
Filesarray<object>No

A list of attachments.

objectNo
FileKeystringNo

The Object Storage Service (OSS) address of the attachment.

oss://default/aimiaobi-poc/aimiaobi/deep-write-upload/1_1/xxx.txt
FileDescriptionstringNo

A description of the attachment.

Attachment description
FileNamestringNo

The name of the attachment.

Attachment name
AgentOrchestrationobjectNo

The agent orchestration options.

DataCollectorAgentobjectNo

The data collection agent.

NamestringNo

The name.

DataCollectorAgent
DataAnalystAgentobjectNo

The data analysis agent.

NamestringNo

The name.

DataAnalystAgent
EnableSearchbooleanNo

Specifies whether to enable retrieval.

true
ReporterAgentobjectNo

The reporter agent.

NamestringNo

The name.

ReporterAgent
EnableCitationbooleanNo

Specifies whether to enable citations.

Response elements

NameTypeDescriptionExample value
object

Schema of Response

RequestIdstring

Id of the request

xxxxx
Successboolean

Indicates whether the request was successful.

true
Codestring

The error code.

DataNotExists
Messagestring

The error message.

Error message
HttpStatusCodeinteger

The HTTP status code.

400
Dataobject

The task response object.

TaskIdstring

The task ID.

xbabac91-fdad-44d6-95ce-******
Statusstring

The status of the task.

Valid values:
  • in_progress: In progress.
  • queued: Queued.
  • cancelled: Canceled.
  • completed: Completed.
  • failed: Failed.
queued

Examples

Success response JSON format
{
  "RequestId": "xxxxx",
  "Success": true,
  "Code": "DataNotExists",
  "Message": "错误消息",
  "HttpStatusCode": 400,
  "Data": {
    "TaskId": "xbabac91-fdad-44d6-95ce-******",
    "Status": "queued"
  }
}

Error codes

Visit the Error Center to view more error codes.