turn/start 请求的 HTTP 映射接口。Authorization: Bearer ********************{
"input": [
{
"text": "example",
"type": "text",
"text_elements": []
}
],
"threadId": "thread_123",
"approvalPolicy": "untrusted",
"approvalsReviewer": "user",
"clientUserMessageId": "example_id",
"cwd": "/workspace/project",
"effort": "example",
"model": "gpt-5",
"outputSchema": "example",
"personality": "none"
}curl --location '/v1/yousure/turn/start' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": [
{
"text": "example",
"type": "text",
"text_elements": []
}
],
"threadId": "thread_123",
"approvalPolicy": "untrusted",
"approvalsReviewer": "user",
"clientUserMessageId": "example_id",
"cwd": "/workspace/project",
"effort": "example",
"model": "gpt-5",
"outputSchema": "example",
"personality": "none"
}'{
"result": {
"turn": {
"id": "example_id",
"items": [
{
"content": [
{
"text": "example",
"type": "text",
"text_elements": []
}
],
"id": "example_id",
"type": "userMessage",
"clientId": "example_id"
}
],
"status": "completed",
"completedAt": 1,
"durationMs": 1,
"error": {
"message": "example",
"additionalDetails": null,
"codexErrorInfo": "contextWindowExceeded",
"misalignment": null
},
"itemsView": "full",
"startedAt": 1
}
},
"replayed": false
}