Theia API Documentation v1.66.0
    Preparing search index...

    A deserializer for a specific kind of chat response content.

    Deserializers are responsible for reconstructing ChatResponseContent instances from their serialized data representations. Each deserializer handles a single content type identified by its kind property.

    const textDeserializer: ChatContentDeserializer<TextContentData> = {
    kind: 'text',
    deserialize: (data) => new TextChatResponseContentImpl(data.content)
    };
    interface ChatContentDeserializer<T = unknown> {
        kind: string;
        deserialize(data: T): MaybePromise<ChatResponseContent>;
    }

    Type Parameters

    • T = unknown

      The type of the data object that this deserializer can process.

    Index

    Properties

    Methods

    Properties

    kind: string

    The unique identifier for the content type this deserializer handles. This must match the kind property of the serialized content data.

    Methods