Add classes for chat response parts (#204483)

* add classes for each content type that can be streamed, make history contains those

* refine types, add converters
This commit is contained in:
Johannes Rieken
2024-02-06 14:25:17 +01:00
committed by GitHub
parent 63ebf06bb6
commit 1e53f20631
5 changed files with 219 additions and 45 deletions

View File

@@ -1639,7 +1639,13 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
ThreadFocus: extHostTypes.ThreadFocus,
RelatedInformationType: extHostTypes.RelatedInformationType,
SpeechToTextStatus: extHostTypes.SpeechToTextStatus,
KeywordRecognitionStatus: extHostTypes.KeywordRecognitionStatus
KeywordRecognitionStatus: extHostTypes.KeywordRecognitionStatus,
ChatResponseTextPart: extHostTypes.ChatResponseTextPart,
ChatResponseMarkdownPart: extHostTypes.ChatResponseMarkdownPart,
ChatResponseFilesPart: extHostTypes.ChatResponseFilesPart,
ChatResponseAnchorPart: extHostTypes.ChatResponseAnchorPart,
ChatResponseProgressPart: extHostTypes.ChatResponseProgressPart,
ChatResponseReferencePart: extHostTypes.ChatResponseReferencePart,
};
};
}