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.
Delete a conversation.
Goal
Delete conversation
Context
Chat History
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 DeleteConversationContract = defineCommand({
meta: {
key: 'ai-chat.conversations.delete',
version: '1.0.0',
owners: ['@ai-team'],
stability: 'experimental',
description: 'Delete a conversation.',
tags: ['chat', 'delete'],
goal: 'Delete conversation',
context: 'Chat History',
},
io: {
input: defineSchemaModel({
name: 'DeleteConversationInput',
fields: {
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
},
}),
output: defineSchemaModel({ name: 'VoidOutput', fields: {} }),
},
policy: { auth: 'user' },
});