Official · SDK
PersonaOS
Replies as a defined persona using the current message and a bounded history you supply. It keeps no memory beyond that input.
Version 1
What it does
Replies as a defined persona using the current message and a bounded history you supply. It keeps no memory beyond that input.
- Generate
Try this SDK
Enter the required inputs and run this SDK using the published version.
Examples fill the form. They are not a test result.
Remix this SDK
Open an editable version in the AI Builder and make it your own.
Developer details
Version 1
Inputs
- Earlier turns, if you have them. Use an empty value when this is the first message. Nothing is stored after the run.string
history
- Who is speaking, including stable traits and limits.string · required
persona
- The message the persona should answer.string · required
user_message
Outputs
- personaobject
steps.reply.result
Operations
- 01
reply
Generate
Content hash
1b73f3786932b114af746f632bbe9b85a1a7715d6e5b5a8c0ee12b913ebabaf3
Blueprint
{
"name": "PersonaOS",
"steps": [
{
"id": "reply",
"op": "ai.generate",
"args": {
"history": {
"$ref": "inputs.history"
},
"persona": {
"$ref": "inputs.persona"
},
"user_message": {
"$ref": "inputs.user_message"
}
},
"config": {
"task": "Reply only as the defined persona. Use the user message and the supplied history, which may be empty. Do not claim memory beyond that history. Put the reply in response, stable traits in traits, and a short note of this turn in conversation_metadata.",
"responseSchema": {
"type": "object",
"required": [
"response",
"traits",
"conversation_metadata"
],
"properties": {
"traits": {
"type": "string"
},
"response": {
"type": "string"
},
"conversation_metadata": {
"type": "string"
}
}
}
}
}
],
"inputs": {
"history": {
"type": "string",
"required": false,
"maxLength": 8000
},
"persona": {
"type": "string",
"required": true,
"maxLength": 2000
},
"user_message": {
"type": "string",
"required": true,
"maxLength": 4000
}
},
"limits": {
"timeoutMs": 60000,
"maxOutputBytes": 131072
},
"outputs": {
"persona": {
"from": {
"$ref": "steps.reply.result"
},
"type": "object"
}
},
"description": "Replies as a defined persona using the current message and a bounded history you supply. It keeps no memory beyond that input.",
"capabilities": [
"ai.generate"
],
"schemaVersion": "1.0"
}