provisioning/schemas/platform/ai-service.ncl

44 lines
1,007 B
Text

# AI Service Schema
# AI model integration with RAG and MCP services
let constraints = import "schemas/platform/common/constraints.ncl" in
let docker_build_schema = import "schemas/platform/docker-build.ncl" in
{
AiServiceConfig = {
server | {
host | String,
port | Number | constraints.port_high,
workers | Number | optional,
},
rag | {
enabled | Bool,
rag_service_url | String | optional,
timeout | Number | optional,
},
mcp | {
enabled | Bool,
mcp_service_url | String | optional,
timeout | Number | optional,
},
dag | {
max_concurrent_tasks | Number | optional,
task_timeout | Number | optional,
retry_attempts | Number | optional,
},
monitoring | {
enabled | Bool | default = false,
} | optional,
logging | {
level | String | default = "info",
} | optional,
# Docker build configuration
build | docker_build_schema.DockerBuildConfig | optional,
},
}