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.

ai-chat.stream

Stream a message response from the AI chat.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @ai-team
  • Tags: chat, stream
  • File: packages/modules/ai-chat/src/ai-chat.operations.ts
  • field.key.label
    ai-chat.stream
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    ai-chat.stream
    field.description.label

    Stream a message response from the AI chat.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @ai-team
  • Tags: chat, stream
  • File: packages/modules/ai-chat/src/ai-chat.operations.ts
  • field.tags.label
    chat,stream
    field.owners.label
    @ai-team
    field.stability.label
    experimental

    Stream a message response from the AI chat.

    Goal

    Stream response

    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 StreamMessageContract = defineCommand({
    	meta: {
    		key: 'ai-chat.stream',
    		version: '1.0.0',
    		owners: ['@ai-team'],
    		stability: 'experimental',
    		description: 'Stream a message response from the AI chat.',
    		tags: ['chat', 'stream'],
    		goal: 'Stream response',
    		context: 'Chat UI',
    	},
    	io: { input: SendMessageInputModel, output: StreamMessageOutputModel },
    	policy: { auth: 'user' },
    });