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

18 lines
832 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://muse.local/framework/framework-execution-result-v1.schema.json",
"title": "FrameworkExecutionResult",
"type": "object",
"additionalProperties": false,
"required": ["status", "finalText", "requestedModel", "actualModels", "sessionId", "artifactLocator", "traceDigest"],
"properties": {
"status": {"enum": ["completed", "failed", "cancelled", "timed_out", "invalid_output"]},
"finalText": {"type": ["string", "null"]},
"requestedModel": {"type": "string", "minLength": 1},
"actualModels": {"type": "array", "items": {"type": "string"}},
"sessionId": {"type": ["string", "null"]},
"artifactLocator": {"type": ["string", "null"]},
"traceDigest": {"type": ["string", "null"], "pattern": "^sha256:[0-9a-f]{64}$"}
}
}