muse-agent-example/framework/primitives/schemas/framework_execution_request.schema.json

21 lines
803 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://muse.local/framework/framework-execution-request-v1.schema.json",
"title": "FrameworkExecutionRequest",
"type": "object",
"additionalProperties": false,
"required": ["systemPrompt", "userContent", "toolAllowlist", "timeoutSeconds", "sessionMode"],
"properties": {
"systemPrompt": {"type": "string", "minLength": 1},
"userContent": {"type": "string", "minLength": 1},
"toolAllowlist": {
"type": "array",
"items": {"type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$"},
"uniqueItems": true
},
"timeoutSeconds": {"type": "number", "exclusiveMinimum": 0},
"requestId": {"type": ["string", "null"], "maxLength": 128},
"sessionMode": {"enum": ["fresh", "continue"]}
}
}