(obj)
| 77711 | } |
| 77712 | } |
| 77713 | function serializeChatMessageImageContentItem(obj) { |
| 77714 | return { |
| 77715 | type: obj["type"], |
| 77716 | image_url: { url: obj.imageUrl["url"], detail: obj.imageUrl["detail"] } |
| 77717 | }; |
| 77718 | } |
| 77719 | function serializeAzureSearchChatExtensionConfiguration(obj) { |
| 77720 | var _a5, _b2, _c2, _d2, _e2, _f, _g; |
| 77721 | return { |
| 77722 | type: obj["type"], |
| 77723 | parameters: { |
| 77724 | authentication: !obj.authentication ? obj.authentication : serializeOnYourDataAuthenticationOptionsUnion(obj.authentication), |
| 77725 | top_n_documents: obj["topNDocuments"], |
| 77726 | in_scope: obj["inScope"], |
| 77727 | strictness: obj["strictness"], |
| 77728 | role_information: obj["roleInformation"], |
| 77729 | endpoint: obj["endpoint"], |
| 77730 | index_name: obj["indexName"], |
| 77731 | fields_mapping: !obj.fieldsMapping ? void 0 : { |
| 77732 | title_field: (_a5 = obj.fieldsMapping) === null || _a5 === void 0 ? void 0 : _a5["titleField"], |
| 77733 | url_field: (_b2 = obj.fieldsMapping) === null || _b2 === void 0 ? void 0 : _b2["urlField"], |
| 77734 | filepath_field: (_c2 = obj.fieldsMapping) === null || _c2 === void 0 ? void 0 : _c2["filepathField"], |
| 77735 | content_fields: (_d2 = obj.fieldsMapping) === null || _d2 === void 0 ? void 0 : _d2["contentFields"], |
| 77736 | content_fields_separator: (_e2 = obj.fieldsMapping) === null || _e2 === void 0 ? void 0 : _e2["contentFieldsSeparator"], |
| 77737 | vector_fields: (_f = obj.fieldsMapping) === null || _f === void 0 ? void 0 : _f["vectorFields"], |
| 77738 | image_vector_fields: (_g = obj.fieldsMapping) === null || _g === void 0 ? void 0 : _g["imageVectorFields"] |
| 77739 | }, |
| 77740 | query_type: obj["queryType"], |
| 77741 | semantic_configuration: obj["semanticConfiguration"], |
| 77742 | filter: obj["filter"], |
| 77743 | embedding_dependency: !obj.embeddingDependency ? obj.embeddingDependency : serializeOnYourDataVectorizationSourceUnion(obj.embeddingDependency) |
no test coverage detected