function isStreamingEnabled({ commandName, config }) {
  return (
    commandName === 'InvokeModelWithResponseStreamCommand' &&
    config.ai_monitoring?.streaming?.enabled
  )
}
Helper to determine if streaming is enabled

@param {object} params to function
@param {string} params.commandName name of command
@param {object} params.config agent configuration
@returns {boolean} if streaming command and `ai_monitoring.streaming.enabled` is truthy