@microsoft/agents-hosting
Version:
Microsoft 365 Agents SDK for JavaScript
11 lines (9 loc) • 472 B
text/typescript
import { version } from '../package.json'
import os from 'os'
/**
* Generates a string containing information about the SDK version and runtime environment.
* This is used for telemetry and User-Agent headers in HTTP requests.
*
* @returns A formatted string containing the SDK version, Node.js version, and OS details
*/
export const getProductInfo = () : string => `agents-sdk-js/${version} nodejs/${process.version} ${os.platform()}-${os.arch()}/${os.release()}`