33 lines
905 B
JSON
Executable File
33 lines
905 B
JSON
Executable File
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://cognitive-agent.local/domains/example_domain/function-parameters.schema.json",
|
|
"title": "ExampleDomainFunctionParameters",
|
|
"type": "object",
|
|
"properties": {
|
|
"spec": {
|
|
"type": "object",
|
|
"properties": {
|
|
"domain": {"const": "example_domain"},
|
|
"operations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"capability": {"const": "example_domain.set_level"},
|
|
"parameters": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["level_pct"],
|
|
"properties": {
|
|
"level_pct": {"type": "number", "minimum": 0, "maximum": 100}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|