/** * @module teams-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Utilities for working with Large Language Model responses. */ export declare class Response { /** * Parse all objects from a response string. * @param {string} text Response text to parse. * @returns {Record[]} Array of parsed objects. */ static parseAllObjects(text: string): Record[]; /** * Fuzzy JSON parser. * @template TObject Type of the object to parse. * @param {string} text text to parse. * @returns {TObject | undefined} The parsed object or undefined if the object could not be parsed. */ static parseJSON(text: string): TObject | undefined; /** * Removes any empty fields from an object. * @remarks * Empty fields include `null`, `undefined`, `[]`, `{}`, and `""`. * @param {Record} obj The object to clean. * @returns {Record} A cleaned object. */ static removeEmptyValuesFromObject(obj: Record): Record; } //# sourceMappingURL=Response.d.ts.map