OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
List available AI providers.
Goal
List providers
Context
Settings
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
import {
ChatConversationModel,
ListConversationsOutputModel,
SendMessageInputModel,
SendMessageOutputModel,
} from './schema';
export const ListProvidersContract = defineQuery({
meta: {
key: 'ai-chat.providers.list',
version: '1.0.0',
owners: ['@ai-team'],
stability: 'experimental',
description: 'List available AI providers.',
tags: ['chat', 'providers'],
goal: 'List providers',
context: 'Settings',
},
io: {
input: defineSchemaModel({ name: 'VoidInput2', fields: {} }),
output: defineSchemaModel({
name: 'ProviderList',
fields: {
providers: {
type: ScalarTypeEnum.String_unsecure(),
isArray: true,
isOptional: false,
},
},
}),
},
policy: { auth: 'user' },
});