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.
Get a specific conversation.
Goal
Get conversation
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 GetConversationContract = defineQuery({
meta: {
key: 'ai-chat.conversations.get',
version: '1.0.0',
owners: ['@ai-team'],
stability: 'experimental',
description: 'Get a specific conversation.',
tags: ['chat', 'get'],
goal: 'Get conversation',
context: 'Chat UI',
},
io: {
input: defineSchemaModel({
name: 'GetConversationInput',
fields: {
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
},
}),
output: ChatConversationModel,
},
policy: { auth: 'user' },
});