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

    Contribution point for registering chat content deserializers.

    Implement this interface to contribute custom deserializers for application-specific or extension-specific chat response content types. Multiple contributions can be registered, and all will be collected via the contribution provider pattern.

    @injectable()
    export class MyDeserializerContribution implements ChatContentDeserializerContribution {
    registerDeserializers(registry: ChatContentDeserializerRegistry): void {
    registry.register({
    kind: 'customContent',
    deserialize: (data: CustomContentData) =>
    new CustomContentImpl(data.title, data.items)
    });
    }
    }

    // In your module:
    bind(ChatContentDeserializerContribution).to(MyDeserializerContribution).inSingletonScope();
    interface ChatContentDeserializerContribution {
        registerDeserializers(registry: ChatContentDeserializerRegistry): void;
    }

    Implemented by

    Index

    Methods