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.
Send a message to the AI chat.
Goal
Send message
Context
Chat UI
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 SendMessageContract = defineCommand({
meta: {
key: 'ai-chat.send',
version: '1.0.0',
owners: ['@ai-team'],
stability: 'experimental',
description: 'Send a message to the AI chat.',
tags: ['chat', 'send'],
goal: 'Send message',
context: 'Chat UI',
},
io: { input: SendMessageInputModel, output: SendMessageOutputModel },
policy: { auth: 'user' },
});