AiProfileDraft
A persona draft: what was asked for and, once written, the persona — readable only by the person who asked.
Shape
- briefProfileDraftBrief (string)What was asked for.
- cost_microsinteger · int64What it cost, fee included, in micro-dollars.
- created_atstring · date-timeWhen it was asked for.
- draft_idAiProfileDraftId (string · uuid)The draft.
- org_idAiOrgId (string · uuid)The organization it was written for.
repositoriesarray of ProfileDraftRepositoryThe repositories it reads.
- The ProfileDraftRepository schema
- full_pathstringIts path as addresses name it, as it is now.
- repository_idRepositoryId (string · uuid)The repository.
- stateAiProfileDraftStatequeuedrunningreadyfailedWhere it stands.
- completed_atstring · date-time or nulloptionalWhen it was finished.
- failureAiProfileDraftFailurebudget_exhaustedrefusedaccess_changedtimed_outcancellederroror nulloptionalWhy it was not written, when it failed.
- model_idAiModelKey (string) or nulloptionalThe model it is written with: the one asked for, else the economical tier's default once the draft starts.
- personaAgentPersona (string) or nulloptionalThe persona, once it is written: put it in the agent's
profile.personain the revision draft, edited as you see fit. - positionPositionengineerreviewerproduct_ownerdirectorrelease_managertechnical_writeror nulloptionalThe position that was asked for, when one was.
sourcesarray of ProfileDraftSourceoptionalThe files the persona drew on.
- The ProfileDraftSource schema
- pathFilePath (string)The file's path on the repository's default branch.
- repository_idRepositoryId (string · uuid)The repository the file is in.
- summaryProfileDraftSummary (string) or nulloptionalWhat the drafted agent does, in one line, once it is written.
- written_forPositionengineerreviewerproduct_ownerdirectorrelease_managertechnical_writeror nulloptionalThe position the persona is written for, once it is written.
Example
Synthesized example{
"brief": "brief-32b8",
"cost_micros": 73,
"created_at": "2026-10-11T22:53:24Z",
"draft_id": "f7fbc4f5-43d9-4016-b719-0e61fcb2512a",
"org_id": "56dd7527-c0ee-4064-bc12-4c0f2dee21ac",
"repositories": [
{
"full_path": "acme/payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70"
},
{
"full_path": "acme/payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70"
}
],
"state": "queued",
"completed_at": "2026-10-11T22:12:40Z",
"failure": "budget_exhausted",
"model_id": "ab853470-80e2-487f-8e53-b5415a1e18b4",
"persona": "persona-5188",
"position": "engineer",
"sources": [
{
"path": "path-8f4a",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70"
}
],
"summary": "summary-7c7f",
"written_for": "engineer"
}
Graph
Used inside
No schema contains this one.
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 3 operations